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



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000043920</issuerCik>
            <issuerName>GREIF INC.</issuerName>
            <secFileNumber>001-00566</secFileNumber>
            <issuerAddress>
                <ns2:street1>425 Winter Road</ns2:street1>
                <ns2:city>Delaware</ns2:city>
                <ns2:stateOrCountry>OH</ns2:stateOrCountry>
                <ns2:zipCode>43015</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>740-549-6000</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>LAWRENCE A HILSHEIMER</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>10078</noOfUnitsSold>
            <aggregateMarketValue>634013.46</aggregateMarketValue>
            <noOfUnitsOutstanding>25790029</noOfUnitsOutstanding>
            <approxSaleDate>03/05/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>12/16/2019</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Stock Units</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>3863</amountOfSecuritiesAcquired>
            <paymentDate>12/16/2019</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>01/19/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Stock Units</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>6215</amountOfSecuritiesAcquired>
            <paymentDate>01/19/2021</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>03/05/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Lawrence A Hilsheimer</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3815}]
144
0001414433
XXXXXXXX
LIVE
0000043920
GREIF INC.
001-00566
425 Winter Road
Delaware
OH
43015
740-549-6000
LAWRENCE A HILSHEIMER
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
10078
634013.46
25790029
03/05/2024
NYSE
Common
12/16/2019
Performance Stock Units
Issuer
N
3863
12/16/2019
Services Rendered
Common
01/19/2021
Performance Stock Units
Issuer
N
6215
01/19/2021
Services Rendered
Y
03/05/2024
/s/ Lawrence A Hilsheimer