<?xml version="1.0" encoding="UTF-8"?><ns2:edgarSubmission xmlns:com="http://www.sec.gov/edgar/common" xmlns:ns2="http://www.sec.gov/edgar/ownership">
    <ns2:headerData>
        <ns2:submissionType>144</ns2:submissionType>
        <ns2:filerInfo>
            <ns2:filer>
                <ns2:filerCredentials>
                    <ns2:cik>0001590057</ns2:cik>
                    <ns2:ccc>XXXXXXXX</ns2:ccc>
                </ns2:filerCredentials>
            </ns2:filer>
            <ns2:liveTestFlag>LIVE</ns2:liveTestFlag>



        </ns2:filerInfo>
    </ns2:headerData>
    <ns2:formData>
        <ns2:issuerInfo>
            <ns2:issuerCik>0001467760</ns2:issuerCik>
            <ns2:issuerName>Apollo Commercial Real Estate Finance, Inc.</ns2:issuerName>
            <ns2:secFileNumber>001-34452</ns2:secFileNumber>
            <ns2:issuerAddress>
                <com:street1>9 West 57th Street</com:street1>
                <com:city>New York</com:city>
                <com:stateOrCountry>NY</com:stateOrCountry>
                <com:zipCode>10019</com:zipCode>
            </ns2:issuerAddress>
            <ns2:issuerContactPhone>1-212-515-3200</ns2:issuerContactPhone>
            <ns2:nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Scott Steven Prince</ns2:nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <ns2:relationshipsToIssuer>
                <ns2:relationshipToIssuer>Director</ns2:relationshipToIssuer>
            </ns2:relationshipsToIssuer>
        </ns2:issuerInfo>
        <ns2:securitiesInformation>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:brokerOrMarketmakerDetails>
                <ns2:name>Goldman Sachs &amp; Co. LLC</ns2:name>
                <ns2:address>
                    <com:street1>200 West Street</com:street1>
                    <com:city>New York</com:city>
                    <com:stateOrCountry>NY</com:stateOrCountry>
                    <com:zipCode>10282</com:zipCode>
                </ns2:address>
            </ns2:brokerOrMarketmakerDetails>
            <ns2:noOfUnitsSold>20000</ns2:noOfUnitsSold>
            <ns2:aggregateMarketValue>199200</ns2:aggregateMarketValue>
            <ns2:noOfUnitsOutstanding>138346757</ns2:noOfUnitsOutstanding>
            <ns2:approxSaleDate>08/14/2024</ns2:approxSaleDate>
            <ns2:securitiesExchangeName>NYSE</ns2:securitiesExchangeName>
        </ns2:securitiesInformation>
        <ns2:securitiesToBeSold>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:acquiredDate>12/29/2016</ns2:acquiredDate>
            <ns2:natureOfAcquisitionTransaction>Acquired as compensation -- Restricted Stock Awards</ns2:natureOfAcquisitionTransaction>
            <ns2:nameOfPersonfromWhomAcquired>Apollo Commercial Real Estate Finance, Inc.</ns2:nameOfPersonfromWhomAcquired>
            <ns2:isGiftTransaction>N</ns2:isGiftTransaction>
            <ns2:amountOfSecuritiesAcquired>20000</ns2:amountOfSecuritiesAcquired>
            <ns2:paymentDate>12/29/2016</ns2:paymentDate>
            <ns2:natureOfPayment>Compensation</ns2:natureOfPayment>
        </ns2:securitiesToBeSold>
        <ns2:nothingToReportFlagOnSecuritiesSoldInPast3Months>N</ns2:nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <ns2:securitiesSoldInPast3Months>
            <ns2:sellerDetails>
                <ns2:name>Scott Prince</ns2:name>
                <ns2:address>
                    <com:street1>9 West 57th Street</com:street1>
                    <com:city>New York</com:city>
                    <com:stateOrCountry>NY</com:stateOrCountry>
                    <com:zipCode>10019</com:zipCode>
                </ns2:address>
            </ns2:sellerDetails>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:saleDate>08/13/2024</ns2:saleDate>
            <ns2:amountOfSecuritiesSold>10000</ns2:amountOfSecuritiesSold>
            <ns2:grossProceeds>100008.2</ns2:grossProceeds>
        </ns2:securitiesSoldInPast3Months>
        <ns2:noticeSignature>
            <ns2:noticeDate>08/14/2024</ns2:noticeDate>
            <ns2:planAdoptionDates/>
            <ns2:signature>Goldman Sachs &amp; Co. LLC on behalf of Scott Prince</ns2:signature>
        </ns2:noticeSignature>
    </ns2:formData>
</ns2:edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4365}]
144
0001590057
XXXXXXXX
LIVE
0001467760
Apollo Commercial Real Estate Finance, Inc.
001-34452
9 West 57th Street
New York
NY
10019
1-212-515-3200
Scott Steven Prince
Director
Common Stock
Goldman Sachs & Co. LLC
200 West Street
New York
NY
10282
20000
199200
138346757
08/14/2024
NYSE
Common Stock
12/29/2016
Acquired as compensation -- Restricted Stock Awards
Apollo Commercial Real Estate Finance, Inc.
N
20000
12/29/2016
Compensation
N
Scott Prince
9 West 57th Street
New York
NY
10019
Common Stock
08/13/2024
10000
100008.2
08/14/2024
Goldman Sachs & Co. LLC on behalf of Scott Prince