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



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000352915</issuerCik>
            <issuerName>UNIVERSAL HEALTH SERVICES INC.</issuerName>
            <secFileNumber>001-10765</secFileNumber>
            <issuerAddress>
                <ns2:street1>367 South Gulph Road</ns2:street1>
                <ns2:city>KING OF PRUSSIA</ns2:city>
                <ns2:stateOrCountry>PA</ns2:stateOrCountry>
                <ns2:zipCode>19406</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>610-768-3300</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>WARREN NIMETZ</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Director</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>800</noOfUnitsSold>
            <aggregateMarketValue>112776.24</aggregateMarketValue>
            <noOfUnitsOutstanding>62928899</noOfUnitsOutstanding>
            <approxSaleDate>06/13/2023</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>05/17/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Restricted Stock</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>800</amountOfSecuritiesAcquired>
            <paymentDate>05/17/2023</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>WARREN NIMETZ</name>
                <address>
                    <ns2:street1>367 South Gulph Road</ns2:street1>
                    <ns2:city>KING OF PRUSSIA</ns2:city>
                    <ns2:stateOrCountry>PA</ns2:stateOrCountry>
                    <ns2:zipCode>19406</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>05/11/2023</saleDate>
            <amountOfSecuritiesSold>500</amountOfSecuritiesSold>
            <grossProceeds>69507.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>06/13/2023</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Warren J. Nimetz</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3883}]
144
0001728690
XXXXXXXX
LIVE
0000352915
UNIVERSAL HEALTH SERVICES INC.
001-10765
367 South Gulph Road
KING OF PRUSSIA
PA
19406
610-768-3300
WARREN NIMETZ
Director
Common
Morgan Stanley Smith Barney LLC
1 New York Plaza
38th Floor
New York
NY
10004
800
112776.24
62928899
06/13/2023
NYSE
Common
05/17/2023
Restricted Stock
Issuer
N
800
05/17/2023
Cash
N
WARREN NIMETZ
367 South Gulph Road
KING OF PRUSSIA
PA
19406
Common
05/11/2023
500
69507.00
06/13/2023
/s/ Warren J. Nimetz