<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001847397</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0001124941</issuerCik>
            <issuerName>BEACON ROOFING SUPPLY, INC.</issuerName>
            <secFileNumber>001-42492</secFileNumber>
            <issuerAddress>
                <ns2:street1>505 Huntmar Park Drive, Suite 300</ns2:street1>
                <ns2:city>Herndon</ns2:city>
                <ns2:stateOrCountry>VA</ns2:stateOrCountry>
                <ns2:zipCode>20170</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>(571) 323-3939</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>CLEMENT BEST</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>8th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>29724</noOfUnitsSold>
            <aggregateMarketValue>3657585.76</aggregateMarketValue>
            <noOfUnitsOutstanding>61787399</noOfUnitsOutstanding>
            <approxSaleDate>04/04/2025</approxSaleDate>
            <securitiesExchangeName>NASDAQ</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>04/04/2025</acquiredDate>
            <natureOfAcquisitionTransaction>Stock Option Exercise</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>29724</amountOfSecuritiesAcquired>
            <paymentDate>04/04/2025</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>04/04/2025</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Clement Munroe Best</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3231}]
144
0001847397
XXXXXXXX
LIVE
0001124941
BEACON ROOFING SUPPLY, INC.
001-42492
505 Huntmar Park Drive, Suite 300
Herndon
VA
20170
(571) 323-3939
CLEMENT BEST
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
29724
3657585.76
61787399
04/04/2025
NASDAQ
Common
04/04/2025
Stock Option Exercise
Issuer
N
29724
04/04/2025
Cash
Y
04/04/2025
/s/ Clement Munroe Best