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



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0000842633</issuerCik>
      <issuerName>TRIMAS CORP</issuerName>
      <secFileNumber>001-10716</secFileNumber>
      <issuerAddress>
        <com:street1>38505 WOODWARD AVENUE</com:street1>
        <com:street2>SUITE 200</com:street2>
        <com:city>BLOOMFIELD HILLS</com:city>
        <com:stateOrCountry>MI</com:stateOrCountry>
        <com:zipCode>48304</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>2486315400</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Mell Scott A</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Fidelity Brokerage Services LLC</name>
        <address>
          <com:street1>900 Salem Street</com:street1>
          <com:city>Smithfield</com:city>
          <com:stateOrCountry>RI</com:stateOrCountry>
          <com:zipCode>02917</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>1200</noOfUnitsSold>
      <aggregateMarketValue>30962.00</aggregateMarketValue>
      <noOfUnitsOutstanding>41425673</noOfUnitsOutstanding>
      <approxSaleDate>08/03/2023</approxSaleDate>
      <securitiesExchangeName>NASDAQ</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>07/01/2022</acquiredDate>
      <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>839</amountOfSecuritiesAcquired>
      <paymentDate>07/01/2022</paymentDate>
      <natureOfPayment>Compensation</natureOfPayment>
    </securitiesToBeSold>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>03/11/2023</acquiredDate>
      <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>361</amountOfSecuritiesAcquired>
      <paymentDate>03/11/2023</paymentDate>
      <natureOfPayment>Compensation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <securitiesSoldInPast3Months>
      <sellerDetails>
        <name>SCOTT A MELL</name>
        <address>
          <com:street1>38505 Woodward Avenue</com:street1>
          <com:street2>Suite 200</com:street2>
          <com:city>Bloomfield Hills</com:city>
          <com:stateOrCountry>MI</com:stateOrCountry>
          <com:zipCode>48304</com:zipCode>
        </address>
      </sellerDetails>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <saleDate>05/12/2023</saleDate>
      <amountOfSecuritiesSold>1150</amountOfSecuritiesSold>
      <grossProceeds>29224.11</grossProceeds>
    </securitiesSoldInPast3Months>
    <noticeSignature>
      <noticeDate>08/03/2023</noticeDate>
      <signature>/s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Scott A Mell</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4052}]
144
0001860129
XXXXXXXX
LIVE
0000842633
TRIMAS CORP
001-10716
38505 WOODWARD AVENUE
SUITE 200
BLOOMFIELD HILLS
MI
48304
2486315400
Mell Scott A
Officer
Common
Fidelity Brokerage Services LLC
900 Salem Street
Smithfield
RI
02917
1200
30962.00
41425673
08/03/2023
NASDAQ
Common
07/01/2022
Restricted Stock Vesting
Issuer
N
839
07/01/2022
Compensation
Common
03/11/2023
Restricted Stock Vesting
Issuer
N
361
03/11/2023
Compensation
N
SCOTT A MELL
38505 Woodward Avenue
Suite 200
Bloomfield Hills
MI
48304
Common
05/12/2023
1150
29224.11
08/03/2023
/s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Scott A Mell