<?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>0001732554</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-8401</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>4052701000</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Martin William Scott</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Director</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Charles Schwab &amp; Co. Inc.</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>20000</noOfUnitsSold>
      <aggregateMarketValue>2209800.00</aggregateMarketValue>
      <noOfUnitsOutstanding>33022124</noOfUnitsOutstanding>
      <approxSaleDate>10/28/2024</approxSaleDate>
      <securitiesExchangeName>Nsadaq</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>01/11/2018</acquiredDate>
      <natureOfAcquisitionTransaction>shares are the result of a Merger / Acquisition between BancFirst Corp with First Wagoner Corp.</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>20000</amountOfSecuritiesAcquired>
      <paymentDate>01/11/2018</paymentDate>
      <natureOfPayment>Compensation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <remarks>BancFirst Corporation Purchased shareholder's shares in First Wagoner Corporation and First Bank of Chandler in Oklahoma and issued shareholder shares in BancFirst Corporation.(BANF) Shareholder is William Scott Martin TTEE for Revocable Inter Vivos Trust of William Scott Martin</remarks>
    <noticeSignature>
      <noticeDate>10/28/2024</noticeDate>
      <signature>William Scott Martin</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3112}]
144
0001732554
XXXXXXXX
LIVE
0000760498
BANCFIRST CORP /OK/
000-14384
100 NORTH BROADWAY AVE
OKLAHOMA CITY
OK
73102-8401
4052701000
Martin William Scott
Director
Common
Charles Schwab & Co. Inc.
3000 Schwab Way
Westlake
TX
76262
20000
2209800.00
33022124
10/28/2024
Nsadaq
Common
01/11/2018
shares are the result of a Merger / Acquisition between BancFirst Corp with First Wagoner Corp.
Issuer
N
20000
01/11/2018
Compensation
Y
BancFirst Corporation Purchased shareholder's shares in First Wagoner Corporation and First Bank of Chandler in Oklahoma and issued shareholder shares in BancFirst Corporation.(BANF) Shareholder is William Scott Martin TTEE for Revocable Inter Vivos Trust of William Scott Martin
10/28/2024
William Scott Martin