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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2021-11-24</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000101778</issuerCik>
        <issuerName>MARATHON OIL CORP</issuerName>
        <issuerTradingSymbol>MRO</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001549713</rptOwnerCik>
            <rptOwnerName>WAGNER PATRICK</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O MARATHON OIL CORPORATION</rptOwnerStreet1>
            <rptOwnerStreet2>990 TOWN &amp; COUNTRY BOULEVARD</rptOwnerStreet2>
            <rptOwnerCity>HOUSTON</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>77024</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>See Remarks</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2021-11-24</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>34722</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>10.47</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>267014</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2021-11-24</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>34722</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>16.8319</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>232292</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2021-11-24</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>27435</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>16.8172</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>204857</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Employee Stock Option (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>10.47</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2021-11-24</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>34722</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <value>2030-02-19</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>34722.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>69444</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">The price reported in Column 4 is a weighted average price. These shares were sold in multiple transactions at prices ranging from $16.83 to $16.84, inclusive. The reporting person undertakes to provide to Marathon Oil Corporation, any security holder of Marathon Oil Corporation, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the range set forth herein.</footnote>
        <footnote id="F2">The price reported in Column 4 is a weighted average price. These shares were sold in multiple transactions at prices ranging from $16.81 to $16.83, inclusive. The reporting person undertakes to provide to Marathon Oil Corporation, any security holder of Marathon Oil Corporation, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the range set forth herein.</footnote>
        <footnote id="F3">This stock option (the &quot;Employee Stock Option&quot;) to acquire 104,166 shares of the common stock of Marathon Oil Corporation was granted on February 19, 2020 and vests in three equal annual installments on each of February 19, 2021, February 19, 2022 and February 19, 2023.</footnote>
    </footnotes>

    <remarks>Executive Vice President, Corporate Development and Strategy</remarks>

    <ownerSignature>
        <signatureName>Kim Warnica, Attorney-in-Fact for Patrick Wagner</signatureName>
        <signatureDate>2021-11-29</signatureDate>
    </ownerSignature>
</ownershipDocument>
[{"type": "4", "sequence": "1", "filename": "wf-form4_163822125468882.xml", "description": "FORM 4", "secsgml_size_bytes": 9303}]
X0306
4
2021-11-24
0
0000101778
MARATHON OIL CORP
MRO
0001549713
WAGNER PATRICK
C/O MARATHON OIL CORPORATION
990 TOWN & COUNTRY BOULEVARD
HOUSTON
TX
77024
0
1
0
0
See Remarks
Common Stock
2021-11-24
4
M
0
34722
10.47
A
267014
D
Common Stock
2021-11-24
4
S
0
34722
16.8319
D
232292
D
Common Stock
2021-11-24
4
S
0
27435
16.8172
D
204857
D
Employee Stock Option (Right to Buy)
10.47
2021-11-24
4
M
0
34722
0
D
2030-02-19
Common Stock
34722.0
69444
D
The price reported in Column 4 is a weighted average price. These shares were sold in multiple transactions at prices ranging from $16.83 to $16.84, inclusive. The reporting person undertakes to provide to Marathon Oil Corporation, any security holder of Marathon Oil Corporation, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the range set forth herein.
The price reported in Column 4 is a weighted average price. These shares were sold in multiple transactions at prices ranging from $16.81 to $16.83, inclusive. The reporting person undertakes to provide to Marathon Oil Corporation, any security holder of Marathon Oil Corporation, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the range set forth herein.
This stock option (the "Employee Stock Option") to acquire 104,166 shares of the common stock of Marathon Oil Corporation was granted on February 19, 2020 and vests in three equal annual installments on each of February 19, 2021, February 19, 2022 and February 19, 2023.
Executive Vice President, Corporate Development and Strategy
Kim Warnica, Attorney-in-Fact for Patrick Wagner
2021-11-29