<?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>0001694221</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0001021635</issuerCik>
      <issuerName>OGE ENERGY CORP.</issuerName>
      <secFileNumber>001-12579</secFileNumber>
      <issuerAddress>
        <com:street1>321 N HARVEY</com:street1>
        <com:street2>P.O. BOX 321</com:street2>
        <com:city>OKLAHOMA CITY</com:city>
        <com:stateOrCountry>OK</com:stateOrCountry>
        <com:zipCode>73101-0321</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>4055533000</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>SULTEMEIER WILLIAM H</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Wells Fargo Clearing Services</name>
        <address>
          <com:street1>1 North Jefferson Avenue</com:street1>
          <com:city>St. Louis</com:city>
          <com:stateOrCountry>MO</com:stateOrCountry>
          <com:zipCode>63103</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>6650</noOfUnitsSold>
      <aggregateMarketValue>300402.85</aggregateMarketValue>
      <noOfUnitsOutstanding>201330195</noOfUnitsOutstanding>
      <approxSaleDate>05/06/2025</approxSaleDate>
      <securitiesExchangeName>NYSE</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>common</securitiesClassTitle>
      <acquiredDate>02/25/2020</acquiredDate>
      <natureOfAcquisitionTransaction>stock award for compensation</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>6650</amountOfSecuritiesAcquired>
      <paymentDate>02/25/2020</paymentDate>
      <natureOfPayment>N/A</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <remarks>shares were sold in The William H Sultemeier IV Revocable Trust, William H Sultemeier as trustee.</remarks>
    <noticeSignature>
      <noticeDate>05/06/2025</noticeDate>
      <signature>William H Sultemeier</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 2894}]
144
0001694221
XXXXXXXX
LIVE
0001021635
OGE ENERGY CORP.
001-12579
321 N HARVEY
P.O. BOX 321
OKLAHOMA CITY
OK
73101-0321
4055533000
SULTEMEIER WILLIAM H
Officer
common
Wells Fargo Clearing Services
1 North Jefferson Avenue
St. Louis
MO
63103
6650
300402.85
201330195
05/06/2025
NYSE
common
02/25/2020
stock award for compensation
Issuer
N
6650
02/25/2020
N/A
Y
shares were sold in The William H Sultemeier IV Revocable Trust, William H Sultemeier as trustee.
05/06/2025
William H Sultemeier