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>0001318864</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001282637</issuerCik>
        <issuerName>NEWMARKET CORP</issuerName>
        <secFileNumber>001-32190</secFileNumber>
        <issuerAddress>
          <com:street1>330 S FOURTH ST</com:street1>
          <com:street2>PO BOX 2189</com:street2>
          <com:city>RICHMOND</com:city>
          <com:stateOrCountry>VA</com:stateOrCountry>
          <com:zipCode>23218-2189</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>804-788-5000</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Hazelgrove Bruce R III</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>COMMON</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>RBC WEALTH MANAGEMENT</name>
          <address>
            <com:street1>250 NICOLLET MALL, SUITE 1700</com:street1>
            <com:city>MINNEAPOLIS</com:city>
            <com:stateOrCountry>MN</com:stateOrCountry>
            <com:zipCode>55401</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>1270</noOfUnitsSold>
        <aggregateMarketValue>691235.00</aggregateMarketValue>
        <noOfUnitsOutstanding>9594110</noOfUnitsOutstanding>
        <approxSaleDate>08/09/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>COMMON</securitiesClassTitle>
        <acquiredDate>01/02/2017</acquiredDate>
        <natureOfAcquisitionTransaction>RESTRICTED PERFORMANCE SHARES</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>389</amountOfSecuritiesAcquired>
        <paymentDate>01/01/2017</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>COMMON</securitiesClassTitle>
        <acquiredDate>03/14/2018</acquiredDate>
        <natureOfAcquisitionTransaction>RESTRICTED PERFORMANCE SHARES</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>576</amountOfSecuritiesAcquired>
        <paymentDate>03/14/2018</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>COMMON</securitiesClassTitle>
        <acquiredDate>02/27/2019</acquiredDate>
        <natureOfAcquisitionTransaction>RESTRICTED PERFORMANCE SHARES</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>305</amountOfSecuritiesAcquired>
        <paymentDate>02/27/2019</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>08/09/2024</noticeDate>
        <signature>JEFFREY EISCHENS </signature>
      </noticeSignature>
    </formData>
  
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3833}]
text: 144
  0001318864
  XXXXXXXX
  LIVE
  0001282637
  NEWMARKET CORP
  001-32190
  330 S FOURTH ST
  PO BOX 2189
  RICHMOND
  VA
  23218-2189
  804-788-5000
  Hazelgrove Bruce R III
  Officer
  COMMON
  RBC WEALTH MANAGEMENT
  250 NICOLLET MALL, SUITE 1700
  MINNEAPOLIS
  MN
  55401
  1270
  691235.00
  9594110
  08/09/2024
  NYSE
  COMMON
  01/02/2017
  RESTRICTED PERFORMANCE SHARES
  ISSUER
  N
  389
  01/01/2017
  N/A
  COMMON
  03/14/2018
  RESTRICTED PERFORMANCE SHARES
  ISSUER
  N
  576
  03/14/2018
  N/A
  COMMON
  02/27/2019
  RESTRICTED PERFORMANCE SHARES
  ISSUER
  N
  305
  02/27/2019
  N/A
  Y
  08/09/2024
  JEFFREY EISCHENS