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



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0000893691</issuerCik>
      <issuerName>MASONITE INTERNATIONAL CORP</issuerName>
      <secFileNumber>001-11796</secFileNumber>
      <issuerAddress>
        <com:street1>1242 EAST 5TH AVENUE</com:street1>
        <com:city>TAMPA</com:city>
        <com:stateOrCountry>FL</com:stateOrCountry>
        <com:zipCode>33605</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>813-877-2726</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Legall Alexander Albert</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Charles Schwab &amp; Co., Inc.</name>
        <address>
          <com:street1>3000 Schwab Way,</com:street1>
          <com:city>Westlake,</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>76262</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>1700</noOfUnitsSold>
      <aggregateMarketValue>156412.00</aggregateMarketValue>
      <noOfUnitsOutstanding>22112520</noOfUnitsOutstanding>
      <approxSaleDate>05/11/2023</approxSaleDate>
      <securitiesExchangeName>NYSE</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>09/30/2021</acquiredDate>
      <natureOfAcquisitionTransaction>Restricted Stock Lapse</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>MASONITE INTERNATIONAL CORP</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>1487</amountOfSecuritiesAcquired>
      <paymentDate>09/30/2021</paymentDate>
      <natureOfPayment>Equity Compensation</natureOfPayment>
    </securitiesToBeSold>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>02/22/2022</acquiredDate>
      <natureOfAcquisitionTransaction>Restricted Stock Lapse</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>MASONITE INTERNATIONAL CORP</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>213</amountOfSecuritiesAcquired>
      <paymentDate>02/22/2022</paymentDate>
      <natureOfPayment>Equity Compensation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <noticeSignature>
      <noticeDate>05/11/2023</noticeDate>
      <signature>Alexander Legall</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3318}]
144
0001966410
XXXXXXXX
LIVE
0000893691
MASONITE INTERNATIONAL CORP
001-11796
1242 EAST 5TH AVENUE
TAMPA
FL
33605
813-877-2726
Legall Alexander Albert
Officer
Common
Charles Schwab & Co., Inc.
3000 Schwab Way,
Westlake,
TX
76262
1700
156412.00
22112520
05/11/2023
NYSE
Common
09/30/2021
Restricted Stock Lapse
MASONITE INTERNATIONAL CORP
N
1487
09/30/2021
Equity Compensation
Common
02/22/2022
Restricted Stock Lapse
MASONITE INTERNATIONAL CORP
N
213
02/22/2022
Equity Compensation
Y
05/11/2023
Alexander Legall