<?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>0001042873</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>RAINBOLT DAVID E</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Director</relationshipToIssuer>
        <relationshipToIssuer>10% Stockholder</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common Stock</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>BancFirst Trust</name>
        <address>
          <com:street1>100 N. Broadway AVE</com:street1>
          <com:city>Oklahoma City</com:city>
          <com:stateOrCountry>OK</com:stateOrCountry>
          <com:zipCode>73102</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>225000</noOfUnitsSold>
      <aggregateMarketValue>27002250.00</aggregateMarketValue>
      <noOfUnitsOutstanding>33575976</noOfUnitsOutstanding>
      <approxSaleDate>04/20/2026</approxSaleDate>
      <securitiesExchangeName>Nasdaq Global Market</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common Stock</securitiesClassTitle>
      <acquiredDate>02/03/2026</acquiredDate>
      <natureOfAcquisitionTransaction>Shares gifted to David and Kim Rainbolt Foundation </natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>David E. Rainbolt</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>225000</amountOfSecuritiesAcquired>
      <paymentDate>02/03/2026</paymentDate>
      <natureOfPayment>shares were gifted to the Foundation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <remarks>The shares being sold are held in the David and Kim Foundation.  These shares were gifted to the foundation on February 3, 2026.  David votes these shares and therefore is an indirect holder of the shares for the foundation. </remarks>
    <noticeSignature>
      <noticeDate>04/17/2026</noticeDate>
      <signature>by POA from David E. Rainbolt</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
