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



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000923120</issuerCik>
            <issuerName>THE GREENBRIER COMPANIES, INC.</issuerName>
            <secFileNumber>001-13146</secFileNumber>
            <issuerAddress>
                <ns2:street1>One Centerpointe Drive, Suite 200</ns2:street1>
                <ns2:city>Lake Oswego</ns2:city>
                <ns2:stateOrCountry>OR</ns2:stateOrCountry>
                <ns2:zipCode>97035</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>5036847000</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>WILLIAM J KRUEGER</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>4000</noOfUnitsSold>
            <aggregateMarketValue>265040.00</aggregateMarketValue>
            <noOfUnitsOutstanding>31359165</noOfUnitsOutstanding>
            <approxSaleDate>02/03/2025</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>10/18/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted Stock Units</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>4000</amountOfSecuritiesAcquired>
            <paymentDate>10/18/2023</paymentDate>
            <natureOfPayment>N/A</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>10b5-1 Sales for WILLIAM J KRUEGER</name>
                <address>
                    <ns2:street1>One Centerpointe Drive, Suite 200</ns2:street1>
                    <ns2:city>Lake Oswego</ns2:city>
                    <ns2:stateOrCountry>OR</ns2:stateOrCountry>
                    <ns2:zipCode>97035</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>01/02/2025</saleDate>
            <amountOfSecuritiesSold>2000</amountOfSecuritiesSold>
            <grossProceeds>122256.40</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>10b5-1 Sales for WILLIAM J KRUEGER</name>
                <address>
                    <ns2:street1>One Centerpointe Drive, Suite 200</ns2:street1>
                    <ns2:city>Lake Oswego</ns2:city>
                    <ns2:stateOrCountry>OR</ns2:stateOrCountry>
                    <ns2:zipCode>97035</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>12/02/2024</saleDate>
            <amountOfSecuritiesSold>2000</amountOfSecuritiesSold>
            <grossProceeds>137121.40</grossProceeds>
        </securitiesSoldInPast3Months>
        <remarks>The securities to be sold were acquired upon the vesting of restricted stock units during the period of 10/18/2023 through 10/20/2024
</remarks>
        <noticeSignature>
            <noticeDate>02/03/2025</noticeDate>
            <planAdoptionDates>
                <planAdoptionDate>07/18/2024</planAdoptionDate>
            </planAdoptionDates>
            <signature>/s/ William James Krueguer</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4953}]
144
0001575836
XXXXXXXX
LIVE
0000923120
THE GREENBRIER COMPANIES, INC.
001-13146
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
5036847000
WILLIAM J KRUEGER
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
4000
265040.00
31359165
02/03/2025
NYSE
Common
10/18/2023
Restricted Stock Units
Issuer
N
4000
10/18/2023
N/A
N
10b5-1 Sales for WILLIAM J KRUEGER
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
Common
01/02/2025
2000
122256.40
10b5-1 Sales for WILLIAM J KRUEGER
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
Common
12/02/2024
2000
137121.40
The securities to be sold were acquired upon the vesting of restricted stock units during the period of 10/18/2023 through 10/20/2024
02/03/2025
07/18/2024
/s/ William James Krueguer