<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-11-24</periodOfReport>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0001698990</issuerCik>
        <issuerName>Magnolia Oil &amp; Gas Corp</issuerName>
        <issuerTradingSymbol>MGY</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002153177</rptOwnerCik>
            <rptOwnerName>WildFire Energy I LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>920 MEMORIAL CITY WAY</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 1400</rptOwnerStreet2>
            <rptOwnerCity>HOUSTON</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>77024</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>Former 10% Owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002154783</rptOwnerCik>
            <rptOwnerName>Hawkwood HoldCo, L.P.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O WARBURG PINCUS LLC</rptOwnerStreet1>
            <rptOwnerStreet2>450 LEXINGTON AVENUE</rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10017</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>Former 10% Owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002154505</rptOwnerCik>
            <rptOwnerName>Hawkwood HoldCo GP, LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O WARBURG PINCUS LLC</rptOwnerStreet1>
            <rptOwnerStreet2>450 LEXINGTON AVENUE</rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10017</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>Former 10% Owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001635320</rptOwnerCik>
            <rptOwnerName>Warburg Pincus &amp; Co US, LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O WARBURG PINCUS LLC</rptOwnerStreet1>
            <rptOwnerStreet2>450 LEXINGTON AVENUE</rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10017</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>Former 10% Owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0000949615</rptOwnerCik>
            <rptOwnerName>KAYNE ANDERSON CAPITAL ADVISORS LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>2121 AVENUE OF THE STARS</rptOwnerStreet1>
            <rptOwnerStreet2>9TH FLOOR</rptOwnerStreet2>
            <rptOwnerCity>LOS ANGELES</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>90067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>Former 10% Owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Class A Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2026-11-24</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>32203000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class A Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>8926974</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See footnote</value>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class A Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>8686174</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F4"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See footnote</value>
                    <footnoteId id="F5"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">WildFire Energy I LLC distributed 32,203,000 shares of Class A Common Stock in a pro rata distribution to its members for no consideration (the &quot;Distribution&quot;). The Distribution was made in accordance with the exemptions afforded under Rule 16a-9 and Rule 16a-13 of the Exchange Act.</footnote>
        <footnote id="F2">The reported securities were received in the Distribution by Hawkwood HoldCo, L.P.</footnote>
        <footnote id="F3">Warburg Pincus &amp; Company US, LLC (&quot;Warburg Pincus&quot;) is the general partner of Warburg Pincus Partners II (US), L.P., which is the managing member of Warburg Pincus Partners (E&amp;P) XI LLC, which is the sole member of Warburg Pincus (E&amp;P) XI LLC, which is the general partner of Warburg Pincus (E&amp;P) XI, L.P., which is the general partner of Warburg Pincus Private Equity (E&amp;P) XI - A, L.P., which is the managing member of Hawkwood HoldCo GP, LLC, which is the general partner of Hawkwood HoldCo, L.P., which holds the securities on behalf of various funds and accounts indirectly managed by Warburg Pincus (the entities in this footnote 3, the &quot;Warburg Entities&quot;). Each of the Warburg Entities disclaims beneficial ownership of the securities reported herein except to the extent of its pecuniary interest therein, and this report shall not be deemed an admission that the Warburg Entities are the beneficial owners of such securities for purposes of Section 16 or for any other purposes.</footnote>
        <footnote id="F4">The reported securities were received in the Distribution by Kayne Private Energy Income Fund II, L.P., Kayne Private Energy Income Fund II-B, L.P. and Kayne Anderson Energy Fund VIII, L.P.</footnote>
        <footnote id="F5">Kayne Private Energy Income Fund II, L.P., Kayne Private Energy Income Fund II-B, L.P. and Kayne Anderson Energy Fund VIII, L.P. are managed, with discretion to purchase or sell securities, by Kayne Anderson Capital Advisors, L.P. (or controlled affiliates thereof) (collectively, the &quot;Kayne Entities&quot;), as a registered investment adviser. Each of the Kayne Entities disclaims beneficial ownership of the securities reported herein except to the extent of its pecuniary interest therein, and this report shall not be deemed an admission that the Kayne Entities are the beneficial owners of such securities for purposes of Section 16 or for any other purposes.</footnote>
    </footnotes>

    <remarks>Following the distribution reported on this Statement, no Reporting Person beneficially owns 10% of the Issuer's equity securities, and, accordingly, each of the Reporting Persons is no longer subject to Section 16 of the Exchange Act. Information with respect to each of the Reporting Persons is given solely by such Reporting Person, and no Reporting Person has responsibility for the accuracy or completeness of information supplied by another Reporting Person.</remarks>

    <ownerSignature>
        <signatureName>See Exhibit 99.1</signatureName>
        <signatureDate>2026-11-24</signatureDate>
    </ownerSignature>
</ownershipDocument>
