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



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0001524472</issuerCik>
            <issuerName>XYLEM INC.</issuerName>
            <secFileNumber>001-35229</secFileNumber>
            <issuerAddress>
                <ns2:street1>301 WATER STREET SE</ns2:street1>
                <ns2:city>WASHINGTON</ns2:city>
                <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                <ns2:zipCode>20003</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>(202) 869-9150</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>GERI-MICHELLE MCSHANE</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>2278</noOfUnitsSold>
            <aggregateMarketValue>315795.72</aggregateMarketValue>
            <noOfUnitsOutstanding>242447263</noOfUnitsOutstanding>
            <approxSaleDate>06/10/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>03/01/2022</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>130</amountOfSecuritiesAcquired>
            <paymentDate>03/01/2022</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>12/08/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1</amountOfSecuritiesAcquired>
            <paymentDate>12/08/2020</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>06/10/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of options under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1766</amountOfSecuritiesAcquired>
            <paymentDate>06/10/2024</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>03/31/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>4</amountOfSecuritiesAcquired>
            <paymentDate>03/31/2020</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>06/30/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>4</amountOfSecuritiesAcquired>
            <paymentDate>06/30/2020</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>09/29/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>3</amountOfSecuritiesAcquired>
            <paymentDate>09/29/2020</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>03/23/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1</amountOfSecuritiesAcquired>
            <paymentDate>03/23/2021</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>06/29/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>2</amountOfSecuritiesAcquired>
            <paymentDate>06/29/2021</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>09/28/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1</amountOfSecuritiesAcquired>
            <paymentDate>09/28/2021</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>12/27/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1</amountOfSecuritiesAcquired>
            <paymentDate>12/27/2021</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/20/2022</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>245</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2022</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/27/2022</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>120</amountOfSecuritiesAcquired>
            <paymentDate>02/27/2022</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>06/10/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Geri Michelle McShane</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 9778}]
144
0001769064
XXXXXXXX
LIVE
0001524472
XYLEM INC.
001-35229
301 WATER STREET SE
WASHINGTON
DC
20003
(202) 869-9150
GERI-MICHELLE MCSHANE
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
2278
315795.72
242447263
06/10/2024
NYSE
Common
03/01/2022
Restricted stock vesting under a registered plan
Issuer
N
130
03/01/2022
Services Rendered
Common
12/08/2020
Dividend Reinvestment
Open Market
N
1
12/08/2020
Cash
Common
06/10/2024
Exercise of options under a registered plan
Issuer
N
1766
06/10/2024
Cash
Common
03/31/2020
Dividend Reinvestment
Open Market
N
4
03/31/2020
Cash
Common
06/30/2020
Dividend Reinvestment
Open Market
N
4
06/30/2020
Cash
Common
09/29/2020
Dividend Reinvestment
Open Market
N
3
09/29/2020
Cash
Common
03/23/2021
Dividend Reinvestment
Open Market
N
1
03/23/2021
Cash
Common
06/29/2021
Dividend Reinvestment
Open Market
N
2
06/29/2021
Cash
Common
09/28/2021
Dividend Reinvestment
Open Market
N
1
09/28/2021
Cash
Common
12/27/2021
Dividend Reinvestment
Open Market
N
1
12/27/2021
Cash
Common
02/20/2022
Restricted stock vesting under a registered plan
Issuer
N
245
02/20/2022
Services Rendered
Common
02/27/2022
Restricted stock vesting under a registered plan
Issuer
N
120
02/27/2022
Services Rendered
Y
06/10/2024
/s/ Geri Michelle McShane