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

    <schemaVersion>X0306</schemaVersion>

    <documentType>5/A</documentType>

    <periodOfReport>2021-12-31</periodOfReport>

    <dateOfOriginalSubmission>2022-01-05</dateOfOriginalSubmission>

    <notSubjectToSection16>true</notSubjectToSection16>

    <form3HoldingsReported>0</form3HoldingsReported>

    <form4TransactionsReported>0</form4TransactionsReported>

    <issuer>
        <issuerCik>0000760498</issuerCik>
        <issuerName>BANCFIRST CORP /OK/</issuerName>
        <issuerTradingSymbol>BANF</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001808430</rptOwnerCik>
            <rptOwnerName>Pierson Brian Wade</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>100 N. BROADWAY AVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>OKLAHOMA CITY</rptOwnerCity>
            <rptOwnerState>OK</rptOwnerState>
            <rptOwnerZipCode>73102</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>false</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>true</isOther>
            <officerTitle></officerTitle>
            <otherText>Senior Vice President</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <remarks>Does not meet the definition of &quot;Executive Officer&quot;</remarks>

    <ownerSignature>
        <signatureName>/s/ By: Kevin Lawrence For: Brian Pierson</signatureName>
        <signatureDate>2022-01-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
