<?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>0001962216</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>(503) 684-7000</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>RICARDO GALVAN</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>4950</noOfUnitsSold>
            <aggregateMarketValue>321750.00</aggregateMarketValue>
            <noOfUnitsOutstanding>31339993</noOfUnitsOutstanding>
            <approxSaleDate>11/06/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>10/20/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>2129</amountOfSecuritiesAcquired>
            <paymentDate>10/20/2023</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>10/18/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>2821</amountOfSecuritiesAcquired>
            <paymentDate>10/18/2023</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>Ricardo and Martha Galvan</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>10/28/2024</saleDate>
            <amountOfSecuritiesSold>1388</amountOfSecuritiesSold>
            <grossProceeds>86056.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>Ricardo and Martha Galvan</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>10/24/2024</saleDate>
            <amountOfSecuritiesSold>1976</amountOfSecuritiesSold>
            <grossProceeds>114608.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>11/06/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Ricardo Galvan</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5332}]
144
0001962216
XXXXXXXX
LIVE
0000923120
THE GREENBRIER COMPANIES, INC.
001-13146
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
(503) 684-7000
RICARDO GALVAN
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
4950
321750.00
31339993
11/06/2024
NYSE
Common
10/20/2023
Restricted stock vesting under a registered plan
Issuer
N
2129
10/20/2023
Services Rendered
Common
10/18/2023
Restricted stock vesting under a registered plan
Issuer
N
2821
10/18/2023
Services Rendered
N
Ricardo and Martha Galvan
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
common
10/28/2024
1388
86056.00
Ricardo and Martha Galvan
One Centerpointe Drive, Suite 200
Lake Oswego
OR
97035
common
10/24/2024
1976
114608.00
11/06/2024
/s/ Ricardo Galvan