<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
  <headerData>
    <submissionType>144</submissionType>
    <filerInfo>
      <filer>
        <filerCredentials>
          <cik>0001316601</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0000760498</issuerCik>
      <issuerName>BANCFIRST CORP /OK/</issuerName>
      <secFileNumber>000-14384</secFileNumber>
      <issuerAddress>
        <com:street1>100 NORTH BROADWAY AVE</com:street1>
        <com:city>OKLAHOMA CITY</com:city>
        <com:stateOrCountry>OK</com:stateOrCountry>
        <com:zipCode>73102-8405</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>4052701086</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Lopez Dave R</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common Stock</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Charles Schwab &amp; Co.</name>
        <address>
          <com:street1>3000 Schwab Way</com:street1>
          <com:city>Westlake</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>76262</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>1000</noOfUnitsSold>
      <aggregateMarketValue>102090.00</aggregateMarketValue>
      <noOfUnitsOutstanding>33022124</noOfUnitsOutstanding>
      <approxSaleDate>08/16/2024</approxSaleDate>
      <securitiesExchangeName>Nasdaq</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common Stock</securitiesClassTitle>
      <acquiredDate>08/16/2024</acquiredDate>
      <natureOfAcquisitionTransaction>Option excercise</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>1000</amountOfSecuritiesAcquired>
      <paymentDate>08/16/2024</paymentDate>
      <natureOfPayment>N/A</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <remarks>Shares to be sold out of account registered: D LOPEZ &amp; L LOPEZ TTEE DAVE &amp; LANA LOPEZ FAMILY TRUST U/A DTD 10/22/2015</remarks>
    <noticeSignature>
      <noticeDate>08/16/2024</noticeDate>
      <signature>David Lopez</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 2856}]
144
0001316601
XXXXXXXX
LIVE
0000760498
BANCFIRST CORP /OK/
000-14384
100 NORTH BROADWAY AVE
OKLAHOMA CITY
OK
73102-8405
4052701086
Lopez Dave R
Officer
Common Stock
Charles Schwab & Co.
3000 Schwab Way
Westlake
TX
76262
1000
102090.00
33022124
08/16/2024
Nasdaq
Common Stock
08/16/2024
Option excercise
Issuer
N
1000
08/16/2024
N/A
Y
Shares to be sold out of account registered: D LOPEZ & L LOPEZ TTEE DAVE & LANA LOPEZ FAMILY TRUST U/A DTD 10/22/2015
08/16/2024
David Lopez