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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-01-17</periodOfReport>

    <issuer>
        <issuerCik>0001724965</issuerCik>
        <issuerName>TALOS ENERGY INC.</issuerName>
        <issuerTradingSymbol>TALO</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001273693</rptOwnerCik>
            <rptOwnerName>Control Empresarial de Capitales S.A. de C.V.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>PASEO DE LAS PALMAS 781, PISO 3</rptOwnerStreet1>
            <rptOwnerStreet2>LOMAS DE CHAPULTEPEC</rptOwnerStreet2>
            <rptOwnerCity>CIUDAD DE MEXICO</rptOwnerCity>
            <rptOwnerState>O5</rptOwnerState>
            <rptOwnerZipCode>11000</rptOwnerZipCode>
            <rptOwnerStateDescription>MEXICO</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isTenPercentOwner>true</isTenPercentOwner>
            <isOther>true</isOther>
            <otherText>Add'l Rep. Persons-see Ex.99-1</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Shares (as defined in Exhibit 99.1 hereto)</value>
            </securityTitle>
            <transactionDate>
                <value>2024-01-17</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>19658119</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>11.7</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>34747781</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">See attached Exhibit 99.1 to this Form 4, which is hereby incorporated herein by reference.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ MARCO ANTONIO SLIM DOMIT, ATTORNEY-IN-FACT</signatureName>
        <signatureDate>2024-01-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
