content: <?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>0001450919</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001679268</issuerCik>
        <issuerName>MAMMOTH ENERGY SERVICES, INC.</issuerName>
        <secFileNumber>001-37917</secFileNumber>
        <issuerAddress>
          <com:street1>14201 CALIBER DRIVE</com:street1>
          <com:street2>SUITE 300</com:street2>
          <com:city>OKLAHOMA CITY</com:city>
          <com:stateOrCountry>OK</com:stateOrCountry>
          <com:zipCode>73134</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>405-608-6007</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Straehla Arty</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>245 Summer Street</com:street1>
            <com:city>Boston</com:city>
            <com:stateOrCountry>MA</com:stateOrCountry>
            <com:zipCode>02110</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>190000</noOfUnitsSold>
        <aggregateMarketValue>837900.00</aggregateMarketValue>
        <noOfUnitsOutstanding>47941652</noOfUnitsOutstanding>
        <approxSaleDate>12/13/2023</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>02/24/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>110000</amountOfSecuritiesAcquired>
        <paymentDate>02/24/2023</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/11/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>80000</amountOfSecuritiesAcquired>
        <paymentDate>11/11/2019</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>12/13/2023</noticeDate>
        <signature>/s/ Cristina Garcia, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Straehla Arty</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3404}]
text: 144
  0001450919
  XXXXXXXX
  LIVE
  0001679268
  MAMMOTH ENERGY SERVICES, INC.
  001-37917
  14201 CALIBER DRIVE
  SUITE 300
  OKLAHOMA CITY
  OK
  73134
  405-608-6007
  Straehla Arty
  Officer
  Common
  Fidelity Brokerage Services LLC
  245 Summer Street
  Boston
  MA
  02110
  190000
  837900.00
  47941652
  12/13/2023
  NASDAQ
  Common
  02/24/2023
  Stock Award
  Issuer
  N
  110000
  02/24/2023
  Compensation
  Common
  11/11/2019
  Stock Award
  Issuer
  N
  80000
  11/11/2019
  Compensation
  Y
  12/13/2023
  /s/ Cristina Garcia, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Straehla Arty