<?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>4052701086</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Martin William Scott</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Director</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Charles Schwab </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>100000</noOfUnitsSold>
      <aggregateMarketValue>12465000.00</aggregateMarketValue>
      <noOfUnitsOutstanding>33022124</noOfUnitsOutstanding>
      <approxSaleDate>11/12/2024</approxSaleDate>
      <securitiesExchangeName>Nasdaq</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>120000</amountOfSecuritiesAcquired>
      <paymentDate>01/11/2018</paymentDate>
      <natureOfPayment>Compensation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <securitiesSoldInPast3Months>
      <sellerDetails>
        <name>William Martin</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>
      </sellerDetails>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <saleDate>10/30/2024</saleDate>
      <amountOfSecuritiesSold>5000</amountOfSecuritiesSold>
      <grossProceeds>567500.00</grossProceeds>
    </securitiesSoldInPast3Months>
    <securitiesSoldInPast3Months>
      <sellerDetails>
        <name>William Martin</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>
      </sellerDetails>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <saleDate>11/06/2024</saleDate>
      <amountOfSecuritiesSold>15000</amountOfSecuritiesSold>
      <grossProceeds>1754962.00</grossProceeds>
    </securitiesSoldInPast3Months>
    <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) Shares sold out of: WILLIAM SCOTT MARTIN TTEE REVOCABLE INTER VIVOS TRUST OF U/A DTD 03/16/2000</remarks>
    <noticeSignature>
      <noticeDate>11/12/2024</noticeDate>
      <signature>William Scott Martin</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4282}]
144
0001732554
XXXXXXXX
LIVE
0000760498
BANCFIRST CORP /OK/
000-14384
100 NORTH BROADWAY AVE
OKLAHOMA CITY
OK
73102-8401
4052701086
Martin William Scott
Director
Common
Charles Schwab
3000 Schwab Way
Westlake
TX
76262
100000
12465000.00
33022124
11/12/2024
Nasdaq
Common
01/11/2018
shares are the result of a Merger / Acquisition between BancFirst Corp with First Wagoner Corp.
Issuer
N
120000
01/11/2018
Compensation
N
William Martin
100 N. Broadway Ave.
Oklahoma City
OK
73102
Common
10/30/2024
5000
567500.00
William Martin
100 N. Broadway Ave.
Oklahoma City
OK
73102
Common
11/06/2024
15000
1754962.00
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) Shares sold out of: WILLIAM SCOTT MARTIN TTEE REVOCABLE INTER VIVOS TRUST OF U/A DTD 03/16/2000
11/12/2024
William Scott Martin