<?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>0001813828</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>300 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>FRANZ CERWINKA</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>1341</noOfUnitsSold>
            <aggregateMarketValue>170897.31</aggregateMarketValue>
            <noOfUnitsOutstanding>241077780</noOfUnitsOutstanding>
            <approxSaleDate>03/01/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/27/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted stock vesting under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1341</amountOfSecuritiesAcquired>
            <paymentDate>02/27/2023</paymentDate>
            <natureOfPayment>Services Rendered</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>FRANZ CERWINKA</name>
                <address>
                    <ns2:street1>301 WATER STREET SE</ns2:street1>
                    <ns2:city>WASHINGTON</ns2:city>
                    <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                    <ns2:zipCode>20003</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>02/08/2024</saleDate>
            <amountOfSecuritiesSold>2408</amountOfSecuritiesSold>
            <grossProceeds>293274.17</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>03/01/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Franz Cerwinka</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3930}]
144
0001813828
XXXXXXXX
LIVE
0001524472
XYLEM INC.
001-35229
300 Water Street SE
Washington
DC
20003
(202) 869-9150
FRANZ CERWINKA
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
1341
170897.31
241077780
03/01/2024
NYSE
Common
02/27/2023
Restricted stock vesting under a registered plan
Issuer
N
1341
02/27/2023
Services Rendered
N
FRANZ CERWINKA
301 WATER STREET SE
WASHINGTON
DC
20003
Common
02/08/2024
2408
293274.17
03/01/2024
/s/ Franz Cerwinka