<?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>1000</noOfUnitsSold>
            <aggregateMarketValue>122890.00</aggregateMarketValue>
            <noOfUnitsOutstanding>241077780</noOfUnitsOutstanding>
            <approxSaleDate>02/20/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/20/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>101</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2020</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/21/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>119</amountOfSecuritiesAcquired>
            <paymentDate>02/21/2020</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/20/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>100</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2021</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/27/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>135</amountOfSecuritiesAcquired>
            <paymentDate>02/27/2021</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>
        <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>373</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2022</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/21/2020</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>271</amountOfSecuritiesAcquired>
            <paymentDate>02/21/2020</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>02/20/2024</noticeDate>
            <planAdoptionDates/>
            <signature>Geri Michelle McShane</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 6977}]
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
1000
122890.00
241077780
02/20/2024
NYSE
Common
02/20/2020
Restricted stock vesting under a registered plan
Issuer
N
101
02/20/2020
Services Rendered
Common
02/21/2020
Restricted stock vesting under a registered plan
Issuer
N
119
02/21/2020
Services Rendered
Common
02/20/2021
Restricted stock vesting under a registered plan
Issuer
N
100
02/20/2021
Services Rendered
Common
02/27/2021
Restricted stock vesting under a registered plan
Issuer
N
135
02/27/2021
Services Rendered
Common
02/27/2022
Restricted stock vesting under a registered plan
Issuer
N
120
02/27/2022
Services Rendered
Common
02/20/2022
Restricted stock vesting under a registered plan
Issuer
N
373
02/20/2022
Services Rendered
Common
02/21/2020
Restricted stock vesting under a registered plan
Issuer
N
271
02/21/2020
Services Rendered
Y
02/20/2024
Geri Michelle McShane