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>0001350220</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001035002</issuerCik>
        <issuerName>VALERO ENERGY CORP/TX</issuerName>
        <secFileNumber>001-13175</secFileNumber>
        <issuerAddress>
          <com:street1>P.O. BOX 696000</com:street1>
          <com:city>SAN ANTONIO</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>78269-6000</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>2103454524</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Gorder Joseph W</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Former Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Merrill Lynch</name>
          <address>
            <com:street1>3455 Peachtree Road NE, Suite 1000</com:street1>
            <com:city>Atlanta</com:city>
            <com:stateOrCountry>GA</com:stateOrCountry>
            <com:zipCode>30326</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>76560</noOfUnitsSold>
        <aggregateMarketValue>10483896.73</aggregateMarketValue>
        <noOfUnitsOutstanding>316585228</noOfUnitsOutstanding>
        <approxSaleDate>02/18/2025</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>02/22/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of a Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Valero Energy Corporation</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>13057</amountOfSecuritiesAcquired>
        <paymentDate>02/22/2022</paymentDate>
        <natureOfPayment>Compensatory Payment</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>02/23/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of a Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Valero Energy Corporation</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>18979</amountOfSecuritiesAcquired>
        <paymentDate>02/23/2023</paymentDate>
        <natureOfPayment>Compensatory Payment</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>02/22/2024</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of a Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Valero Energy Corporation</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>16393</amountOfSecuritiesAcquired>
        <paymentDate>02/22/2024</paymentDate>
        <natureOfPayment>Compensatory Payment</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/16/2025</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of a Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Valero Energy Corporation</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>28131</amountOfSecuritiesAcquired>
        <paymentDate>01/16/2025</paymentDate>
        <natureOfPayment>Compensatory Payment</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>02/18/2025</noticeDate>
        <signature>Joseph W Gorder</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4454}]
text: 144
  0001350220
  XXXXXXXX
  LIVE
  0001035002
  VALERO ENERGY CORP/TX
  001-13175
  P.O. BOX 696000
  SAN ANTONIO
  TX
  78269-6000
  2103454524
  Gorder Joseph W
  Former Officer
  Common
  Merrill Lynch
  3455 Peachtree Road NE, Suite 1000
  Atlanta
  GA
  30326
  76560
  10483896.73
  316585228
  02/18/2025
  NYSE
  Common
  02/22/2022
  Vesting of a Stock Award
  Valero Energy Corporation
  N
  13057
  02/22/2022
  Compensatory Payment
  Common
  02/23/2023
  Vesting of a Stock Award
  Valero Energy Corporation
  N
  18979
  02/23/2023
  Compensatory Payment
  Common
  02/22/2024
  Vesting of a Stock Award
  Valero Energy Corporation
  N
  16393
  02/22/2024
  Compensatory Payment
  Common
  01/16/2025
  Vesting of a Stock Award
  Valero Energy Corporation
  N
  28131
  01/16/2025
  Compensatory Payment
  Y
  02/18/2025
  Joseph W Gorder