<?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 Corp</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>32595</noOfUnitsSold>
      <aggregateMarketValue>3933564.00</aggregateMarketValue>
      <noOfUnitsOutstanding>33128923</noOfUnitsOutstanding>
      <approxSaleDate>02/12/2025</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>32595</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>BancFirst Corporation</securitiesClassTitle>
      <saleDate>11/13/2024</saleDate>
      <amountOfSecuritiesSold>10298</amountOfSecuritiesSold>
      <grossProceeds>1297601.79</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>BancFirst Corporation</securitiesClassTitle>
      <saleDate>11/14/2024</saleDate>
      <amountOfSecuritiesSold>7500</amountOfSecuritiesSold>
      <grossProceeds>923758.56</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>BancFirst Corporation</securitiesClassTitle>
      <saleDate>11/15/2024</saleDate>
      <amountOfSecuritiesSold>25000</amountOfSecuritiesSold>
      <grossProceeds>3075002.16</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>BancFirst Corporation</securitiesClassTitle>
      <saleDate>11/21/2024</saleDate>
      <amountOfSecuritiesSold>67405</amountOfSecuritiesSold>
      <grossProceeds>8364841.01</grossProceeds>
    </securitiesSoldInPast3Months>
    <remarks>Shares to be sold in the Revocable Inter Vivos Trust U/A DTD 03/16/2000 - William Scott Martin as trustee and grantor. BancFirst Corporation Purchased shareholder's shares in First Wagoner Corporation and First Bank of Chandler in Oklahoma and issued shareholder shares in BancFirstCorporation.(BANF)</remarks>
    <noticeSignature>
      <noticeDate>02/12/2025</noticeDate>
      <signature>William Scott Martin</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5551}]
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 Corp
3000 Schwab Way
Westlake
TX
76262
32595
3933564.00
33128923
02/12/2025
Nasdaq
Common
01/11/2018
Shares are the result of a Merger /Acquisition between BancFirst Corp with First Wagoner Corp
Issuer
N
32595
01/11/2018
Compensation
N
William Martin
100 N. Broadway Ave.
Oklahoma City
OK
73102
BancFirst Corporation
11/13/2024
10298
1297601.79
William Martin
100 N. Broadway Ave.
Oklahoma City
OK
73102
BancFirst Corporation
11/14/2024
7500
923758.56
William Martin
100 N. Broadway Ave.,
Oklahoma City,
OK
73102
BancFirst Corporation
11/15/2024
25000
3075002.16
William Martin
100 N. Broadway Ave.,
Oklahoma City,
OK
73102
BancFirst Corporation
11/21/2024
67405
8364841.01
Shares to be sold in the Revocable Inter Vivos Trust U/A DTD 03/16/2000 - William Scott Martin as trustee and grantor. BancFirst Corporation Purchased shareholder's shares in First Wagoner Corporation and First Bank of Chandler in Oklahoma and issued shareholder shares in BancFirstCorporation.(BANF)
02/12/2025
William Scott Martin