<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:2eaa9b89-33a5-4d9e-afee-2380f1edf3b9,g:58b2e239-10cd-4d7e-8433-977026b84aad-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="ari-20230331.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended" id="icd626e1c1c934bfcbb09c37a308ed057_CondensedConsolidatedBalanceSheetsUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_e3ada3ee-ad53-463a-8227-b2bde09ca9dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e3ada3ee-ad53-463a-8227-b2bde09ca9dc" xlink:to="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_8392a2ff-533c-4a00-b65d-095730166687" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_8392a2ff-533c-4a00-b65d-095730166687" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_503e7fa4-1829-4cbb-9a8e-4dacc3374296" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_503e7fa4-1829-4cbb-9a8e-4dacc3374296" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeclosedAssets_172b72c2-886b-46a7-a483-72330e1866fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeclosedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_ForeclosedAssets_172b72c2-886b-46a7-a483-72330e1866fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedHeldForSaleNetOfImpairment_ef3018ca-fec9-4228-8542-4bc73c68d67e" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedHeldForSaleNetOfImpairment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_ari_RealEstateOwnedHeldForSaleNetOfImpairment_ef3018ca-fec9-4228-8542-4bc73c68d67e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_f26082bb-cfc1-4eaa-a5ec-04b41e03e167" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_DerivativeAssets_f26082bb-cfc1-4eaa-a5ec-04b41e03e167" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_19a185d1-2afa-44e2-95d1-399f2aa1c13f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_OtherAssets_19a185d1-2afa-44e2-95d1-399f2aa1c13f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_fe14c366-8850-40fa-87eb-784b059c3017" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_df721899-0704-4950-881f-4cd304fc56d1" xlink:to="loc_us-gaap_Assets_fe14c366-8850-40fa-87eb-784b059c3017" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e3ada3ee-ad53-463a-8227-b2bde09ca9dc" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:to="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_6a675b3e-f433-409d-8aff-6aa3a393ea17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_SecuredDebt_6a675b3e-f433-409d-8aff-6aa3a393ea17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_02ad45d3-4a06-408c-96a9-07dbd55ebab7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_SeniorNotes_02ad45d3-4a06-408c-96a9-07dbd55ebab7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_b5d3d93f-7ba5-4148-9ac1-700b8297f6a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_ConvertibleDebt_b5d3d93f-7ba5-4148-9ac1-700b8297f6a1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_8ef9626a-36df-4cfe-9827-3fd4b0c54f67" xlink:href="ari-20230331.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_8ef9626a-36df-4cfe-9827-3fd4b0c54f67" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_6ee5c5a9-a663-4880-97c5-52287484e9e7" xlink:href="ari-20230331.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_6ee5c5a9-a663-4880-97c5-52287484e9e7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_fe386374-d1a3-4a2e-965b-4cb8691c48f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_fe386374-d1a3-4a2e-965b-4cb8691c48f7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_8d80483a-5e45-46f2-95bb-770d10aba57f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DueToRelatedPartiesCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_8d80483a-5e45-46f2-95bb-770d10aba57f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7a201a7d-72cf-4f5c-8008-2f094febbf68" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_ce8c4508-4ac8-4902-bc68-97706084875d" xlink:to="loc_us-gaap_Liabilities_7a201a7d-72cf-4f5c-8008-2f094febbf68" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_9978919b-6aac-4a55-8e43-8a6faf4e5e9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:to="loc_us-gaap_CommitmentsAndContingencies_9978919b-6aac-4a55-8e43-8a6faf4e5e9a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:to="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_ace26341-ea1a-46ee-bb45-1801aeb19987" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:to="loc_us-gaap_PreferredStockValue_ace26341-ea1a-46ee-bb45-1801aeb19987" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_f76537ee-b9ed-4635-9ff9-9d94065aa787" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:to="loc_us-gaap_CommonStockValue_f76537ee-b9ed-4635-9ff9-9d94065aa787" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_85c246a5-db51-4141-81f1-00ad3a37b3b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_85c246a5-db51-4141-81f1-00ad3a37b3b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_be61dcd1-46f3-4fdf-ae87-0505f65dfa5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_be61dcd1-46f3-4fdf-ae87-0505f65dfa5e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f2b6fcd8-3bf8-456f-aed0-e572895020a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c8dd816-4674-488e-809e-82af94b05cd7" xlink:to="loc_us-gaap_StockholdersEquity_f2b6fcd8-3bf8-456f-aed0-e572895020a9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_fa2287ec-d1a7-437d-9ed8-65ac91c38a75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_d92e2eeb-9b83-4ae9-92bd-fe5ccf9c7fd7" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_fa2287ec-d1a7-437d-9ed8-65ac91c38a75" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_0d9a9cea-ea92-4bd2-a7d9-eb9c25e27653" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_e3ada3ee-ad53-463a-8227-b2bde09ca9dc" xlink:to="loc_us-gaap_StatementTable_0d9a9cea-ea92-4bd2-a7d9-eb9c25e27653" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_0d9a9cea-ea92-4bd2-a7d9-eb9c25e27653" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc609ebb-3cc5-44e8-8027-097b0afff2d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0e28ca0d-76a6-4bbf-aa8b-bbf8395ba184" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc609ebb-3cc5-44e8-8027-097b0afff2d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_882db090-0f86-4b57-a9bf-01c909c90d6d" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc609ebb-3cc5-44e8-8027-097b0afff2d9" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_882db090-0f86-4b57-a9bf-01c909c90d6d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_9bd9a6d4-23f2-415d-89d3-81bf9dbde748" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc609ebb-3cc5-44e8-8027-097b0afff2d9" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_9bd9a6d4-23f2-415d-89d3-81bf9dbde748" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_439ebd62-c5f5-4ca7-b415-a65efb84cb6b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_0d9a9cea-ea92-4bd2-a7d9-eb9c25e27653" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_439ebd62-c5f5-4ca7-b415-a65efb84cb6b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_439ebd62-c5f5-4ca7-b415-a65efb84cb6b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_439ebd62-c5f5-4ca7-b415-a65efb84cb6b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_439ebd62-c5f5-4ca7-b415-a65efb84cb6b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_ac03d365-7e2b-4d17-9799-2ea1f9eec89d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_439ebd62-c5f5-4ca7-b415-a65efb84cb6b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_ac03d365-7e2b-4d17-9799-2ea1f9eec89d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_3ae29786-7ed9-42dd-8742-aca241f87ea8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_ac03d365-7e2b-4d17-9799-2ea1f9eec89d" xlink:to="loc_us-gaap_SecuredDebtMember_3ae29786-7ed9-42dd-8742-aca241f87ea8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_77bbb162-2a5d-475d-82be-cb486b10ccd5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_ac03d365-7e2b-4d17-9799-2ea1f9eec89d" xlink:to="loc_us-gaap_SeniorNotesMember_77bbb162-2a5d-475d-82be-cb486b10ccd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgagesMember_ad6e0c61-3cf7-4af6-96d0-e441f89b55b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgagesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_ac03d365-7e2b-4d17-9799-2ea1f9eec89d" xlink:to="loc_us-gaap_MortgagesMember_ad6e0c61-3cf7-4af6-96d0-e441f89b55b5" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" xlink:href="ari-20230331.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended" id="idc9650c44e8b457da30e0dcc6ee496a5_CondensedConsolidatedBalanceSheetsUnauditedParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateOwnedAccumulatedDepreciation_ffc70eb5-14fd-494e-8f6d-ebb4b0167292" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateOwnedAccumulatedDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_RealEstateOwnedAccumulatedDepreciation_ffc70eb5-14fd-494e-8f6d-ebb4b0167292" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_0f429b75-32f4-4d46-ac52-3eee871b5033" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_0f429b75-32f4-4d46-ac52-3eee871b5033" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_10a39128-aabd-4b6d-8ee1-f5b58d85554d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_10a39128-aabd-4b6d-8ee1-f5b58d85554d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_efc817a0-3851-4b39-bb14-5f744a02b459" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_efc817a0-3851-4b39-bb14-5f744a02b459" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_f49b9940-1462-4ae3-8a03-d7ab73006850" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_PreferredStockSharesIssued_f49b9940-1462-4ae3-8a03-d7ab73006850" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockLiquidationPreferenceValue_d8bb5629-8272-40b8-aab0-53fcfdbb0691" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockLiquidationPreferenceValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_PreferredStockLiquidationPreferenceValue_d8bb5629-8272-40b8-aab0-53fcfdbb0691" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_5e893fd8-303d-4e72-bb6a-626e8bdb1504" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_5e893fd8-303d-4e72-bb6a-626e8bdb1504" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_88078582-8c99-40eb-99d7-b9c18e3ca0f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_88078582-8c99-40eb-99d7-b9c18e3ca0f8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_49ddb19f-95c5-4158-8ea8-b6b479d75c7e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_CommonStockSharesIssued_49ddb19f-95c5-4158-8ea8-b6b479d75c7e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_e80c78b6-b1c7-41ca-a163-e484e6b2ca27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_e80c78b6-b1c7-41ca-a163-e484e6b2ca27" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_cfe5c408-e583-40a2-8b1e-99f47aa5b5a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_cfe5c408-e583-40a2-8b1e-99f47aa5b5a9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePledgedStatusExtensibleEnumeration_3c218aca-afe9-42cf-8657-b707b96fedb2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePledgedStatusExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_FinancingReceivablePledgedStatusExtensibleEnumeration_3c218aca-afe9-42cf-8657-b707b96fedb2" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableAllowanceForCreditLossIncludingLoanSpecificRealEstate_9e0b260d-5ed2-451f-92cb-a6c50581c939" xlink:href="ari-20230331.xsd#ari_FinancingReceivableAllowanceForCreditLossIncludingLoanSpecificRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_ari_FinancingReceivableAllowanceForCreditLossIncludingLoanSpecificRealEstate_9e0b260d-5ed2-451f-92cb-a6c50581c939" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_9c6990bc-ccb5-4040-862b-c992a05b4eb2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_9c6990bc-ccb5-4040-862b-c992a05b4eb2" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableAllowanceForCreditLossLoanSpecificRealEstate_0117788f-49cf-4a30-a53d-28416d437897" xlink:href="ari-20230331.xsd#ari_FinancingReceivableAllowanceForCreditLossLoanSpecificRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_ari_FinancingReceivableAllowanceForCreditLossLoanSpecificRealEstate_0117788f-49cf-4a30-a53d-28416d437897" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_072fa6d3-55f5-4026-9a12-d30b9614a6f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_072fa6d3-55f5-4026-9a12-d30b9614a6f3" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ab968b4a-5fc4-4f23-a43a-558232898891" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_d1f7366f-56be-4492-9d74-f58c15fdf767" xlink:to="loc_us-gaap_StatementTable_ab968b4a-5fc4-4f23-a43a-558232898891" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_578435ed-bcdf-4c8a-a1da-859abc02ad46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ab968b4a-5fc4-4f23-a43a-558232898891" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_578435ed-bcdf-4c8a-a1da-859abc02ad46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_578435ed-bcdf-4c8a-a1da-859abc02ad46_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_578435ed-bcdf-4c8a-a1da-859abc02ad46" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_578435ed-bcdf-4c8a-a1da-859abc02ad46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c306e103-b8d6-4af1-9924-9a1987a977e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_578435ed-bcdf-4c8a-a1da-859abc02ad46" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c306e103-b8d6-4af1-9924-9a1987a977e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_4166033c-9ee3-4f11-96a7-e9bd28b654c9" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c306e103-b8d6-4af1-9924-9a1987a977e1" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_4166033c-9ee3-4f11-96a7-e9bd28b654c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_acd2a2e2-3ba7-47bf-b9e7-362a0dd8b53c" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c306e103-b8d6-4af1-9924-9a1987a977e1" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_acd2a2e2-3ba7-47bf-b9e7-362a0dd8b53c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ab968b4a-5fc4-4f23-a43a-558232898891" xlink:to="loc_us-gaap_StatementClassOfStockAxis_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73" xlink:to="loc_us-gaap_ClassOfStockDomain_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0d1ee366-d895-44d9-960c-e8e60a4a4752" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_23c8d9e3-f570-4fcc-b94f-2ae92b0c8a73" xlink:to="loc_us-gaap_ClassOfStockDomain_0d1ee366-d895-44d9-960c-e8e60a4a4752" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeriesB1PreferredStockMember_32409bdd-3e40-4769-b49b-74b8c0db4548" xlink:href="ari-20230331.xsd#ari_SeriesB1PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_0d1ee366-d895-44d9-960c-e8e60a4a4752" xlink:to="loc_ari_SeriesB1PreferredStockMember_32409bdd-3e40-4769-b49b-74b8c0db4548" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnaudited" xlink:type="simple" xlink:href="ari-20230331.xsd#CondensedConsolidatedStatementofOperationsUnaudited"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnaudited" xlink:type="extended" id="ieefe333a279f425db2971474bb602e22_CondensedConsolidatedStatementofOperationsUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_d9b637a6-0099-43fe-a88f-ab3a9f500dec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_d9b637a6-0099-43fe-a88f-ab3a9f500dec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_53a02395-1dd1-4505-bc14-2628c6057df0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndFeeIncomeLoansCommercial"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_53a02395-1dd1-4505-bc14-2628c6057df0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_3283c21c-c5ce-4115-9673-d36abd763037" xlink:href="ari-20230331.xsd#ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_3283c21c-c5ce-4115-9673-d36abd763037" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_27a8250f-dbf3-410d-bcfc-429ed6c76cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_us-gaap_InterestExpense_27a8250f-dbf3-410d-bcfc-429ed6c76cdf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_6751e321-d76d-45d4-8643-aaa49c927178" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_6751e321-d76d-45d4-8643-aaa49c927178" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_1271e4b5-9c38-4f0f-83e2-3faf017bdb53" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_1271e4b5-9c38-4f0f-83e2-3faf017bdb53" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_d7e90083-2404-4f5c-8d9e-8a38cacf835a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_fa8f15d6-8a70-401a-a6f0-590c1026cd51" xlink:to="loc_us-gaap_Revenues_d7e90083-2404-4f5c-8d9e-8a38cacf835a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_994c0aab-4a68-477b-b66e-550ab9fe2c30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_994c0aab-4a68-477b-b66e-550ab9fe2c30" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_a4be7ad8-095c-438e-9f95-eedaa63b222d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:to="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_a4be7ad8-095c-438e-9f95-eedaa63b222d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_918fdc3e-3fdd-4b64-980c-927749dfa84c" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedOperatingCostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:to="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_918fdc3e-3fdd-4b64-980c-927749dfa84c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_15226348-bae7-406c-ba9f-512a5ee66d34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_15226348-bae7-406c-ba9f-512a5ee66d34" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_af2b1359-244c-463f-bef7-f04500849e83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_2af29b95-2278-497b-a575-8501491c72ce" xlink:to="loc_us-gaap_OperatingExpenses_af2b1359-244c-463f-bef7-f04500849e83" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncome_2e63a445-d06f-45a7-abb9-e0129dab8a13" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_OtherNonoperatingIncome_2e63a445-d06f-45a7-abb9-e0129dab8a13" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_9acf4076-3b83-4599-a24b-22347dddadd4" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_9acf4076-3b83-4599-a24b-22347dddadd4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_9f4dfe7b-14dd-4b09-af0e-399175f4c791" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_9f4dfe7b-14dd-4b09-af0e-399175f4c791" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_bdffae81-7e2b-4cac-bb3c-f937b50efb44" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_bdffae81-7e2b-4cac-bb3c-f937b50efb44" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_3386a02e-c3a8-41bc-bd33-b7d69ffdfcb4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_3386a02e-c3a8-41bc-bd33-b7d69ffdfcb4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_b3ef12ac-e018-4ae8-a742-04b2858fbc83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d0b3521a-ed5b-40ba-a1c9-fecb6baf1d7d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_NetIncomeLoss_d0b3521a-ed5b-40ba-a1c9-fecb6baf1d7d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_e1e74f26-c24b-45d5-8cbb-570f2651fdfa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_e1e74f26-c24b-45d5-8cbb-570f2651fdfa" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_38e6274e-715c-44c8-8c73-2cabc298a3c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_38e6274e-715c-44c8-8c73-2cabc298a3c7" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_7e734377-bd10-4d84-93db-53bdea16ff44" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_EarningsPerShareAbstract_7e734377-bd10-4d84-93db-53bdea16ff44" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_fbd22189-4d9f-4c57-9dad-94a6bf06f6cf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_7e734377-bd10-4d84-93db-53bdea16ff44" xlink:to="loc_us-gaap_EarningsPerShareBasic_fbd22189-4d9f-4c57-9dad-94a6bf06f6cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_90ee35e9-c3e0-4e03-bc5f-078f44125871" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_7e734377-bd10-4d84-93db-53bdea16ff44" xlink:to="loc_us-gaap_EarningsPerShareDiluted_90ee35e9-c3e0-4e03-bc5f-078f44125871" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_efb5e4f6-3bc1-4e71-909c-11b6bd8e52cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_efb5e4f6-3bc1-4e71-909c-11b6bd8e52cd" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_5b6ddf5b-3475-47e3-abbb-88d472cb5acb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_5b6ddf5b-3475-47e3-abbb-88d472cb5acb" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_2dbf920c-5623-452d-9d32-4ee6a1f0314f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_2dbf920c-5623-452d-9d32-4ee6a1f0314f" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_1ea50aaa-3e59-4f8c-92b3-a50f58841465" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_5ada2dd1-95c7-420b-8694-3e29dd7bb79e" xlink:to="loc_us-gaap_StatementTable_1ea50aaa-3e59-4f8c-92b3-a50f58841465" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_22d8837c-dbe8-4196-9865-787088bdef55" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1ea50aaa-3e59-4f8c-92b3-a50f58841465" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_22d8837c-dbe8-4196-9865-787088bdef55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_22d8837c-dbe8-4196-9865-787088bdef55_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_22d8837c-dbe8-4196-9865-787088bdef55" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_22d8837c-dbe8-4196-9865-787088bdef55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b1d3f069-b03b-4772-8f46-db58f6f497a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_22d8837c-dbe8-4196-9865-787088bdef55" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b1d3f069-b03b-4772-8f46-db58f6f497a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_54b5e131-7fb4-45fe-ba83-3e8d9c6e5a4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b1d3f069-b03b-4772-8f46-db58f6f497a2" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_54b5e131-7fb4-45fe-ba83-3e8d9c6e5a4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestRateCapandSwapMember_efeaddf2-cf94-4422-a4ef-f3ec6109282a" xlink:href="ari-20230331.xsd#ari_InterestRateCapandSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b1d3f069-b03b-4772-8f46-db58f6f497a2" xlink:to="loc_ari_InterestRateCapandSwapMember_efeaddf2-cf94-4422-a4ef-f3ec6109282a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnauditedParenthetical" xlink:type="simple" xlink:href="ari-20230331.xsd#CondensedConsolidatedStatementofOperationsUnauditedParenthetical"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnauditedParenthetical" xlink:type="extended" id="i29101bc064b8489b96ab4246ec17aa6c_CondensedConsolidatedStatementofOperationsUnauditedParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_6e678a21-fe48-41e8-9fa0-aff3edb6a25b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_d0fac3ff-9dd6-4110-887e-b2cd3dbba51c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6e678a21-fe48-41e8-9fa0-aff3edb6a25b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_d0fac3ff-9dd6-4110-887e-b2cd3dbba51c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_2682e6d1-ca5a-4184-80ba-087949461386" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6e678a21-fe48-41e8-9fa0-aff3edb6a25b" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_2682e6d1-ca5a-4184-80ba-087949461386" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_37868992-a71c-4f6e-8ab1-e07cb29a8ce0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6e678a21-fe48-41e8-9fa0-aff3edb6a25b" xlink:to="loc_us-gaap_StatementTable_37868992-a71c-4f6e-8ab1-e07cb29a8ce0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_2afa1b54-266f-4e81-b017-db13fcd28c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_37868992-a71c-4f6e-8ab1-e07cb29a8ce0" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_2afa1b54-266f-4e81-b017-db13fcd28c9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_2afa1b54-266f-4e81-b017-db13fcd28c9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_2afa1b54-266f-4e81-b017-db13fcd28c9e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_2afa1b54-266f-4e81-b017-db13fcd28c9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_cb86621f-cd7b-48a8-bdb9-852c93255d15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_2afa1b54-266f-4e81-b017-db13fcd28c9e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_cb86621f-cd7b-48a8-bdb9-852c93255d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_fbb3d9a0-3adc-4451-b942-ca23fb133e25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_cb86621f-cd7b-48a8-bdb9-852c93255d15" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_fbb3d9a0-3adc-4451-b942-ca23fb133e25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestRateCapandSwapMember_2c204656-cce4-468b-a211-3322a510ef6f" xlink:href="ari-20230331.xsd#ari_InterestRateCapandSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_cb86621f-cd7b-48a8-bdb9-852c93255d15" xlink:to="loc_ari_InterestRateCapandSwapMember_2c204656-cce4-468b-a211-3322a510ef6f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ConsolidatedStatementofChangesinStockholdersEquityUnaudited" xlink:type="simple" xlink:href="ari-20230331.xsd#ConsolidatedStatementofChangesinStockholdersEquityUnaudited"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ConsolidatedStatementofChangesinStockholdersEquityUnaudited" xlink:type="extended" id="i589aeae5f3bd4560bc2ceb620f6f5bc5_ConsolidatedStatementofChangesinStockholdersEquityUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_eb5c6244-22fc-48d0-b22d-eee28fa35821" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_eb5c6244-22fc-48d0-b22d-eee28fa35821" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_a1a326ef-d4b9-45fd-b53d-d13369d289a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_a1a326ef-d4b9-45fd-b53d-d13369d289a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8d065045-7ca4-4f58-9c7e-8287a494b191" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_StockholdersEquity_8d065045-7ca4-4f58-9c7e-8287a494b191" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_ca4bd964-2ebc-4820-8aec-5e96e17707c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_ca4bd964-2ebc-4820-8aec-5e96e17707c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_09d325ef-aae8-41a6-ba08-9afcc37058d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_09d325ef-aae8-41a6-ba08-9afcc37058d7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_03f4d0c8-03e5-4c69-b7e6-f1dfa691b286" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_03f4d0c8-03e5-4c69-b7e6-f1dfa691b286" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_755d15ec-6349-46f0-b730-3bf2e9a83381" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_755d15ec-6349-46f0-b730-3bf2e9a83381" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5d750e08-3854-4a2d-8dea-4c266fac1603" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_NetIncomeLoss_5d750e08-3854-4a2d-8dea-4c266fac1603" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_e9a96865-3b07-4967-a7ad-0e196d434034" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_DividendsPreferredStock_e9a96865-3b07-4967-a7ad-0e196d434034" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_089d2b3a-417f-4f82-bd92-292c3fd02acf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a746f1-7ab0-4751-ab9c-6270a3d32257" xlink:to="loc_us-gaap_DividendsCommonStock_089d2b3a-417f-4f82-bd92-292c3fd02acf" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_71528203-affe-4d2d-86f4-af196d1ae783" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e798785c-eb6e-487a-9eb0-cd127defa136" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_e082be28-e922-4e11-9429-22b632eb63b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_610f542f-a76c-44b8-bde2-38f08feef7d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_eb5c6244-22fc-48d0-b22d-eee28fa35821" xlink:to="loc_us-gaap_StatementTable_610f542f-a76c-44b8-bde2-38f08feef7d6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_9ed157bd-b659-40a1-ac41-35e3878dee48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_610f542f-a76c-44b8-bde2-38f08feef7d6" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_9ed157bd-b659-40a1-ac41-35e3878dee48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_9ed157bd-b659-40a1-ac41-35e3878dee48_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9ed157bd-b659-40a1-ac41-35e3878dee48" xlink:to="loc_us-gaap_EquityComponentDomain_9ed157bd-b659-40a1-ac41-35e3878dee48_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9ed157bd-b659-40a1-ac41-35e3878dee48" xlink:to="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_0607aef7-0816-457f-9192-ce6b53c25862" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:to="loc_us-gaap_PreferredStockMember_0607aef7-0816-457f-9192-ce6b53c25862" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_58512fd2-5dbc-4103-aaa1-4518b9a92e9e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:to="loc_us-gaap_CommonStockMember_58512fd2-5dbc-4103-aaa1-4518b9a92e9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_099fbebd-ad40-435a-ac0b-d83d2bc07bed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_099fbebd-ad40-435a-ac0b-d83d2bc07bed" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_30b8fb12-dcbc-407f-9a5f-10d00e85e504" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f67890ad-d5a7-48d6-bc1b-3cbc3d73eb36" xlink:to="loc_us-gaap_RetainedEarningsMember_30b8fb12-dcbc-407f-9a5f-10d00e85e504" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_c4bd8046-f0cb-4137-bf2a-619d741d0a45" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_610f542f-a76c-44b8-bde2-38f08feef7d6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_c4bd8046-f0cb-4137-bf2a-619d741d0a45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_c4bd8046-f0cb-4137-bf2a-619d741d0a45_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_c4bd8046-f0cb-4137-bf2a-619d741d0a45" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_c4bd8046-f0cb-4137-bf2a-619d741d0a45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b92c151d-fa12-4d75-88b6-e2c9c3ab61d2" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_c4bd8046-f0cb-4137-bf2a-619d741d0a45" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b92c151d-fa12-4d75-88b6-e2c9c3ab61d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_2a805546-91a9-45f2-bf7e-c88ac87ad75e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b92c151d-fa12-4d75-88b6-e2c9c3ab61d2" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_2a805546-91a9-45f2-bf7e-c88ac87ad75e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofCashFlowsUnaudited" xlink:type="simple" xlink:href="ari-20230331.xsd#CondensedConsolidatedStatementofCashFlowsUnaudited"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedStatementofCashFlowsUnaudited" xlink:type="extended" id="i426b153d86b14fd2a1598e04e99225b5_CondensedConsolidatedStatementofCashFlowsUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_74720bf6-4926-485d-a0d8-138909562198" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_74720bf6-4926-485d-a0d8-138909562198" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_7b834890-e708-4345-b135-5ff1b2c06456" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_74720bf6-4926-485d-a0d8-138909562198" xlink:to="loc_us-gaap_NetIncomeLoss_7b834890-e708-4345-b135-5ff1b2c06456" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_74720bf6-4926-485d-a0d8-138909562198" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_3b85f683-7ad2-4452-8303-da683f4914e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_3b85f683-7ad2-4452-8303-da683f4914e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_14feafca-1a3e-4f46-bae2-39974c4fcafd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_14feafca-1a3e-4f46-bae2-39974c4fcafd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_54272cdf-4534-43e3-8c32-1b59715d93f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_ShareBasedCompensation_54272cdf-4534-43e3-8c32-1b59715d93f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_1f01f0e0-c5aa-4fc5-bf07-1bab7809c5dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_1f01f0e0-c5aa-4fc5-bf07-1bab7809c5dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_a9f2c496-ac04-419f-a1ed-db39c45aaf36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_a9f2c496-ac04-419f-a1ed-db39c45aaf36" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_fffb8df7-39ef-4493-91da-10bb52add8a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_fffb8df7-39ef-4493-91da-10bb52add8a9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_7fadff4f-dd1a-456d-9a56-2c912bc5e8a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_7fadff4f-dd1a-456d-9a56-2c912bc5e8a9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_9823d2be-d06d-435a-ad38-a97acc507f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_9823d2be-d06d-435a-ad38-a97acc507f5b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_05b04e3a-ee1a-43ef-8489-a0692bd70fda" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_05b04e3a-ee1a-43ef-8489-a0692bd70fda" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8579b12a-6cae-49e0-aea9-576a8d50acdb" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseFromPaidInKind_7762ae7b-6d74-483a-b756-f9b3c720b35a" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseFromPaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:to="loc_ari_IncreaseDecreaseFromPaidInKind_7762ae7b-6d74-483a-b756-f9b3c720b35a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1d344ca3-9a11-4042-84d5-4da8bb3c9948" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1d344ca3-9a11-4042-84d5-4da8bb3c9948" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_6421d11f-b688-4841-9710-95f01130baeb" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:to="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_6421d11f-b688-4841-9710-95f01130baeb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_1746b962-e20d-450f-b333-398febd4db5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_96046551-3630-495e-87d7-63220afc841d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_1746b962-e20d-450f-b333-398febd4db5e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_44143836-fb8c-4346-87ac-3eec81a22391" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_74720bf6-4926-485d-a0d8-138909562198" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_44143836-fb8c-4346-87ac-3eec81a22391" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_394da414-88a4-4ed1-a8ba-4b187dee5f00" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_394da414-88a4-4ed1-a8ba-4b187dee5f00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_7b5fcb93-38c1-453b-a817-357be4528d83" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_7b5fcb93-38c1-453b-a817-357be4528d83" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GainLossInCollateralHeldInvestingActivities_a0f7551c-dbe2-4b4d-bcb4-3e397f37fc58" xlink:href="ari-20230331.xsd#ari_GainLossInCollateralHeldInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_GainLossInCollateralHeldInvestingActivities_a0f7551c-dbe2-4b4d-bcb4-3e397f37fc58" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_1cc40072-5f19-4e6e-8e42-f973a211e1b3" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_1cc40072-5f19-4e6e-8e42-f973a211e1b3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopRealEstateAssets_06740be8-be8b-4dd6-911b-1fd51db26c9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToDevelopRealEstateAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_us-gaap_PaymentsToDevelopRealEstateAssets_06740be8-be8b-4dd6-911b-1fd51db26c9a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_a19249e7-0454-4aca-96fd-786a983f931d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_a19249e7-0454-4aca-96fd-786a983f931d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_a0bd3e0e-c27d-4389-8a93-f3fafa089283" xlink:href="ari-20230331.xsd#ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_a0bd3e0e-c27d-4389-8a93-f3fafa089283" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLoanOriginations1_ff2c55f3-0d82-4e63-ac49-06158fabece0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLoanOriginations1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_us-gaap_ProceedsFromLoanOriginations1_ff2c55f3-0d82-4e63-ac49-06158fabece0" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_7819650d-f34c-4724-801c-8d5107dbde1b" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseInRealEstateHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_7819650d-f34c-4724-801c-8d5107dbde1b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ea977bea-fa9d-48d0-92d8-5ecd729720f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_44981645-044f-4870-9906-a047ecdc5867" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ea977bea-fa9d-48d0-92d8-5ecd729720f4" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_e3c33ac8-52f4-427d-8cb1-270acef1d35a" xlink:href="ari-20230331.xsd#ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_e3c33ac8-52f4-427d-8cb1-270acef1d35a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_e82d3690-5ab9-44a1-9bab-a2d485aa1f18" xlink:href="ari-20230331.xsd#ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_e82d3690-5ab9-44a1-9bab-a2d485aa1f18" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_b8a25e9d-c825-4276-9c95-5d986503f2c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_b8a25e9d-c825-4276-9c95-5d986503f2c9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_ceec1039-b21f-4c8f-985d-597a394e8880" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_ceec1039-b21f-4c8f-985d-597a394e8880" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfFinancingCosts_fbc20149-8356-431d-b1cc-dbc764ce04c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_PaymentsOfFinancingCosts_fbc20149-8356-431d-b1cc-dbc764ce04c8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_166343e7-5fa8-4f47-9008-81e4b687d181" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_166343e7-5fa8-4f47-9008-81e4b687d181" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_fc3cd58c-5adf-4bc0-8027-791f75f1ad50" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_fc3cd58c-5adf-4bc0-8027-791f75f1ad50" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_e504e8b0-4fdc-4212-908a-5f14abf62f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_e504e8b0-4fdc-4212-908a-5f14abf62f5c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_577822ef-1143-49aa-af7e-2ea34e5b6f1b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_577822ef-1143-49aa-af7e-2ea34e5b6f1b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_9d60a0ff-579f-4e84-99ff-cc49624b0b30" xlink:href="ari-20230331.xsd#ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_dd8da617-8def-48ec-8d86-d4736c3dd2b5" xlink:to="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_9d60a0ff-579f-4e84-99ff-cc49624b0b30" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_5a9db3ef-de00-4e54-9b4e-bd102cf7779a" xlink:href="ari-20230331.xsd#ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_5a9db3ef-de00-4e54-9b4e-bd102cf7779a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c48a2a0b-2dfb-48f0-b191-a01f92e9a51d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c48a2a0b-2dfb-48f0-b191-a01f92e9a51d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6bd9167d-ffc7-4fb5-9cdc-71c143f82ba9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6bd9167d-ffc7-4fb5-9cdc-71c143f82ba9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1800c582-bcbb-43c0-ba76-f2d391b8bdb0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1800c582-bcbb-43c0-ba76-f2d391b8bdb0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_61929d60-9132-4094-9f28-a820d32b2eab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalCashFlowElementsAbstract_4a7acd5d-ed5d-44a9-a11c-77d73c067831" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalCashFlowElementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_AdditionalCashFlowElementsAbstract_4a7acd5d-ed5d-44a9-a11c-77d73c067831" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_e606d7d1-7eac-4836-8056-638e41f825c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdditionalCashFlowElementsAbstract_4a7acd5d-ed5d-44a9-a11c-77d73c067831" xlink:to="loc_us-gaap_InterestPaidNet_e606d7d1-7eac-4836-8056-638e41f825c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SupplementalCashFlowInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_2fd312d0-aacd-404e-8f8b-a4a0a26eeb2a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_2fd312d0-aacd-404e-8f8b-a4a0a26eeb2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AdditionsToParticipationSold_4f7bcb98-15d3-4c01-a72f-c8568db741e0" xlink:href="ari-20230331.xsd#ari_AdditionsToParticipationSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_AdditionsToParticipationSold_4f7bcb98-15d3-4c01-a72f-c8568db741e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoanProceedsHeldByServicerNoncash_729c2b4b-8bce-40c7-a098-c28a5f6f2ec9" xlink:href="ari-20230331.xsd#ari_LoanProceedsHeldByServicerNoncash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_LoanProceedsHeldByServicerNoncash_729c2b4b-8bce-40c7-a098-c28a5f6f2ec9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferToOtherRealEstate_04b7c60d-dd33-400d-ad7d-bd6f8ca939e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransferToOtherRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_us-gaap_TransferToOtherRealEstate_04b7c60d-dd33-400d-ad7d-bd6f8ca939e4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOfAssetsAcquired_a94a20b5-6ab1-42ea-a0ce-77b2df59cde7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueOfAssetsAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_us-gaap_FairValueOfAssetsAcquired_a94a20b5-6ab1-42ea-a0ce-77b2df59cde7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LiabilitiesRelatedToRealEstateOwnedHeldForInvestment_5295211f-7b4b-4512-891c-11addcfc8d23" xlink:href="ari-20230331.xsd#ari_LiabilitiesRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_LiabilitiesRelatedToRealEstateOwnedHeldForInvestment_5295211f-7b4b-4512-891c-11addcfc8d23" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TransferOfAssetsToAssetsRelatedToRealEstateOwnedHeldForSale_63c9bdbf-cfa6-4f47-aa4d-e1d8daa28f5b" xlink:href="ari-20230331.xsd#ari_TransferOfAssetsToAssetsRelatedToRealEstateOwnedHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_TransferOfAssetsToAssetsRelatedToRealEstateOwnedHeldForSale_63c9bdbf-cfa6-4f47-aa4d-e1d8daa28f5b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssetsRelatedToRealEstateOwnedNet_7c73897e-13e4-4eb8-b1fb-1416b97f2d9c" xlink:href="ari-20230331.xsd#ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssetsRelatedToRealEstateOwnedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssetsRelatedToRealEstateOwnedNet_7c73897e-13e4-4eb8-b1fb-1416b97f2d9c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssets_49fa75ad-10af-4494-8f29-d7a8232c1e33" xlink:href="ari-20230331.xsd#ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_TransferOfAssetsRelatedToRealEstateOwnedHeldForSaleToAssets_49fa75ad-10af-4494-8f29-d7a8232c1e33" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedTransferToHeldForSaleHeldForSaleNet_8efb8369-cf1b-4606-97a2-8c6461b354fe" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedTransferToHeldForSaleHeldForSaleNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_RealEstateOwnedTransferToHeldForSaleHeldForSaleNet_8efb8369-cf1b-4606-97a2-8c6461b354fe" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TransferOfLiabilitiesRelatedToRealEstateOwnedHeldForSaleToLiabilities_c3552601-3f20-4c7f-99aa-674f1046afcb" xlink:href="ari-20230331.xsd#ari_TransferOfLiabilitiesRelatedToRealEstateOwnedHeldForSaleToLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_fd51f6a6-2b90-4813-8eff-6422482b341a" xlink:to="loc_ari_TransferOfLiabilitiesRelatedToRealEstateOwnedHeldForSaleToLiabilities_c3552601-3f20-4c7f-99aa-674f1046afcb" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_abb29f40-f7f6-48ac-a3f7-b9ab0a2bcc5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_33927057-c1f5-4fdd-a1dd-dd7320ce7911" xlink:to="loc_us-gaap_StatementTable_abb29f40-f7f6-48ac-a3f7-b9ab0a2bcc5e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_011133f0-ede7-4ddc-8a87-7a807677ddac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_abb29f40-f7f6-48ac-a3f7-b9ab0a2bcc5e" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_011133f0-ede7-4ddc-8a87-7a807677ddac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_011133f0-ede7-4ddc-8a87-7a807677ddac_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_011133f0-ede7-4ddc-8a87-7a807677ddac" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_011133f0-ede7-4ddc-8a87-7a807677ddac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0da64a89-a639-4003-8ac6-b81fe660a0d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_011133f0-ede7-4ddc-8a87-7a807677ddac" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0da64a89-a639-4003-8ac6-b81fe660a0d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_ff6d26db-47f0-4b4e-8ee8-d323b0cc33db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0da64a89-a639-4003-8ac6-b81fe660a0d2" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_ff6d26db-47f0-4b4e-8ee8-d323b0cc33db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestRateCapandSwapMember_ab65008d-595e-4222-be53-0efbe904c08b" xlink:href="ari-20230331.xsd#ari_InterestRateCapandSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0da64a89-a639-4003-8ac6-b81fe660a0d2" xlink:to="loc_ari_InterestRateCapandSwapMember_ab65008d-595e-4222-be53-0efbe904c08b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/FairValueDisclosureSummarizesLevelsinFairValueHierarchyofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#FairValueDisclosureSummarizesLevelsinFairValueHierarchyofFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/FairValueDisclosureSummarizesLevelsinFairValueHierarchyofFinancialInstrumentsDetails" xlink:type="extended" id="i7c2f2db499224032acba281e39e11650_FairValueDisclosureSummarizesLevelsinFairValueHierarchyofFinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_08d78414-168f-4616-9904-d0d88e48b0ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_1a69fe2d-c29a-4988-b84e-e3a0b1732941" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_08d78414-168f-4616-9904-d0d88e48b0ea" xlink:to="loc_us-gaap_DerivativeAssets_1a69fe2d-c29a-4988-b84e-e3a0b1732941" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_08d78414-168f-4616-9904-d0d88e48b0ea" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_06c510a2-1e55-4055-923b-818dc7d92ecf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_06c510a2-1e55-4055-923b-818dc7d92ecf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_06c510a2-1e55-4055-923b-818dc7d92ecf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_06c510a2-1e55-4055-923b-818dc7d92ecf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_06c510a2-1e55-4055-923b-818dc7d92ecf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_da891598-3b43-477d-b8a6-9de268e010cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_06c510a2-1e55-4055-923b-818dc7d92ecf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_da891598-3b43-477d-b8a6-9de268e010cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_d1bc17f3-be49-454c-9619-da6c9be25d75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_da891598-3b43-477d-b8a6-9de268e010cd" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_d1bc17f3-be49-454c-9619-da6c9be25d75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_80fbfec5-8e54-4401-a415-d7c0957c21ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_da891598-3b43-477d-b8a6-9de268e010cd" xlink:to="loc_us-gaap_InterestRateCapMember_80fbfec5-8e54-4401-a415-d7c0957c21ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_29145a93-0341-494a-87c7-37ba9e09aa4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_29145a93-0341-494a-87c7-37ba9e09aa4d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_29145a93-0341-494a-87c7-37ba9e09aa4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_29145a93-0341-494a-87c7-37ba9e09aa4d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_29145a93-0341-494a-87c7-37ba9e09aa4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7310b394-5aad-443d-8421-fee30adaabda" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_29145a93-0341-494a-87c7-37ba9e09aa4d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7310b394-5aad-443d-8421-fee30adaabda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_99b89821-7695-4293-82e2-ffd44396692e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7310b394-5aad-443d-8421-fee30adaabda" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_99b89821-7695-4293-82e2-ffd44396692e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_ccd2a532-d823-410f-bd0e-fe4cf87217a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7310b394-5aad-443d-8421-fee30adaabda" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_ccd2a532-d823-410f-bd0e-fe4cf87217a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_df50a39f-b70a-4181-9c63-a66c2ce2a626" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7310b394-5aad-443d-8421-fee30adaabda" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_df50a39f-b70a-4181-9c63-a66c2ce2a626" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_e271eaae-c437-449c-9eed-48947ff3acf3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_e271eaae-c437-449c-9eed-48947ff3acf3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e271eaae-c437-449c-9eed-48947ff3acf3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_e271eaae-c437-449c-9eed-48947ff3acf3" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e271eaae-c437-449c-9eed-48947ff3acf3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_17c1c68d-0c79-4703-8fa5-873b30b53a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_e271eaae-c437-449c-9eed-48947ff3acf3" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_17c1c68d-0c79-4703-8fa5-873b30b53a7a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_33a3d437-e830-4a8a-b976-bb0780763cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_17c1c68d-0c79-4703-8fa5-873b30b53a7a" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_33a3d437-e830-4a8a-b976-bb0780763cfc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_0183f3ef-f8c4-4ba4-a984-1c2a618c830a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_33a3d437-e830-4a8a-b976-bb0780763cfc" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_0183f3ef-f8c4-4ba4-a984-1c2a618c830a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0ca750ee-ea3d-4f4f-8d4f-d68bd1cd214b" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_3c384ef7-b278-4c41-ad7b-9b188aecf624" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3d49ef5c-3997-4b5e-adca-a05ce3a53ecc" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_3c384ef7-b278-4c41-ad7b-9b188aecf624" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_4d94fec9-24ae-4bc1-9540-8f4e2b08d3c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_3c384ef7-b278-4c41-ad7b-9b188aecf624" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_4d94fec9-24ae-4bc1-9540-8f4e2b08d3c1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/FairValueDisclosureNarrativeDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#FairValueDisclosureNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/FairValueDisclosureNarrativeDetails" xlink:type="extended" id="i4989e7c377514c4eb9e95e3230d87693_FairValueDisclosureNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyNet_1e0388fe-59a0-47a2-a81d-71d05b2a1313" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateInvestmentPropertyNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_us-gaap_RealEstateInvestmentPropertyNet_1e0388fe-59a0-47a2-a81d-71d05b2a1313" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfRealEstate_fface635-f297-4085-b98c-fd449416ec3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ImpairmentOfRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_us-gaap_ImpairmentOfRealEstate_fface635-f297-4085-b98c-fd449416ec3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateInvestmentMeasurementInput_18a9571e-3acd-4c32-b1d9-329470433bdf" xlink:href="ari-20230331.xsd#ari_RealEstateInvestmentMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_ari_RealEstateInvestmentMeasurementInput_18a9571e-3acd-4c32-b1d9-329470433bdf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_08ad0ef6-b419-4198-9036-15f2859527e3" xlink:href="ari-20230331.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_08ad0ef6-b419-4198-9036-15f2859527e3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferToOtherRealEstate_ac62ffe7-110d-46fa-89b0-b4e64646f449" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransferToOtherRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_us-gaap_TransferToOtherRealEstate_ac62ffe7-110d-46fa-89b0-b4e64646f449" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_c3548f8b-6266-47f3-9e86-0d1ab152983b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_7d36cdd2-61ad-432b-93f6-c2b80943bc64" xlink:to="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_c3548f8b-6266-47f3-9e86-0d1ab152983b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_afa62cb8-de61-4959-99a6-c18409b8c372" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_c3548f8b-6266-47f3-9e86-0d1ab152983b" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_afa62cb8-de61-4959-99a6-c18409b8c372" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_afa62cb8-de61-4959-99a6-c18409b8c372_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_afa62cb8-de61-4959-99a6-c18409b8c372" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_afa62cb8-de61-4959-99a6-c18409b8c372_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_4c78f5d9-9b5d-4648-8337-8f7b635abe36" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_afa62cb8-de61-4959-99a6-c18409b8c372" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_4c78f5d9-9b5d-4648-8337-8f7b635abe36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelPropertyThroughADeedInLieuOfForeclosureMember_0abfcc46-4527-4525-b796-f594283b041c" xlink:href="ari-20230331.xsd#ari_HotelPropertyThroughADeedInLieuOfForeclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_4c78f5d9-9b5d-4648-8337-8f7b635abe36" xlink:to="loc_ari_HotelPropertyThroughADeedInLieuOfForeclosureMember_0abfcc46-4527-4525-b796-f594283b041c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DeedInLieuOfForeclosureMember_e5e0e5b0-2b84-4f86-ac7f-b4c58973b26d" xlink:href="ari-20230331.xsd#ari_DeedInLieuOfForeclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_4c78f5d9-9b5d-4648-8337-8f7b635abe36" xlink:to="loc_ari_DeedInLieuOfForeclosureMember_e5e0e5b0-2b84-4f86-ac7f-b4c58973b26d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelWashingtonD.C.Member_a1e969f8-7094-4cd9-9814-c747e0146b06" xlink:href="ari-20230331.xsd#ari_HotelWashingtonD.C.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_4c78f5d9-9b5d-4648-8337-8f7b635abe36" xlink:to="loc_ari_HotelWashingtonD.C.Member_a1e969f8-7094-4cd9-9814-c747e0146b06" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_c3548f8b-6266-47f3-9e86-0d1ab152983b" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e969a70c-aa07-475a-b586-8cc53e561578" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_827bfcf2-bc6b-4d3c-b4c0-78cec0bfd0b7" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e969a70c-aa07-475a-b586-8cc53e561578" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_17b73c1e-45cb-43cc-a723-ac622e60f8ea" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e969a70c-aa07-475a-b586-8cc53e561578" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_17b73c1e-45cb-43cc-a723-ac622e60f8ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_2a2088cb-767a-40ca-ad62-fa1267efdf9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_c3548f8b-6266-47f3-9e86-0d1ab152983b" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_2a2088cb-767a-40ca-ad62-fa1267efdf9a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_2a2088cb-767a-40ca-ad62-fa1267efdf9a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_2a2088cb-767a-40ca-ad62-fa1267efdf9a" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_2a2088cb-767a-40ca-ad62-fa1267efdf9a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_5f8f7e88-de08-44a7-91a8-96c18b592b50" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_2a2088cb-767a-40ca-ad62-fa1267efdf9a" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_5f8f7e88-de08-44a7-91a8-96c18b592b50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_ad27d081-0e1d-42f4-b5c4-463a6295a413" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_5f8f7e88-de08-44a7-91a8-96c18b592b50" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_ad27d081-0e1d-42f4-b5c4-463a6295a413" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputCapRateMember_a59c5b52-688f-4a6d-b404-d3045f407ec3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputCapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_5f8f7e88-de08-44a7-91a8-96c18b592b50" xlink:to="loc_us-gaap_MeasurementInputCapRateMember_a59c5b52-688f-4a6d-b404-d3045f407ec3" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetLoanPortfolioDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetLoanPortfolioDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetLoanPortfolioDetails" xlink:type="extended" id="i2986fa3b49d34fc28efbbc5719bbcf5d_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetLoanPortfolioDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_09d347ca-908b-4063-86a9-b6f8496a7466" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_036080a8-6e6a-49e0-bed9-d12ca61a129f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_09d347ca-908b-4063-86a9-b6f8496a7466" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_036080a8-6e6a-49e0-bed9-d12ca61a129f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d94ecee4-80ca-4240-96a4-5bf6fc34780b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_09d347ca-908b-4063-86a9-b6f8496a7466" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d94ecee4-80ca-4240-96a4-5bf6fc34780b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c2bbfc7a-fba4-486b-a513-da3fb996f1f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d94ecee4-80ca-4240-96a4-5bf6fc34780b" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c2bbfc7a-fba4-486b-a513-da3fb996f1f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c2bbfc7a-fba4-486b-a513-da3fb996f1f3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c2bbfc7a-fba4-486b-a513-da3fb996f1f3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c2bbfc7a-fba4-486b-a513-da3fb996f1f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d58b9ad7-6136-49df-8728-455d38e341ad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c2bbfc7a-fba4-486b-a513-da3fb996f1f3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d58b9ad7-6136-49df-8728-455d38e341ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_7330871f-c184-441e-8a86-4f8bbf84baaa" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d58b9ad7-6136-49df-8728-455d38e341ad" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_7330871f-c184-441e-8a86-4f8bbf84baaa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_efbf7908-5e2c-47dd-bb13-ff501ac18910" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_7330871f-c184-441e-8a86-4f8bbf84baaa" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_efbf7908-5e2c-47dd-bb13-ff501ac18910" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_c779f1d9-43c7-4a3c-8f64-c18cd517d79b" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_7330871f-c184-441e-8a86-4f8bbf84baaa" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_c779f1d9-43c7-4a3c-8f64-c18cd517d79b" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAdditionalInformationDetails" xlink:type="extended" id="i40b22381560d4915b7f43503a2e6edbb_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_0dff8220-611f-4026-8c4d-cafaec6d3612" xlink:href="ari-20230331.xsd#ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_0dff8220-611f-4026-8c4d-cafaec6d3612" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_e06818cc-8a3f-404e-9cce-966a45cf3c22" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_InterestReceivable_e06818cc-8a3f-404e-9cce-966a45cf3c22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableGeneralAllowanceCreditLossExpenseReversal_8e49cacf-731d-4d07-9bd9-933382817ded" xlink:href="ari-20230331.xsd#ari_FinancingReceivableGeneralAllowanceCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableGeneralAllowanceCreditLossExpenseReversal_8e49cacf-731d-4d07-9bd9-933382817ded" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableCostRecoveryNet_1a0725d2-ffaf-4d5f-b374-205e36faf383" xlink:href="ari-20230331.xsd#ari_FinancingReceivableCostRecoveryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableCostRecoveryNet_1a0725d2-ffaf-4d5f-b374-205e36faf383" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableCostRecoveryInterestReceived_23f935b3-1610-4a09-b9d5-2189458cfd5d" xlink:href="ari-20230331.xsd#ari_FinancingReceivableCostRecoveryInterestReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableCostRecoveryInterestReceived_23f935b3-1610-4a09-b9d5-2189458cfd5d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableBasisSpreadOnVariableRate_0d0fe465-eb84-4fab-b901-399b25e8a23b" xlink:href="ari-20230331.xsd#ari_FinancingReceivableBasisSpreadOnVariableRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableBasisSpreadOnVariableRate_0d0fe465-eb84-4fab-b901-399b25e8a23b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfLoans_088c4268-38ed-4cec-830d-9590e2032e64" xlink:href="ari-20230331.xsd#ari_NumberOfLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_NumberOfLoans_088c4268-38ed-4cec-830d-9590e2032e64" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_e290b9f2-5850-4c2b-a87d-2b44a12544a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_e290b9f2-5850-4c2b-a87d-2b44a12544a8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal_0a95bb22-083a-4ea6-b9eb-ad5d9bde8dea" xlink:href="ari-20230331.xsd#ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal_0a95bb22-083a-4ea6-b9eb-ad5d9bde8dea" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterestCurrent_0d5aecd5-ca68-4738-8c4e-0b3efd342186" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterestCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterestCurrent_0d5aecd5-ca68-4738-8c4e-0b3efd342186" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentNumberOfExtensionsAvailable_11479dac-0eb8-4ad3-bb51-5b00701a3d46" xlink:href="ari-20230331.xsd#ari_DebtInstrumentNumberOfExtensionsAvailable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_DebtInstrumentNumberOfExtensionsAvailable_11479dac-0eb8-4ad3-bb51-5b00701a3d46" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_2961c69d-62ae-4766-ad82-040791b76d2a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_2961c69d-62ae-4766-ad82-040791b76d2a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_082ffb59-66ae-4cc9-a2d5-67db728c907e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_082ffb59-66ae-4cc9-a2d5-67db728c907e" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_13394ed2-8d6f-4756-8147-06472428433f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_13394ed2-8d6f-4756-8147-06472428433f" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_b5fe822d-4564-40fc-95fd-e4d00b460caa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_b5fe822d-4564-40fc-95fd-e4d00b460caa" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff_bee8eb4b-77e3-43d9-9ff4-6f63900b85df" xlink:href="ari-20230331.xsd#ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff_bee8eb4b-77e3-43d9-9ff4-6f63900b85df" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaidInKindInterest_0a90a133-dc4c-4708-b379-d5bc6049ee27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaidInKindInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_PaidInKindInterest_0a90a133-dc4c-4708-b379-d5bc6049ee27" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromPrepaymentPenalties_eb6e3ee7-e8da-4c91-aa60-3c24a3a39bc5" xlink:href="ari-20230331.xsd#ari_ProceedsFromPrepaymentPenalties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_ProceedsFromPrepaymentPenalties_eb6e3ee7-e8da-4c91-aa60-3c24a3a39bc5" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfLoansReceivable_9a9f15b5-1b4c-4c11-9183-9b9c14e77194" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromCollectionOfLoansReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_ProceedsFromCollectionOfLoansReceivable_9a9f15b5-1b4c-4c11-9183-9b9c14e77194" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromInterestReceived_41db8b39-a620-4891-89f8-36b605eedcff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromInterestReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_ProceedsFromInterestReceived_41db8b39-a620-4891-89f8-36b605eedcff" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_da027dfe-1e8a-49dc-8995-b64462ceeaff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_da027dfe-1e8a-49dc-8995-b64462ceeaff" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GuarantorObligationsMaximumExposureTerm_e38ab820-c0df-494c-bb58-1179e1643b0f" xlink:href="ari-20230331.xsd#ari_GuarantorObligationsMaximumExposureTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_GuarantorObligationsMaximumExposureTerm_e38ab820-c0df-494c-bb58-1179e1643b0f" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentAmortizedCostBasis_c21102dd-92c1-4f42-a19f-43324e7469bc" xlink:href="ari-20230331.xsd#ari_DebtInstrumentAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_DebtInstrumentAmortizedCostBasis_c21102dd-92c1-4f42-a19f-43324e7469bc" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfCommercialMortgageLoans_0162fee2-9037-401c-ae0f-50558e5fb043" xlink:href="ari-20230331.xsd#ari_NumberOfCommercialMortgageLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_NumberOfCommercialMortgageLoans_0162fee2-9037-401c-ae0f-50558e5fb043" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet_4f40fe36-7811-47b1-a761-9aae1601f24b" xlink:href="ari-20230331.xsd#ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet_4f40fe36-7811-47b1-a761-9aae1601f24b" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_05c21f06-45d9-428c-a7bc-8ea56fea1d5c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_05c21f06-45d9-428c-a7bc-8ea56fea1d5c" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGainLossOnSalesNet_ba1ba142-87ad-4f51-a04c-2a10069e44f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansAndLeasesReceivableGainLossOnSalesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGainLossOnSalesNet_ba1ba142-87ad-4f51-a04c-2a10069e44f7" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_494daa13-b7fc-4221-85d1-f77cc1acc756" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_ee9ec775-63e9-4ab0-935e-eae0bae62119" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_ee9ec775-63e9-4ab0-935e-eae0bae62119" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_ee9ec775-63e9-4ab0-935e-eae0bae62119_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_ee9ec775-63e9-4ab0-935e-eae0bae62119" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_ee9ec775-63e9-4ab0-935e-eae0bae62119_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_ee9ec775-63e9-4ab0-935e-eae0bae62119" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FloatingRateLoanMember_8230578a-d518-42c3-b816-518a77b6cfcd" xlink:href="ari-20230331.xsd#ari_FloatingRateLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_FloatingRateLoanMember_8230578a-d518-42c3-b816-518a77b6cfcd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeniorMezzanineLoansMember_296c8c01-5039-4881-974b-6d695344fbb6" xlink:href="ari-20230331.xsd#ari_SeniorMezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_SeniorMezzanineLoansMember_296c8c01-5039-4881-974b-6d695344fbb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JuniorMezzanineALoanMember_cc87cd9b-3a3d-4991-9f8c-880286777010" xlink:href="ari-20230331.xsd#ari_JuniorMezzanineALoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_JuniorMezzanineALoanMember_cc87cd9b-3a3d-4991-9f8c-880286777010" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JuniorMezzanineBLoanMember_9eb83134-d980-45b5-9c17-732ffd8ce9ea" xlink:href="ari-20230331.xsd#ari_JuniorMezzanineBLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_JuniorMezzanineBLoanMember_9eb83134-d980-45b5-9c17-732ffd8ce9ea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeniorAndJuniorMezzanineLoansMember_4aecf204-8cae-4213-bfba-3c898b97f14a" xlink:href="ari-20230331.xsd#ari_SeniorAndJuniorMezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_SeniorAndJuniorMezzanineLoansMember_4aecf204-8cae-4213-bfba-3c898b97f14a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnfundedLoanCommitmentMember_0e266b3d-41dd-4d29-97f0-f2e307fa2eb2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnfundedLoanCommitmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_us-gaap_UnfundedLoanCommitmentMember_0e266b3d-41dd-4d29-97f0-f2e307fa2eb2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MezzanineLoansMember_c23ad9b8-c8ca-483b-90e1-b995371789bf" xlink:href="ari-20230331.xsd#ari_MezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_ari_MezzanineLoansMember_c23ad9b8-c8ca-483b-90e1-b995371789bf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorLoansMember_72a0f874-ba2f-4fd8-8f60-f0432aa692b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_10442a12-182a-499b-adda-7f7de2a5ec5f" xlink:to="loc_us-gaap_SeniorLoansMember_72a0f874-ba2f-4fd8-8f60-f0432aa692b8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_ac7ada60-a68b-4f11-b1af-6e3a179a2f46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_f4d8ad3e-caa8-42d4-89f6-15a76f305dd8" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_ac7ada60-a68b-4f11-b1af-6e3a179a2f46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_e3a03e4f-b093-4580-9187-f4cab12f53eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_ac7ada60-a68b-4f11-b1af-6e3a179a2f46" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_e3a03e4f-b093-4580-9187-f4cab12f53eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_539133d4-688a-4e70-a0c0-c978809c52f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_us-gaap_VariableRateAxis_539133d4-688a-4e70-a0c0-c978809c52f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_539133d4-688a-4e70-a0c0-c978809c52f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_539133d4-688a-4e70-a0c0-c978809c52f7" xlink:to="loc_us-gaap_VariableRateDomain_539133d4-688a-4e70-a0c0-c978809c52f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_6e76af59-e817-4bef-8185-f7b932a3ad1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_539133d4-688a-4e70-a0c0-c978809c52f7" xlink:to="loc_us-gaap_VariableRateDomain_6e76af59-e817-4bef-8185-f7b932a3ad1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_baef9def-e1db-479e-b993-7a67b1f623fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6e76af59-e817-4bef-8185-f7b932a3ad1f" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_baef9def-e1db-479e-b993-7a67b1f623fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SecuredOvernightFinancingRateMember_99bed364-0896-4a00-9ec7-ee80f245c993" xlink:href="ari-20230331.xsd#ari_SecuredOvernightFinancingRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6e76af59-e817-4bef-8185-f7b932a3ad1f" xlink:to="loc_ari_SecuredOvernightFinancingRateMember_99bed364-0896-4a00-9ec7-ee80f245c993" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_f9265170-48eb-4165-841a-6c8e431fb390" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_f9265170-48eb-4165-841a-6c8e431fb390" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_f9265170-48eb-4165-841a-6c8e431fb390_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_f9265170-48eb-4165-841a-6c8e431fb390" xlink:to="loc_us-gaap_RelatedPartyDomain_f9265170-48eb-4165-841a-6c8e431fb390_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_6ff8fa00-49b2-44fd-bc03-53cf16e41560" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_f9265170-48eb-4165-841a-6c8e431fb390" xlink:to="loc_us-gaap_RelatedPartyDomain_6ff8fa00-49b2-44fd-bc03-53cf16e41560" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AffiliatedEntityMember_099808f4-65b5-4f17-a2c6-f85bf9490ab7" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_AffiliatedEntityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_6ff8fa00-49b2-44fd-bc03-53cf16e41560" xlink:to="loc_srt_AffiliatedEntityMember_099808f4-65b5-4f17-a2c6-f85bf9490ab7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_e891db3e-c1ac-4e76-bc94-3bc5e38b6819" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_e891db3e-c1ac-4e76-bc94-3bc5e38b6819" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e891db3e-c1ac-4e76-bc94-3bc5e38b6819_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_e891db3e-c1ac-4e76-bc94-3bc5e38b6819" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_e891db3e-c1ac-4e76-bc94-3bc5e38b6819_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7d25898b-6691-4912-8343-e52bb7a00f27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_e891db3e-c1ac-4e76-bc94-3bc5e38b6819" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7d25898b-6691-4912-8343-e52bb7a00f27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_108327ff-72f0-4eb6-8fb0-eabc5000102e" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7d25898b-6691-4912-8343-e52bb7a00f27" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_108327ff-72f0-4eb6-8fb0-eabc5000102e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_234f4069-2dc0-4dc1-8174-42289852c814" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7d25898b-6691-4912-8343-e52bb7a00f27" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_234f4069-2dc0-4dc1-8174-42289852c814" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_18fbfe74-3048-4ca5-b22e-696c912b15ac" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_18fbfe74-3048-4ca5-b22e-696c912b15ac" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_18fbfe74-3048-4ca5-b22e-696c912b15ac_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_18fbfe74-3048-4ca5-b22e-696c912b15ac" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_18fbfe74-3048-4ca5-b22e-696c912b15ac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_5d575668-9d56-4741-903f-3e44b076ff81" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_18fbfe74-3048-4ca5-b22e-696c912b15ac" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_5d575668-9d56-4741-903f-3e44b076ff81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MixedUsePropertyLondonMember_ed7eb033-f52b-453a-8ade-52c2fb90e9e6" xlink:href="ari-20230331.xsd#ari_MixedUsePropertyLondonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_5d575668-9d56-4741-903f-3e44b076ff81" xlink:to="loc_ari_MixedUsePropertyLondonMember_ed7eb033-f52b-453a-8ade-52c2fb90e9e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelThroughADiedInLieuForeclosureMember_5ead7522-8cee-4dec-8aab-e33c8637b96b" xlink:href="ari-20230331.xsd#ari_HotelThroughADiedInLieuForeclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_5d575668-9d56-4741-903f-3e44b076ff81" xlink:to="loc_ari_HotelThroughADiedInLieuForeclosureMember_5ead7522-8cee-4dec-8aab-e33c8637b96b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_VariousPropertiesInEuropeMember_33f17597-311b-46a2-b6f6-960ae2f65056" xlink:href="ari-20230331.xsd#ari_VariousPropertiesInEuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_5d575668-9d56-4741-903f-3e44b076ff81" xlink:to="loc_ari_VariousPropertiesInEuropeMember_33f17597-311b-46a2-b6f6-960ae2f65056" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_1669928b-d856-4476-b2dc-da1d341c9782" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_5038b0ef-d123-493c-8b22-6cdca150f5e4" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_1669928b-d856-4476-b2dc-da1d341c9782" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_1669928b-d856-4476-b2dc-da1d341c9782_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_1669928b-d856-4476-b2dc-da1d341c9782" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_1669928b-d856-4476-b2dc-da1d341c9782_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_c2ffaeb9-b0dd-44a3-9786-f3516d2b98f3" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_1669928b-d856-4476-b2dc-da1d341c9782" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_c2ffaeb9-b0dd-44a3-9786-f3516d2b98f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OfficeLondonUKMember_bb141491-7bec-447a-8991-9247366d8698" xlink:href="ari-20230331.xsd#ari_OfficeLondonUKMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_c2ffaeb9-b0dd-44a3-9786-f3516d2b98f3" xlink:to="loc_ari_OfficeLondonUKMember_bb141491-7bec-447a-8991-9247366d8698" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetActivityRelatingtoLoanInvestmentPortfolioDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetActivityRelatingtoLoanInvestmentPortfolioDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetActivityRelatingtoLoanInvestmentPortfolioDetails" xlink:type="extended" id="i065272542f6145aba7c778c01c019583_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetActivityRelatingtoLoanInvestmentPortfolioDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:href="ari-20230331.xsd#ari_LoanandLeasesReceivableGrossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_1d20cdb2-0059-4a41-82ec-f28e763290b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_1d20cdb2-0059-4a41-82ec-f28e763290b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_1242d167-a326-4335-bd94-3a16c536860d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_1242d167-a326-4335-bd94-3a16c536860d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseLoansHeldforsaleAddonFunding_081ad1a0-f448-424d-b2fd-0decbb827ec5" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseLoansHeldforsaleAddonFunding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_ari_PaymentstoPurchaseLoansHeldforsaleAddonFunding_081ad1a0-f448-424d-b2fd-0decbb827ec5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfMortgageLoansHeldForSale_bafb0697-172c-437c-b39d-316a20ab45b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromCollectionOfMortgageLoansHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_us-gaap_ProceedsFromCollectionOfMortgageLoansHeldForSale_bafb0697-172c-437c-b39d-316a20ab45b7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableGrossForeignCurrencyGainLoss_7a8a745b-d62d-451a-adf4-9dbc862d6412" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableGrossForeignCurrencyGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_ari_LoansandLeasesReceivableGrossForeignCurrencyGainLoss_7a8a745b-d62d-451a-adf4-9dbc862d6412" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableGainLossOnSalesGross_81f0b0e9-79b9-47e8-aabf-abdd3efe7115" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableGainLossOnSalesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_ari_LoansAndLeasesReceivableGainLossOnSalesGross_81f0b0e9-79b9-47e8-aabf-abdd3efe7115" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleGross_ec612999-503b-4bda-8b11-426906bf3084" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleGross_ec612999-503b-4bda-8b11-426906bf3084" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableGrossPaidinKindInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization_4e680427-7560-4001-b9be-149da575b3f2" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableGrossPaidinKindInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableGrossRollForward_14b0002c-0d86-4c09-94d7-f46aa6cafcea" xlink:to="loc_ari_LoansandLeasesReceivableGrossPaidinKindInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization_4e680427-7560-4001-b9be-149da575b3f2" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_1d6d9955-a7f4-471e-9d87-6623832f0765" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:href="ari-20230331.xsd#ari_LoanandLeasesReceivableDeferredincomeRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableDeferredIncome_c85572ea-c446-47ef-b020-5d365d6d6b41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableDeferredIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_us-gaap_FinancingReceivableDeferredIncome_c85572ea-c446-47ef-b020-5d365d6d6b41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableDeferredIncomeUnrealizedGainOnForeignCurrencyTranslation_3d5bdfa4-8869-4453-b487-14b06e1a5ead" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableDeferredIncomeUnrealizedGainOnForeignCurrencyTranslation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_ari_LoansandLeasesReceivableDeferredIncomeUnrealizedGainOnForeignCurrencyTranslation_3d5bdfa4-8869-4453-b487-14b06e1a5ead" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableDeferredIncomeGainLossOnSale_d9fd42b3-1aca-4e65-b6da-12e9448d4c1c" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableDeferredIncomeGainLossOnSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_ari_LoansAndLeasesReceivableDeferredIncomeGainLossOnSale_d9fd42b3-1aca-4e65-b6da-12e9448d4c1c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleDeferredFeesAndOtherItems_ba72e8b1-3ce0-40ca-b425-f57f996becb0" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleDeferredFeesAndOtherItems"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleDeferredFeesAndOtherItems_ba72e8b1-3ce0-40ca-b425-f57f996becb0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableDeferredIncomePeriodIncrease_60b0a955-585d-43c8-a7d4-beabeba8b65b" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableDeferredIncomePeriodIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_ari_LoansandLeasesReceivableDeferredIncomePeriodIncrease_60b0a955-585d-43c8-a7d4-beabeba8b65b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableDeferredIncomeAmortization_5083379e-bceb-45a7-aa32-4389dd6b6e37" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableDeferredIncomeAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableDeferredincomeRollForward_f92cafb2-026a-4604-93bb-daf2c0cbd934" xlink:to="loc_ari_LoansandLeasesReceivableDeferredIncomeAmortization_5083379e-bceb-45a7-aa32-4389dd6b6e37" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableDeferredIncome_1c5548e6-6e92-4d3f-aa5c-fd1fccfbc9b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableDeferredIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_c8d80298-4e61-4051-a944-6897b2a276da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_c8d80298-4e61-4051-a944-6897b2a276da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d6242697-2701-4106-adcc-6473f92de633" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_c8d80298-4e61-4051-a944-6897b2a276da" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d6242697-2701-4106-adcc-6473f92de633" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_6f18a06c-513e-46dc-a2a9-e31be84aef36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:href="ari-20230331.xsd#ari_LoanandLeasesReceivableNetRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_d535b7a8-f022-4db2-8b77-d34cdbfd0c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_d535b7a8-f022-4db2-8b77-d34cdbfd0c1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_5e919c73-8a67-4bcd-bc4c-31bfaa54fcc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseLoansHeldforsaleAddonFunding_8b00b9e4-5796-42c7-b050-c5cca20bf481" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseLoansHeldforsaleAddonFunding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfMortgageLoansHeldForSale_dcfbfc91-a9e1-4402-a9fc-a8a6fd111cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromCollectionOfMortgageLoansHeldForSale"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableNetForeignCurrencyGainLoss_bd093671-b690-42b9-95ee-45a7c3c7ae89" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableNetForeignCurrencyGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_ari_LoansandLeasesReceivableNetForeignCurrencyGainLoss_bd093671-b690-42b9-95ee-45a7c3c7ae89" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_87955be8-f946-414a-8d3a-f98ff05d6d62" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_87955be8-f946-414a-8d3a-f98ff05d6d62" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleNet_3ce28831-5137-49c6-8a7f-d2ea9252caf2" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_ari_RealEstateOwnedTransferToRealEstateOwnedHeldForSaleNet_3ce28831-5137-49c6-8a7f-d2ea9252caf2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableDeferredIncomeUnamortizedLoanCommitmentandOriginationFeesandUnamortizedDiscountsorPremiumsPeriodIncrease_82d1073e-6ac8-44f8-b49d-296020bc720f" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableDeferredIncomeUnamortizedLoanCommitmentandOriginationFeesandUnamortizedDiscountsorPremiumsPeriodIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_ari_LoansandLeasesReceivableDeferredIncomeUnamortizedLoanCommitmentandOriginationFeesandUnamortizedDiscountsorPremiumsPeriodIncrease_82d1073e-6ac8-44f8-b49d-296020bc720f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableNetDeferredIncomePIKInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization_7d5b87a2-2347-4c47-8651-144aff58a829" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableNetDeferredIncomePIKInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_LoanandLeasesReceivableNetRollForward_2e163044-9ff4-497d-b843-21763664b843" xlink:to="loc_ari_LoansandLeasesReceivableNetDeferredIncomePIKInterestLoanCommitmentandOriginationFeesandDiscountsorPremiumsAmortization_7d5b87a2-2347-4c47-8651-144aff58a829" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_08f986e7-7819-42a5-8501-43a7e282fcc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fd06b091-5084-49a8-95b4-bea94698c3e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fd06b091-5084-49a8-95b4-bea94698c3e6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_4198598c-c007-4ded-b944-ee69366e333a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_4198598c-c007-4ded-b944-ee69366e333a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_07b8d5d4-ee80-4133-b1fe-39343e2a50eb" xlink:href="ari-20230331.xsd#ari_OffBalanceSheetCreditLossLiabilityAmountExcluded"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_07b8d5d4-ee80-4133-b1fe-39343e2a50eb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_120f961a-4828-4d16-b0ad-cf714d38d9d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_e108e28f-5917-40b2-988b-dc7b79ae425b" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_120f961a-4828-4d16-b0ad-cf714d38d9d4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_120f961a-4828-4d16-b0ad-cf714d38d9d4" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9bf9f46f-538d-4ec2-82db-23cca5f0a04c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8a39ac57-ac80-4c87-9b27-7b5eddbb32d6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9bf9f46f-538d-4ec2-82db-23cca5f0a04c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_c00f6695-4343-4b8a-9490-b95907aeb4db" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9bf9f46f-538d-4ec2-82db-23cca5f0a04c" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_c00f6695-4343-4b8a-9490-b95907aeb4db" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetStatisticsforLoanPortfolioDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetStatisticsforLoanPortfolioDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetStatisticsforLoanPortfolioDetails" xlink:type="extended" id="i152ae546b56142fea2f4316af68d86fc_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetStatisticsforLoanPortfolioDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNumberOfContracts_d3a45cc7-d48e-48cd-9001-791db344e6eb" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNumberOfContracts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_LoansAndLeasesReceivableNumberOfContracts_d3a45cc7-d48e-48cd-9001-791db344e6eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b39265e0-154d-4936-bbe5-9bb5b3657e78" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b39265e0-154d-4936-bbe5-9bb5b3657e78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_1f536a8c-a99f-412d-8027-aafeffa8ea55" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_1f536a8c-a99f-412d-8027-aafeffa8ea55" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount_4d523c1c-9e1c-48d4-8534-aac372cce118" xlink:href="ari-20230331.xsd#ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount_4d523c1c-9e1c-48d4-8534-aac372cce118" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableWeightedAverageInterestRate_26f87e3d-9bb4-4f4a-94f7-b3d9c84b638b" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_LoansAndLeasesReceivableWeightedAverageInterestRate_26f87e3d-9bb4-4f4a-94f7-b3d9c84b638b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansandLeasesReceivableWeightedAverageRemainingTerm_6fe52310-4f07-496c-b04c-a04ee51426cb" xlink:href="ari-20230331.xsd#ari_LoansandLeasesReceivableWeightedAverageRemainingTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_LoansandLeasesReceivableWeightedAverageRemainingTerm_6fe52310-4f07-496c-b04c-a04ee51426cb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableWeightedAverageExpectedMaturity_290cc8a5-b0b9-4ccc-ae6c-d920aedb4952" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableWeightedAverageExpectedMaturity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_LoansAndLeasesReceivableWeightedAverageExpectedMaturity_290cc8a5-b0b9-4ccc-ae6c-d920aedb4952" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableNonaccrualOrCostRecoveryLoansWeightedAverageInterestRate_b3ed95d7-dd39-411a-b627-7a8bc0277fff" xlink:href="ari-20230331.xsd#ari_FinancingReceivableNonaccrualOrCostRecoveryLoansWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_ari_FinancingReceivableNonaccrualOrCostRecoveryLoansWeightedAverageInterestRate_b3ed95d7-dd39-411a-b627-7a8bc0277fff" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3f8afbd5-a55c-4859-8644-384f9d78135d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_aab2c847-126d-49ae-a3f5-dc8ff1dab5b7" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3f8afbd5-a55c-4859-8644-384f9d78135d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d61177bb-92b3-4588-9cc4-bc48a6dc0765" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3f8afbd5-a55c-4859-8644-384f9d78135d" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d61177bb-92b3-4588-9cc4-bc48a6dc0765" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d61177bb-92b3-4588-9cc4-bc48a6dc0765_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d61177bb-92b3-4588-9cc4-bc48a6dc0765" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d61177bb-92b3-4588-9cc4-bc48a6dc0765_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_181c133a-4861-416d-9f73-5f10cb161dfb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_d61177bb-92b3-4588-9cc4-bc48a6dc0765" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_181c133a-4861-416d-9f73-5f10cb161dfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateLoanMember_49b3e66e-f01e-42ee-9657-d7556b02763e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_181c133a-4861-416d-9f73-5f10cb161dfb" xlink:to="loc_us-gaap_RealEstateLoanMember_49b3e66e-f01e-42ee-9657-d7556b02763e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails" xlink:type="extended" id="i3215d1e772d2407eb41575c8c352e571_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b5622d70-720a-4703-a618-341574c2c5a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b5622d70-720a-4703-a618-341574c2c5a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_f2bc431f-1e30-462e-95c1-392007c4d8a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_f2bc431f-1e30-462e-95c1-392007c4d8a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_5b66f26b-8593-4ceb-ba31-d8debaf2b037" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_5b66f26b-8593-4ceb-ba31-d8debaf2b037" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_078e21c5-977a-4b50-970f-b2d6792e8ca3" xlink:href="ari-20230331.xsd#ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_078e21c5-977a-4b50-970f-b2d6792e8ca3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PercentageOfPortfolio_cf231936-4b3c-416b-be9e-46c79010a9a0" xlink:href="ari-20230331.xsd#ari_PercentageOfPortfolio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_ari_PercentageOfPortfolio_cf231936-4b3c-416b-be9e-46c79010a9a0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_fbc43ad4-cc06-4686-b0db-1dbc61c1643a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_fbc43ad4-cc06-4686-b0db-1dbc61c1643a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_97d60f5e-7cd1-4b24-84a1-74c9a9b01ddb" xlink:href="ari-20230331.xsd#ari_OffBalanceSheetCreditLossLiabilityAmountExcluded"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_97d60f5e-7cd1-4b24-84a1-74c9a9b01ddb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6b33e3b3-d195-470b-83f8-42fd2ad0f0eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_401a9458-b6bf-4938-a11b-50e555ba6d8a" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6b33e3b3-d195-470b-83f8-42fd2ad0f0eb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6b33e3b3-d195-470b-83f8-42fd2ad0f0eb" xlink:to="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_6ccdc94f-ce85-4ab1-a139-ba7acb0ceeec" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_HotelMember_a5a0cd93-adc7-476f-b991-52e2e4efe43b" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_HotelMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_srt_HotelMember_a5a0cd93-adc7-476f-b991-52e2e4efe43b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OfficeMember_e641f7f3-4526-4ad3-b8e1-f54f4637c3c1" xlink:href="ari-20230331.xsd#ari_OfficeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_OfficeMember_e641f7f3-4526-4ad3-b8e1-f54f4637c3c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ResidentialMember_c577b395-7c0d-4759-bbe2-9a23a0137ca2" xlink:href="ari-20230331.xsd#ari_ResidentialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_ResidentialMember_c577b395-7c0d-4759-bbe2-9a23a0137ca2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RetailSiteMember_ed9bbdf4-91d2-40a9-aeab-5928f5b367e4" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RetailSiteMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_srt_RetailSiteMember_ed9bbdf4-91d2-40a9-aeab-5928f5b367e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HealthCareMember_8f1c455f-e1cf-43c2-9b8d-25d0c8ca84e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HealthCareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_us-gaap_HealthCareMember_8f1c455f-e1cf-43c2-9b8d-25d0c8ca84e4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MixedUseMember_e9c6b633-2866-4233-b9a4-7040ccf4b838" xlink:href="ari-20230331.xsd#ari_MixedUseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_MixedUseMember_e9c6b633-2866-4233-b9a4-7040ccf4b838" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_IndustrialPropertyMember_aeba7e08-3ba3-4614-86ca-ea9d11d5bfd9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_IndustrialPropertyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_srt_IndustrialPropertyMember_aeba7e08-3ba3-4614-86ca-ea9d11d5bfd9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OtherPropertyMember_71469adf-4b8f-4a2b-979f-8c24a747d576" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OtherPropertyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_srt_OtherPropertyMember_71469adf-4b8f-4a2b-979f-8c24a747d576" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ParkingGarageMember_e0d5312c-0a4e-462c-a69e-92b214bd9843" xlink:href="ari-20230331.xsd#ari_ParkingGarageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_ParkingGarageMember_e0d5312c-0a4e-462c-a69e-92b214bd9843" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_UrbanPredevelopmentMember_f992626f-0834-4b37-85da-0655a11a1f96" xlink:href="ari-20230331.xsd#ari_UrbanPredevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_UrbanPredevelopmentMember_f992626f-0834-4b37-85da-0655a11a1f96" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CaravanParkMember_b9a8f31d-139e-467e-a0a5-74101d9c0b53" xlink:href="ari-20230331.xsd#ari_CaravanParkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_a028ac7e-6709-44e6-b308-4afedf128090" xlink:to="loc_ari_CaravanParkMember_b9a8f31d-139e-467e-a0a5-74101d9c0b53" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_cd6fbe36-5bd1-40b9-98be-67cde65be4fc" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6b33e3b3-d195-470b-83f8-42fd2ad0f0eb" xlink:to="loc_srt_StatementGeographicalAxis_cd6fbe36-5bd1-40b9-98be-67cde65be4fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_cd6fbe36-5bd1-40b9-98be-67cde65be4fc_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_cd6fbe36-5bd1-40b9-98be-67cde65be4fc" xlink:to="loc_srt_SegmentGeographicalDomain_cd6fbe36-5bd1-40b9-98be-67cde65be4fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_cd6fbe36-5bd1-40b9-98be-67cde65be4fc" xlink:to="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_a15d3244-e4ab-47ca-963f-f05aef505f20" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_country_GB_a15d3244-e4ab-47ca-963f-f05aef505f20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NewYorkCityMember_9e037430-279e-4feb-9373-f7b5cdf2064c" xlink:href="ari-20230331.xsd#ari_NewYorkCityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_NewYorkCityMember_9e037430-279e-4feb-9373-f7b5cdf2064c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:href="ari-20230331.xsd#ari_OtherEuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_DE_484efcb8-55ca-437a-92f8-eb4aeab10778" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_DE"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:to="loc_country_DE_484efcb8-55ca-437a-92f8-eb4aeab10778" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_IT_064a03de-c70b-43e0-bae8-56204fbd9a66" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_IT"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:to="loc_country_IT_064a03de-c70b-43e0-bae8-56204fbd9a66" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_ES_3227c476-3e9c-4e1a-8a32-83969a3915c9" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_ES"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:to="loc_country_ES_3227c476-3e9c-4e1a-8a32-83969a3915c9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_SE_75971db8-4eff-4e7e-bf1e-1f8e44f1eaa3" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_SE"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:to="loc_country_SE_75971db8-4eff-4e7e-bf1e-1f8e44f1eaa3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_IE_ca1884fe-f7da-48f4-801a-defd47d91007" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_IE"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherEuropeMember_2307ade1-0532-4141-856e-bb92609271a3" xlink:to="loc_country_IE_ca1884fe-f7da-48f4-801a-defd47d91007" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MidwestMember_4ed7919d-8538-4c6a-92e5-505766814de4" xlink:href="ari-20230331.xsd#ari_MidwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_MidwestMember_4ed7919d-8538-4c6a-92e5-505766814de4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SoutheastMember_6a0bcf23-64f1-46a5-bd4d-486a857d53ca" xlink:href="ari-20230331.xsd#ari_SoutheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_SoutheastMember_6a0bcf23-64f1-46a5-bd4d-486a857d53ca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_WestMember_e55bb95b-74c8-4755-bd00-10b3daae3872" xlink:href="ari-20230331.xsd#ari_WestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_WestMember_e55bb95b-74c8-4755-bd00-10b3daae3872" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OtherGeographicLocationsMember_e1a3b9bd-38a0-4c3c-9904-72851024c218" xlink:href="ari-20230331.xsd#ari_OtherGeographicLocationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4f45b99b-4a99-4a67-b409-9c8c077681c9" xlink:to="loc_ari_OtherGeographicLocationsMember_e1a3b9bd-38a0-4c3c-9904-72851024c218" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NortheastMember_3c04d4a8-b8ad-47a0-97ff-bf541879aa24" xlink:href="ari-20230331.xsd#ari_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherGeographicLocationsMember_e1a3b9bd-38a0-4c3c-9904-72851024c218" xlink:to="loc_ari_NortheastMember_3c04d4a8-b8ad-47a0-97ff-bf541879aa24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SouthwestMember_591fc27e-e019-4199-a73d-6ab1933e449e" xlink:href="ari-20230331.xsd#ari_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherGeographicLocationsMember_e1a3b9bd-38a0-4c3c-9904-72851024c218" xlink:to="loc_ari_SouthwestMember_591fc27e-e019-4199-a73d-6ab1933e449e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MidAtlanticMember_176d0437-8189-43e0-a444-727a247c535b" xlink:href="ari-20230331.xsd#ari_MidAtlanticMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_OtherGeographicLocationsMember_e1a3b9bd-38a0-4c3c-9904-72851024c218" xlink:to="loc_ari_MidAtlanticMember_176d0437-8189-43e0-a444-727a247c535b" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails" xlink:type="extended" id="i53280be6cf0f499ba2e6d773a1799ea8_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNumberOfContracts_9aa2a9b4-c6a5-4b62-84be-2755dc3e8d67" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNumberOfContracts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_ari_LoansAndLeasesReceivableNumberOfContracts_9aa2a9b4-c6a5-4b62-84be-2755dc3e8d67" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_23d42dba-9d7e-493a-b63a-e3e7b1ac23ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_23d42dba-9d7e-493a-b63a-e3e7b1ac23ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_edf3c391-8461-4e1f-bc65-a62c7495fea9" xlink:href="ari-20230331.xsd#ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerPercentageOfPortfolio_edf3c391-8461-4e1f-bc65-a62c7495fea9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_edb0c48d-db8f-4a99-9f11-2bd86d753849" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_edb0c48d-db8f-4a99-9f11-2bd86d753849" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_04335c23-004d-4dcb-b57b-7707bc10533c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_04335c23-004d-4dcb-b57b-7707bc10533c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_2f7aab35-f6ef-4260-b42b-7e18908ddd29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_2f7aab35-f6ef-4260-b42b-7e18908ddd29" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_cc39a17e-af76-46f6-80a4-34d14e4ab67c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_cc39a17e-af76-46f6-80a4-34d14e4ab67c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_5c4ad042-32c7-448a-bef1-72c77bea6d20" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_5c4ad042-32c7-448a-bef1-72c77bea6d20" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_fce84474-7586-44a2-bc39-bb1edb14918f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_fce84474-7586-44a2-bc39-bb1edb14918f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_6cd7c022-c08c-43b5-9170-21b16681af06" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_6cd7c022-c08c-43b5-9170-21b16681af06" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_4cbc4e3b-67ab-4162-9bca-c2bdbe4f2ad4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_4cbc4e3b-67ab-4162-9bca-c2bdbe4f2ad4" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableWeightedAverageRiskRating_f94b8e67-db79-422e-854e-fe07940a864c" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableWeightedAverageRiskRating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_ari_LoansAndLeasesReceivableWeightedAverageRiskRating_f94b8e67-db79-422e-854e-fe07940a864c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_272c1a28-c9f7-48bf-ae26-60875a6246e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_272c1a28-c9f7-48bf-ae26-60875a6246e8" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_25c92387-37f1-47a3-a707-b8e365af05d4" xlink:href="ari-20230331.xsd#ari_OffBalanceSheetCreditLossLiabilityAmountExcluded"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_ari_OffBalanceSheetCreditLossLiabilityAmountExcluded_25c92387-37f1-47a3-a707-b8e365af05d4" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_860656ff-8deb-48bf-93d4-df854ecd66ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_9d38d670-c09e-44d1-b433-98d2ec30fa62" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_860656ff-8deb-48bf-93d4-df854ecd66ea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_b003ddf7-282b-4dda-b19f-084700d0c0fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InternalCreditAssessmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_860656ff-8deb-48bf-93d4-df854ecd66ea" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_b003ddf7-282b-4dda-b19f-084700d0c0fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_b003ddf7-282b-4dda-b19f-084700d0c0fa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_b003ddf7-282b-4dda-b19f-084700d0c0fa" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_b003ddf7-282b-4dda-b19f-084700d0c0fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_b003ddf7-282b-4dda-b19f-084700d0c0fa" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PassMember_e2e8d8ee-99b1-4a7d-bcfb-da0f29421dc0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PassMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:to="loc_us-gaap_PassMember_e2e8d8ee-99b1-4a7d-bcfb-da0f29421dc0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SpecialMentionMember_a28ebc5e-d34a-40f3-9223-37a876f83785" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SpecialMentionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:to="loc_us-gaap_SpecialMentionMember_a28ebc5e-d34a-40f3-9223-37a876f83785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubstandardMember_b40d5490-356f-42cf-9d25-e7501fa6cbd0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubstandardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:to="loc_us-gaap_SubstandardMember_b40d5490-356f-42cf-9d25-e7501fa6cbd0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DoubtfulMember_25d9f257-7fcc-490e-9869-ebe8cf36bab3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DoubtfulMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:to="loc_us-gaap_DoubtfulMember_25d9f257-7fcc-490e-9869-ebe8cf36bab3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnlikelyToBeCollectedFinancingReceivableMember_17785522-c323-4020-ab85-7347fb5bb42b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnlikelyToBeCollectedFinancingReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_909d182c-8917-4567-a14e-03fc0e3e57ec" xlink:to="loc_us-gaap_UnlikelyToBeCollectedFinancingReceivableMember_17785522-c323-4020-ab85-7347fb5bb42b" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails" xlink:type="extended" id="idb175c34dd324e2fa89fdd00d2b7ad6b_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_730310eb-88c1-46a8-b940-a89ba03d33cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:href="ari-20230331.xsd#ari_AllowanceandProvisionforLoanCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_730310eb-88c1-46a8-b940-a89ba03d33cb" xlink:to="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6e8192ea-6b65-43b9-a1a0-efcdac6a5e8a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6e8192ea-6b65-43b9-a1a0-efcdac6a5e8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d8925bb3-873e-47e7-a614-534e40340e4c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6e8192ea-6b65-43b9-a1a0-efcdac6a5e8a" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d8925bb3-873e-47e7-a614-534e40340e4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_574a8731-a2ec-4a5e-accb-3c1909bcb7ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6e8192ea-6b65-43b9-a1a0-efcdac6a5e8a" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_574a8731-a2ec-4a5e-accb-3c1909bcb7ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_5a0e0c0a-67ea-4f21-8700-e88897de6f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceforCreditLossRollForward_2c25db7b-fb0f-4eb8-9901-3a306b42a5b8" xlink:href="ari-20230331.xsd#ari_FinancingReceivableFundedAllowanceforCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:to="loc_ari_FinancingReceivableFundedAllowanceforCreditLossRollForward_2c25db7b-fb0f-4eb8-9901-3a306b42a5b8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_e8979e01-08a3-42a9-bfab-f0303f7e05ff" xlink:href="ari-20230331.xsd#ari_FinancingReceivableFundedAllowanceforCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableFundedAllowanceforCreditLossRollForward_2c25db7b-fb0f-4eb8-9901-3a306b42a5b8" xlink:to="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_e8979e01-08a3-42a9-bfab-f0303f7e05ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_4857dd73-1443-4947-8e4a-b4ee221e9bb5" xlink:href="ari-20230331.xsd#ari_FinancingReceivableFundedCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableFundedAllowanceforCreditLossRollForward_2c25db7b-fb0f-4eb8-9901-3a306b42a5b8" xlink:to="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_4857dd73-1443-4947-8e4a-b4ee221e9bb5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_84008867-aa4f-4245-808a-5b26566b1424" xlink:href="ari-20230331.xsd#ari_FinancingReceivableFundedAllowanceforCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableUnfundedAllowanceforCreditLossRollForward_40cff5ad-6e8c-4bf3-9a39-a78663b46b75" xlink:href="ari-20230331.xsd#ari_FinancingReceivableUnfundedAllowanceforCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:to="loc_ari_FinancingReceivableUnfundedAllowanceforCreditLossRollForward_40cff5ad-6e8c-4bf3-9a39-a78663b46b75" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_6784f68a-0938-4f81-9aff-dbf00d6b75dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableUnfundedAllowanceforCreditLossRollForward_40cff5ad-6e8c-4bf3-9a39-a78663b46b75" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_6784f68a-0938-4f81-9aff-dbf00d6b75dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_f14a9211-0a41-4a2b-8edc-6674bac4d476" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableUnfundedAllowanceforCreditLossRollForward_40cff5ad-6e8c-4bf3-9a39-a78663b46b75" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_f14a9211-0a41-4a2b-8edc-6674bac4d476" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_fbd49acd-8c16-430b-aefe-197ad6e95f53" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableGeneralAllowanceAllowanceforCreditLossRollForward_c8e542cc-51c6-4d17-a2fd-a041b95a0136" xlink:href="ari-20230331.xsd#ari_FinancingReceivableGeneralAllowanceAllowanceforCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:to="loc_ari_FinancingReceivableGeneralAllowanceAllowanceforCreditLossRollForward_c8e542cc-51c6-4d17-a2fd-a041b95a0136" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_a6831099-aa4b-4b93-869c-66e55e28e7c1" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableGeneralAllowanceAllowanceforCreditLossRollForward_c8e542cc-51c6-4d17-a2fd-a041b95a0136" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_a6831099-aa4b-4b93-869c-66e55e28e7c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal_80095e2a-02f1-4792-9140-ce39f8a692be" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableGeneralAllowanceAllowanceforCreditLossRollForward_c8e542cc-51c6-4d17-a2fd-a041b95a0136" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal_80095e2a-02f1-4792-9140-ce39f8a692be" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_118c4e4d-8672-4bc2-8786-f860821e06fa" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableTotalAllowanceforCreditLossRollForward_6c462e5d-6ad5-47d5-a92f-45b49f845787" xlink:href="ari-20230331.xsd#ari_FinancingReceivableTotalAllowanceforCreditLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_AllowanceandProvisionforLoanCreditLossRollForward_bb202a20-4e39-440d-80b6-37223913d5c7" xlink:to="loc_ari_FinancingReceivableTotalAllowanceforCreditLossRollForward_6c462e5d-6ad5-47d5-a92f-45b49f845787" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiability_f5f610a3-9996-4348-8f0b-272562b26c93" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableTotalAllowanceforCreditLossRollForward_6c462e5d-6ad5-47d5-a92f-45b49f845787" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiability_f5f610a3-9996-4348-8f0b-272562b26c93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossExpenseReversal_dcdc2729-f47b-4143-af1b-6a639a61240e" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_FinancingReceivableTotalAllowanceforCreditLossRollForward_6c462e5d-6ad5-47d5-a92f-45b49f845787" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossExpenseReversal_dcdc2729-f47b-4143-af1b-6a639a61240e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiability_5a0f6061-da91-4406-b075-9ad290a75677" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost_712c606d-a0bd-40d2-a161-d39cddb4458c" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_730310eb-88c1-46a8-b940-a89ba03d33cb" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost_712c606d-a0bd-40d2-a161-d39cddb4458c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost_7920ff2a-4806-47d2-ac4f-0a06145f802d" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_730310eb-88c1-46a8-b940-a89ba03d33cb" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesIncludingLoanSpecificRealEstateAndOffBalanceSheetCreditLossLiabilityPercentOfAmortizedCost_7920ff2a-4806-47d2-ac4f-0a06145f802d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_ba35522d-6470-439a-9398-0edceb531515" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_730310eb-88c1-46a8-b940-a89ba03d33cb" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_ba35522d-6470-439a-9398-0edceb531515" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_d4c46823-17c8-4191-9923-02789735cbd1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_ba35522d-6470-439a-9398-0edceb531515" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_d4c46823-17c8-4191-9923-02789735cbd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d4c46823-17c8-4191-9923-02789735cbd1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_d4c46823-17c8-4191-9923-02789735cbd1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_d4c46823-17c8-4191-9923-02789735cbd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_48dcef58-4063-47ec-bef1-c4ea4f4c6387" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_d4c46823-17c8-4191-9923-02789735cbd1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_48dcef58-4063-47ec-bef1-c4ea4f4c6387" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_4f556d99-493b-4b44-8272-c18e22320d80" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_48dcef58-4063-47ec-bef1-c4ea4f4c6387" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_4f556d99-493b-4b44-8272-c18e22320d80" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails" xlink:type="extended" id="i3e69fa36ce1c478aacbc19f57d1a5248_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6f8d1436-344f-4ba8-bde2-e2a5602d05b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_454a09b5-8c0f-4dcd-b371-307f467f2371" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6f8d1436-344f-4ba8-bde2-e2a5602d05b6" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_454a09b5-8c0f-4dcd-b371-307f467f2371" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_5aba32a2-2244-4eb3-a731-b0bc880a815e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6f8d1436-344f-4ba8-bde2-e2a5602d05b6" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_5aba32a2-2244-4eb3-a731-b0bc880a815e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_7d90ea69-55d5-4711-8fe4-8fcdda3c197b" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6f8d1436-344f-4ba8-bde2-e2a5602d05b6" xlink:to="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_7d90ea69-55d5-4711-8fe4-8fcdda3c197b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_1524ef9e-35b0-4601-b966-18425adb1886" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6f8d1436-344f-4ba8-bde2-e2a5602d05b6" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_1524ef9e-35b0-4601-b966-18425adb1886" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5c28c657-4131-4f47-b0f9-348f8772fb3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_1524ef9e-35b0-4601-b966-18425adb1886" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5c28c657-4131-4f47-b0f9-348f8772fb3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5c28c657-4131-4f47-b0f9-348f8772fb3c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5c28c657-4131-4f47-b0f9-348f8772fb3c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_5c28c657-4131-4f47-b0f9-348f8772fb3c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f808851-b927-4e98-af71-ca2fe600dc28" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5c28c657-4131-4f47-b0f9-348f8772fb3c" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f808851-b927-4e98-af71-ca2fe600dc28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_28f5258d-18df-4795-87c2-78ad0727d52a" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f808851-b927-4e98-af71-ca2fe600dc28" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_28f5258d-18df-4795-87c2-78ad0727d52a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_46897ff9-b89e-4dbc-904f-f5702a52c78d" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1f808851-b927-4e98-af71-ca2fe600dc28" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_46897ff9-b89e-4dbc-904f-f5702a52c78d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCostRecoveryLoansDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCostRecoveryLoansDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCostRecoveryLoansDetails" xlink:type="extended" id="i1fcb5a5746b14f13a9d8701bba48bd43_CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCostRecoveryLoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableCostRecovery_4e953a9f-f25b-4c22-8f91-84d908608cc8" xlink:href="ari-20230331.xsd#ari_FinancingReceivableCostRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_ari_FinancingReceivableCostRecovery_4e953a9f-f25b-4c22-8f91-84d908608cc8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_40e735d6-3dd5-4233-a0ab-82db8c81296f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_40e735d6-3dd5-4233-a0ab-82db8c81296f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableCostRecoveryNet_6baf67e8-2549-4e45-ba09-4d62cd9868ac" xlink:href="ari-20230331.xsd#ari_FinancingReceivableCostRecoveryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_ari_FinancingReceivableCostRecoveryNet_6baf67e8-2549-4e45-ba09-4d62cd9868ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoanCollateralMeasurementInput_2d841dd3-2074-409c-8b8a-c4c9e21a40fa" xlink:href="ari-20230331.xsd#ari_LoanCollateralMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_ari_LoanCollateralMeasurementInput_2d841dd3-2074-409c-8b8a-c4c9e21a40fa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_EquityContributionRate_27bc078d-4797-4171-ac61-4a8cb6282b3e" xlink:href="ari-20230331.xsd#ari_EquityContributionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_ari_EquityContributionRate_27bc078d-4797-4171-ac61-4a8cb6282b3e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaidInKindInterest_7c6929c0-4e8b-495d-86f7-ea74f01be428" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaidInKindInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_us-gaap_PaidInKindInterest_7c6929c0-4e8b-495d-86f7-ea74f01be428" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_5c4b9fff-3016-4f31-992f-631de6b15b4d" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61e4c791-fdc2-48f8-9dd1-15a833262e33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61e4c791-fdc2-48f8-9dd1-15a833262e33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_61e4c791-fdc2-48f8-9dd1-15a833262e33_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61e4c791-fdc2-48f8-9dd1-15a833262e33" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_61e4c791-fdc2-48f8-9dd1-15a833262e33_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_654cdc48-3d74-4795-8ee7-b11da899b58b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61e4c791-fdc2-48f8-9dd1-15a833262e33" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_654cdc48-3d74-4795-8ee7-b11da899b58b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateLoanMember_3f7616e0-97a1-46c5-9327-c46f71d08268" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_654cdc48-3d74-4795-8ee7-b11da899b58b" xlink:to="loc_us-gaap_RealEstateLoanMember_3f7616e0-97a1-46c5-9327-c46f71d08268" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MezzanineLoansMember_a1946b59-46f6-41f0-b993-9aa8587ba024" xlink:href="ari-20230331.xsd#ari_MezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_654cdc48-3d74-4795-8ee7-b11da899b58b" xlink:to="loc_ari_MezzanineLoansMember_a1946b59-46f6-41f0-b993-9aa8587ba024" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateAndMezzanineMember_bcf3c67a-38e5-446a-a9fc-4fc077c3dcbd" xlink:href="ari-20230331.xsd#ari_RealEstateAndMezzanineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_654cdc48-3d74-4795-8ee7-b11da899b58b" xlink:to="loc_ari_RealEstateAndMezzanineMember_bcf3c67a-38e5-446a-a9fc-4fc077c3dcbd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_2c061c04-5a58-48b5-be4b-5d8333b09256" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_e7c454b8-595c-4f19-a2aa-6b54b6efb3c3" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_2c061c04-5a58-48b5-be4b-5d8333b09256" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RetailCenterCincinnatiOHMember_d6e5b224-7a41-4492-a1c3-153fbc206b2b" xlink:href="ari-20230331.xsd#ari_RetailCenterCincinnatiOHMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_2c061c04-5a58-48b5-be4b-5d8333b09256" xlink:to="loc_ari_RetailCenterCincinnatiOHMember_d6e5b224-7a41-4492-a1c3-153fbc206b2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ResidentialManhattanNYMember_be362b46-7e4a-46fa-a90a-f726945821bc" xlink:href="ari-20230331.xsd#ari_ResidentialManhattanNYMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_2c061c04-5a58-48b5-be4b-5d8333b09256" xlink:to="loc_ari_ResidentialManhattanNYMember_be362b46-7e4a-46fa-a90a-f726945821bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_b70189e7-a649-4353-9bab-6fb501b304ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_b70189e7-a649-4353-9bab-6fb501b304ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_b70189e7-a649-4353-9bab-6fb501b304ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_b70189e7-a649-4353-9bab-6fb501b304ca" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_b70189e7-a649-4353-9bab-6fb501b304ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_74790e6e-f69c-4ac5-aead-fc3da089d8b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_b70189e7-a649-4353-9bab-6fb501b304ca" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_74790e6e-f69c-4ac5-aead-fc3da089d8b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MeasurementInputTerminalCapitalizationRateMember_3175ff11-a8ae-494a-a0ed-fe576e7d11fa" xlink:href="ari-20230331.xsd#ari_MeasurementInputTerminalCapitalizationRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_74790e6e-f69c-4ac5-aead-fc3da089d8b8" xlink:to="loc_ari_MeasurementInputTerminalCapitalizationRateMember_3175ff11-a8ae-494a-a0ed-fe576e7d11fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_8d1eef44-cf8b-4442-9ae0-3bee1596e116" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_74790e6e-f69c-4ac5-aead-fc3da089d8b8" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_8d1eef44-cf8b-4442-9ae0-3bee1596e116" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_146cab20-d96c-439b-814a-b29b5fb1b8f9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_72ed621b-7420-4a90-a257-82d3f204ecff" xlink:to="loc_srt_CounterpartyNameAxis_146cab20-d96c-439b-814a-b29b5fb1b8f9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_146cab20-d96c-439b-814a-b29b5fb1b8f9_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_146cab20-d96c-439b-814a-b29b5fb1b8f9" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_146cab20-d96c-439b-814a-b29b5fb1b8f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_35081c11-c5e3-4252-aca5-7f8243634d0c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_146cab20-d96c-439b-814a-b29b5fb1b8f9" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_35081c11-c5e3-4252-aca5-7f8243634d0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TurnerConsultingMember_5af590a0-b584-4934-bca6-a32373f344a3" xlink:href="ari-20230331.xsd#ari_TurnerConsultingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_35081c11-c5e3-4252-aca5-7f8243634d0c" xlink:to="loc_ari_TurnerConsultingMember_5af590a0-b584-4934-bca6-a32373f344a3" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/RealEstateOwnedNarrativeDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#RealEstateOwnedNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/RealEstateOwnedNarrativeDetails" xlink:type="extended" id="i0f84b9e38e844eaab473c936c601cb4a_RealEstateOwnedNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_7de76681-ff9d-48ef-b2cf-8245079174c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_7de76681-ff9d-48ef-b2cf-8245079174c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_a3e1e783-5b01-4e20-b1a3-e0852afb68c4" xlink:href="ari-20230331.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_a3e1e783-5b01-4e20-b1a3-e0852afb68c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal_b2360abe-4a8d-4859-88af-2d10fab459c1" xlink:href="ari-20230331.xsd#ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_FinancingReceivableLoanSpecificCreditLossExpenseReversal_b2360abe-4a8d-4859-88af-2d10fab459c1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMortgageNotesReceivable_4796479f-b5cb-4aed-9665-5c3571ab35b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireMortgageNotesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_PaymentsToAcquireMortgageNotesReceivable_4796479f-b5cb-4aed-9665-5c3571ab35b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_77848354-d05d-4b64-a437-46cc33989f89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_77848354-d05d-4b64-a437-46cc33989f89" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentsForMortgageLoans_99498dc3-256d-4f35-8a31-ed3577e3c9dc" xlink:href="ari-20230331.xsd#ari_PaymentsForMortgageLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_PaymentsForMortgageLoans_99498dc3-256d-4f35-8a31-ed3577e3c9dc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_2a6befd2-558f-45c6-8c00-6a1245c82692" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_2a6befd2-558f-45c6-8c00-6a1245c82692" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateHeldForSaleGainLossOnReclassification_daa44de6-bbd2-468a-839e-0e6a08d96544" xlink:href="ari-20230331.xsd#ari_RealEstateHeldForSaleGainLossOnReclassification"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_RealEstateHeldForSaleGainLossOnReclassification_daa44de6-bbd2-468a-839e-0e6a08d96544" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_adef3ffa-05cb-47ac-8a87-f35b5822cd67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_adef3ffa-05cb-47ac-8a87-f35b5822cd67" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomer_4b4ff565-f5a5-4f72-bb7e-0e9ae176323c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueNotFromContractWithCustomer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomer_4b4ff565-f5a5-4f72-bb7e-0e9ae176323c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyNet_0df742b7-1d1c-4f32-8d3d-76f158bf8f25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateInvestmentPropertyNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_RealEstateInvestmentPropertyNet_0df742b7-1d1c-4f32-8d3d-76f158bf8f25" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_d857cee3-7094-4efc-b313-5542d402c786" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_d857cee3-7094-4efc-b313-5542d402c786" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableConstructionAndFinanceCostsCapitalized_dced8879-d870-4340-bc63-5a22485c502c" xlink:href="ari-20230331.xsd#ari_FinancingReceivableConstructionAndFinanceCostsCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_FinancingReceivableConstructionAndFinanceCostsCapitalized_dced8879-d870-4340-bc63-5a22485c502c" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_4041a379-be9e-4682-8715-875129670c4a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_4041a379-be9e-4682-8715-875129670c4a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_eb50791b-0085-4b5a-ad75-9a6a51686a99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_eb50791b-0085-4b5a-ad75-9a6a51686a99" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_dbd54da7-fc0e-4635-8e89-9ee28306eb40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_dbd54da7-fc0e-4635-8e89-9ee28306eb40" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_5820fe83-3a18-472c-b3a1-7726e94be38d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_5820fe83-3a18-472c-b3a1-7726e94be38d" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LineofCreditFacilityInterestRateStatedPercentage_4ee90c7c-5976-4b1f-b9f2-446e83160499" xlink:href="ari-20230331.xsd#ari_LineofCreditFacilityInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_LineofCreditFacilityInterestRateStatedPercentage_4ee90c7c-5976-4b1f-b9f2-446e83160499" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LineOfCreditFacilityOptionToExtendPeriod_c3e2c354-a89d-495d-a53f-8b33d890864b" xlink:href="ari-20230331.xsd#ari_LineOfCreditFacilityOptionToExtendPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_LineOfCreditFacilityOptionToExtendPeriod_c3e2c354-a89d-495d-a53f-8b33d890864b" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantUnencumberedLiquidityThreshold_b11250d6-bc7e-4f58-b0f3-24fa9f89e850" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantUnencumberedLiquidityThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_DebtInstrumentCovenantUnencumberedLiquidityThreshold_b11250d6-bc7e-4f58-b0f3-24fa9f89e850" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantNetWorthThreshold_6d9bc63c-945b-47d3-a7d5-4138bfc7bc77" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantNetWorthThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_DebtInstrumentCovenantNetWorthThreshold_6d9bc63c-945b-47d3-a7d5-4138bfc7bc77" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_de3cfdbc-9210-441a-9cf1-c38dddd6b5ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_de3cfdbc-9210-441a-9cf1-c38dddd6b5ff" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff_ebbad29f-5ac4-42db-a90e-8f6302b47955" xlink:href="ari-20230331.xsd#ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_ari_FinancingReceivableLoanSpecificRealizedGainLossOnWriteoff_ebbad29f-5ac4-42db-a90e-8f6302b47955" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RealEstateLineItems_fd20f84f-3b20-4056-944b-7032d749085d" xlink:to="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_ca91d97d-f433-45d1-9752-b4575e0288fe" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_ca91d97d-f433-45d1-9752-b4575e0288fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_ca91d97d-f433-45d1-9752-b4575e0288fe_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_ca91d97d-f433-45d1-9752-b4575e0288fe" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_ca91d97d-f433-45d1-9752-b4575e0288fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_ca91d97d-f433-45d1-9752-b4575e0288fe" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelWashingtonD.C.Member_e71cc58a-8543-441f-abb4-07b21f363548" xlink:href="ari-20230331.xsd#ari_HotelWashingtonD.C.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:to="loc_ari_HotelWashingtonD.C.Member_e71cc58a-8543-441f-abb4-07b21f363548" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MultifamilyDevelopmentBrooklynNYMember_e7bfc405-42bc-4d83-9d6c-9077cdc6a46a" xlink:href="ari-20230331.xsd#ari_MultifamilyDevelopmentBrooklynNYMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:to="loc_ari_MultifamilyDevelopmentBrooklynNYMember_e7bfc405-42bc-4d83-9d6c-9077cdc6a46a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DeedInLieuOfForeclosureMember_0397f1f4-0272-4f79-b4ba-2ea06ea92d3b" xlink:href="ari-20230331.xsd#ari_DeedInLieuOfForeclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:to="loc_ari_DeedInLieuOfForeclosureMember_0397f1f4-0272-4f79-b4ba-2ea06ea92d3b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ResidentialManhattanNYMember_73902a25-12d3-49b0-88f8-9c350e131a7d" xlink:href="ari-20230331.xsd#ari_ResidentialManhattanNYMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:to="loc_ari_ResidentialManhattanNYMember_73902a25-12d3-49b0-88f8-9c350e131a7d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelAtlantaGAMember_86576060-8f91-4ff5-a7a7-1d63c6cba4d6" xlink:href="ari-20230331.xsd#ari_HotelAtlantaGAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_671d64fd-e6dc-4da7-8668-a52f13b7100a" xlink:to="loc_ari_HotelAtlantaGAMember_86576060-8f91-4ff5-a7a7-1d63c6cba4d6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27d7af99-608f-41a2-bbe6-283723c6ea89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27d7af99-608f-41a2-bbe6-283723c6ea89" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_27d7af99-608f-41a2-bbe6-283723c6ea89_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27d7af99-608f-41a2-bbe6-283723c6ea89" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_27d7af99-608f-41a2-bbe6-283723c6ea89_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1ade3efc-318a-4e02-a731-b67eda3f8d83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27d7af99-608f-41a2-bbe6-283723c6ea89" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1ade3efc-318a-4e02-a731-b67eda3f8d83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JuniorMezzanineLoansMember_a57ff01f-61b1-4b03-97b1-9a243d7407f1" xlink:href="ari-20230331.xsd#ari_JuniorMezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1ade3efc-318a-4e02-a731-b67eda3f8d83" xlink:to="loc_ari_JuniorMezzanineLoansMember_a57ff01f-61b1-4b03-97b1-9a243d7407f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeniorMezzanineLoansMember_50a474d6-e5ca-4a0d-9ebd-94d53092b7a3" xlink:href="ari-20230331.xsd#ari_SeniorMezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1ade3efc-318a-4e02-a731-b67eda3f8d83" xlink:to="loc_ari_SeniorMezzanineLoansMember_50a474d6-e5ca-4a0d-9ebd-94d53092b7a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MezzanineLoansMember_6d659c22-c9ab-47bc-9563-a5f02d309a41" xlink:href="ari-20230331.xsd#ari_MezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1ade3efc-318a-4e02-a731-b67eda3f8d83" xlink:to="loc_ari_MezzanineLoansMember_6d659c22-c9ab-47bc-9563-a5f02d309a41" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8c872db0-e3db-489b-8092-6487d93182f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8c872db0-e3db-489b-8092-6487d93182f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8c872db0-e3db-489b-8092-6487d93182f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8c872db0-e3db-489b-8092-6487d93182f0" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_8c872db0-e3db-489b-8092-6487d93182f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1e8a7dbb-5aa1-464a-8e0c-ccc23019e421" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8c872db0-e3db-489b-8092-6487d93182f0" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1e8a7dbb-5aa1-464a-8e0c-ccc23019e421" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_36be52c3-3cc4-4a9c-833e-e8f4135efb41" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1e8a7dbb-5aa1-464a-8e0c-ccc23019e421" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_36be52c3-3cc4-4a9c-833e-e8f4135efb41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_732d136d-c249-4bc8-9e25-c65707aa75e5" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1e8a7dbb-5aa1-464a-8e0c-ccc23019e421" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_732d136d-c249-4bc8-9e25-c65707aa75e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_7bd1adc1-3880-4b31-8941-0258b92ef8b1" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_srt_OwnershipAxis_7bd1adc1-3880-4b31-8941-0258b92ef8b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_7bd1adc1-3880-4b31-8941-0258b92ef8b1_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_7bd1adc1-3880-4b31-8941-0258b92ef8b1" xlink:to="loc_srt_OwnershipDomain_7bd1adc1-3880-4b31-8941-0258b92ef8b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_74979e28-2e46-470c-9afc-c87255ad98a7" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_7bd1adc1-3880-4b31-8941-0258b92ef8b1" xlink:to="loc_srt_OwnershipDomain_74979e28-2e46-470c-9afc-c87255ad98a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JVPartnerMember_54a2947d-6476-407f-b3a5-c973f538b6fa" xlink:href="ari-20230331.xsd#ari_JVPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_74979e28-2e46-470c-9afc-c87255ad98a7" xlink:to="loc_ari_JVPartnerMember_54a2947d-6476-407f-b3a5-c973f538b6fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_83762c20-57db-4f27-b112-14c68e3d4e93" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_83762c20-57db-4f27-b112-14c68e3d4e93" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_83762c20-57db-4f27-b112-14c68e3d4e93_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_83762c20-57db-4f27-b112-14c68e3d4e93" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_83762c20-57db-4f27-b112-14c68e3d4e93_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_6a016446-5a13-4d71-892d-d8b051109433" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_83762c20-57db-4f27-b112-14c68e3d4e93" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_6a016446-5a13-4d71-892d-d8b051109433" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JointVentureMember_5cd4a784-7f0d-4c46-92af-759b8ae5e351" xlink:href="ari-20230331.xsd#ari_JointVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_6a016446-5a13-4d71-892d-d8b051109433" xlink:to="loc_ari_JointVentureMember_5cd4a784-7f0d-4c46-92af-759b8ae5e351" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_8793b6e0-76a8-4453-ad4c-614be0361a6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_8793b6e0-76a8-4453-ad4c-614be0361a6f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8793b6e0-76a8-4453-ad4c-614be0361a6f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8793b6e0-76a8-4453-ad4c-614be0361a6f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8793b6e0-76a8-4453-ad4c-614be0361a6f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_48fef019-4fc4-460b-9745-b8063c42f4b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8793b6e0-76a8-4453-ad4c-614be0361a6f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_48fef019-4fc4-460b-9745-b8063c42f4b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgagesMember_83772cb0-2fbb-4dac-bb51-6b46f7de1262" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgagesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_48fef019-4fc4-460b-9745-b8063c42f4b8" xlink:to="loc_us-gaap_MortgagesMember_83772cb0-2fbb-4dac-bb51-6b46f7de1262" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_f7327484-987a-487b-83e5-407ae84e4112" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_us-gaap_CreditFacilityAxis_f7327484-987a-487b-83e5-407ae84e4112" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_f7327484-987a-487b-83e5-407ae84e4112_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_f7327484-987a-487b-83e5-407ae84e4112" xlink:to="loc_us-gaap_CreditFacilityDomain_f7327484-987a-487b-83e5-407ae84e4112_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_4e3dc3fd-e454-4813-b09b-bed06893fb90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_f7327484-987a-487b-83e5-407ae84e4112" xlink:to="loc_us-gaap_CreditFacilityDomain_4e3dc3fd-e454-4813-b09b-bed06893fb90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_d46c4b91-ad7f-4c9e-9713-6f8aca8ca650" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_4e3dc3fd-e454-4813-b09b-bed06893fb90" xlink:to="loc_us-gaap_LetterOfCreditMember_d46c4b91-ad7f-4c9e-9713-6f8aca8ca650" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_e93bcebd-f64b-4d06-9f05-33ec3eefca4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_us-gaap_VariableRateAxis_e93bcebd-f64b-4d06-9f05-33ec3eefca4d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_e93bcebd-f64b-4d06-9f05-33ec3eefca4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_e93bcebd-f64b-4d06-9f05-33ec3eefca4d" xlink:to="loc_us-gaap_VariableRateDomain_e93bcebd-f64b-4d06-9f05-33ec3eefca4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_9477ba73-a92a-4ffe-a457-59be34f1a7e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_e93bcebd-f64b-4d06-9f05-33ec3eefca4d" xlink:to="loc_us-gaap_VariableRateDomain_9477ba73-a92a-4ffe-a457-59be34f1a7e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SecuredOvernightFinancingRateMember_ab717181-df24-4bcf-976e-be849041d3da" xlink:href="ari-20230331.xsd#ari_SecuredOvernightFinancingRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_9477ba73-a92a-4ffe-a457-59be34f1a7e4" xlink:to="loc_ari_SecuredOvernightFinancingRateMember_ab717181-df24-4bcf-976e-be849041d3da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_8888495f-a0ff-4083-ab5d-3d03de88989e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_bdb651b5-16ab-4f9c-807d-9d0ef2596fba" xlink:to="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_8888495f-a0ff-4083-ab5d-3d03de88989e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8888495f-a0ff-4083-ab5d-3d03de88989e_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_8888495f-a0ff-4083-ab5d-3d03de88989e" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8888495f-a0ff-4083-ab5d-3d03de88989e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_7c2a2370-d4c3-4541-9dc7-6af7a2374ac1" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_8888495f-a0ff-4083-ab5d-3d03de88989e" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_7c2a2370-d4c3-4541-9dc7-6af7a2374ac1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelThroughADiedInLieuForeclosureMember_6cddc136-8323-46f0-ac4f-b4813c592a7b" xlink:href="ari-20230331.xsd#ari_HotelThroughADiedInLieuForeclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_7c2a2370-d4c3-4541-9dc7-6af7a2374ac1" xlink:to="loc_ari_HotelThroughADiedInLieuForeclosureMember_6cddc136-8323-46f0-ac4f-b4813c592a7b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="extended" id="i7c88d591f95c49e4a95f6eba94042f11_RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_1079eb6e-eac6-4944-b7b2-502f743330d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_1079eb6e-eac6-4944-b7b2-502f743330d5" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionCashAndEquivalents_39f69dfc-788f-482a-870f-a0d4b36c93da" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_AssetAcquisitionCashAndEquivalents_39f69dfc-788f-482a-870f-a0d4b36c93da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_Buildings_8826aa72-70c4-42ca-ae14-a37e05993e19" xlink:href="ari-20230331.xsd#ari_Buildings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_Buildings_8826aa72-70c4-42ca-ae14-a37e05993e19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionLand_411abef2-771d-46d7-a613-cdd13555562d" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionLand"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_AssetAcquisitionLand_411abef2-771d-46d7-a613-cdd13555562d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionFurnitureFixturesAndEquipment_9e2036f4-9447-40fa-a080-ccb40f8b96cb" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionFurnitureFixturesAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_AssetAcquisitionFurnitureFixturesAndEquipment_9e2036f4-9447-40fa-a080-ccb40f8b96cb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionOtherAssets_4bfe171a-618e-41d3-8bbe-aa47824b14e6" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_AssetAcquisitionOtherAssets_4bfe171a-618e-41d3-8bbe-aa47824b14e6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionAssets_0483994c-904b-439a-b677-d50f2be3d137" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_87b367cd-598a-40af-bb3f-a1f679169294" xlink:to="loc_ari_AssetAcquisitionAssets_0483994c-904b-439a-b677-d50f2be3d137" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_d412db47-ea1a-4ebe-b0ea-4e2588540932" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_1079eb6e-eac6-4944-b7b2-502f743330d5" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_d412db47-ea1a-4ebe-b0ea-4e2588540932" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionLiabilities_445b9bd9-ed1c-4711-9773-523a62ecde0c" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_d412db47-ea1a-4ebe-b0ea-4e2588540932" xlink:to="loc_ari_AssetAcquisitionLiabilities_445b9bd9-ed1c-4711-9773-523a62ecde0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet_bff3fb44-c4f5-4d82-bf4d-157b7cac2446" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_1079eb6e-eac6-4944-b7b2-502f743330d5" xlink:to="loc_ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet_bff3fb44-c4f5-4d82-bf4d-157b7cac2446" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateTable_ad2bb34e-c64d-43ec-9b03-84fe053ab213" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_1079eb6e-eac6-4944-b7b2-502f743330d5" xlink:to="loc_us-gaap_RealEstateTable_ad2bb34e-c64d-43ec-9b03-84fe053ab213" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d9c21d72-cc34-4f94-9f9d-fadda338abd9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RealEstateTable_ad2bb34e-c64d-43ec-9b03-84fe053ab213" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d9c21d72-cc34-4f94-9f9d-fadda338abd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_d9c21d72-cc34-4f94-9f9d-fadda338abd9_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d9c21d72-cc34-4f94-9f9d-fadda338abd9" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_d9c21d72-cc34-4f94-9f9d-fadda338abd9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_9defc31d-3ea2-4db3-9804-fb96b616a693" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d9c21d72-cc34-4f94-9f9d-fadda338abd9" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_9defc31d-3ea2-4db3-9804-fb96b616a693" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelAtlantaGAMember_652a48ec-b2f6-456a-83ac-097379653591" xlink:href="ari-20230331.xsd#ari_HotelAtlantaGAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_9defc31d-3ea2-4db3-9804-fb96b616a693" xlink:to="loc_ari_HotelAtlantaGAMember_652a48ec-b2f6-456a-83ac-097379653591" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetAdditionalInformationDetails" xlink:type="extended" id="iae4a21a6bd0e46f49758b06ee44bcca1_SecuredDebtArrangementsNetAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfCreditFacilities_b1a16e3a-4040-4089-a819-24c1b88b4b02" xlink:href="ari-20230331.xsd#ari_NumberOfCreditFacilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_NumberOfCreditFacilities_b1a16e3a-4040-4089-a819-24c1b88b4b02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_47c829de-f495-4b00-ba7b-7d9fd0232ed2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_47c829de-f495-4b00-ba7b-7d9fd0232ed2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet_091583e1-3b8b-43cc-a9a1-c169a178313d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet_091583e1-3b8b-43cc-a9a1-c169a178313d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentWeightedAverageHaircutUnderRepurchaseAgreements_000acfbe-ed5b-47fb-82bf-cf81b5cbaaea" xlink:href="ari-20230331.xsd#ari_DebtInstrumentWeightedAverageHaircutUnderRepurchaseAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentWeightedAverageHaircutUnderRepurchaseAgreements_000acfbe-ed5b-47fb-82bf-cf81b5cbaaea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityExpirationPeriod_4d3ccadd-3a8a-4216-baf3-2b803abd176a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_us-gaap_LineOfCreditFacilityExpirationPeriod_4d3ccadd-3a8a-4216-baf3-2b803abd176a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LineOfCreditFacilityQualifyingCommercialLoanBorrowingsTerm_6b827f05-f068-46b6-bbcb-0c64dade7c87" xlink:href="ari-20230331.xsd#ari_LineOfCreditFacilityQualifyingCommercialLoanBorrowingsTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_LineOfCreditFacilityQualifyingCommercialLoanBorrowingsTerm_6b827f05-f068-46b6-bbcb-0c64dade7c87" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LineOfCreditFacilityRealPropertyOwnedAssetBorrowingsTerm_35d75325-760c-4789-919d-962e26ea92ba" xlink:href="ari-20230331.xsd#ari_LineOfCreditFacilityRealPropertyOwnedAssetBorrowingsTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_LineOfCreditFacilityRealPropertyOwnedAssetBorrowingsTerm_35d75325-760c-4789-919d-962e26ea92ba" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_0f019a1f-7853-47f0-9bb9-13ded836ad26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityCommitmentFeeAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_0f019a1f-7853-47f0-9bb9-13ded836ad26" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantLiquidityRatioRequiredMinimum_e1f9ebda-2407-43c9-9177-b4348d0d67af" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantLiquidityRatioRequiredMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantLiquidityRatioRequiredMinimum_e1f9ebda-2407-43c9-9177-b4348d0d67af" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantLiquidityRequiredMinimumAmount_60a8a69c-eaeb-4838-8349-3d870f7c4880" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantLiquidityRequiredMinimumAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantLiquidityRequiredMinimumAmount_60a8a69c-eaeb-4838-8349-3d870f7c4880" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantIndebtednessToTangibleWorthRatioMaximumAmount_b40d207e-baac-4572-85da-ad5cca034ef3" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantIndebtednessToTangibleWorthRatioMaximumAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantIndebtednessToTangibleWorthRatioMaximumAmount_b40d207e-baac-4572-85da-ad5cca034ef3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantNetCashProceedsOfAdditionalEquityIssuancesAmount_eca951cd-9223-4e9c-a963-460f90145edd" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantNetCashProceedsOfAdditionalEquityIssuancesAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantNetCashProceedsOfAdditionalEquityIssuancesAmount_eca951cd-9223-4e9c-a963-460f90145edd" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantTangibleNetWorthPercentage_0119c7ab-4eec-4a09-84bb-86a3abad1ea0" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantTangibleNetWorthPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantTangibleNetWorthPercentage_0119c7ab-4eec-4a09-84bb-86a3abad1ea0" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantInterestCoverageRatioMinimum_2909eb0a-20e7-480c-b28f-3849f6b30009" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantInterestCoverageRatioMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantInterestCoverageRatioMinimum_2909eb0a-20e7-480c-b28f-3849f6b30009" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentWaivingOfDebtServicePaymentsTerm_b5d059a0-413a-4176-aabc-b468e6c7ecf0" xlink:href="ari-20230331.xsd#ari_DebtInstrumentWaivingOfDebtServicePaymentsTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentWaivingOfDebtServicePaymentsTerm_b5d059a0-413a-4176-aabc-b468e6c7ecf0" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantInterestCoverageRatioMaximum_9b56bb32-9295-4678-935f-7069ee65295e" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantInterestCoverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_ari_DebtInstrumentCovenantInterestCoverageRatioMaximum_9b56bb32-9295-4678-935f-7069ee65295e" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_ed785276-74a8-473a-bbff-725e3bbb8e4e" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:to="loc_us-gaap_CreditFacilityAxis_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca" xlink:to="loc_us-gaap_CreditFacilityDomain_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_66b86f85-1ff9-4abd-b7a3-4e42810c37f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_b2c5a8d8-8317-48c7-8fd6-78d0f8ca99ca" xlink:to="loc_us-gaap_CreditFacilityDomain_66b86f85-1ff9-4abd-b7a3-4e42810c37f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_77b424d0-05d5-4282-a2b6-c3773f5ae348" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_66b86f85-1ff9-4abd-b7a3-4e42810c37f0" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_77b424d0-05d5-4282-a2b6-c3773f5ae348" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_1095f62a-ba71-4b04-a555-4523ca43a334" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:to="loc_us-gaap_DebtInstrumentAxis_1095f62a-ba71-4b04-a555-4523ca43a334" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1095f62a-ba71-4b04-a555-4523ca43a334_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_1095f62a-ba71-4b04-a555-4523ca43a334" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1095f62a-ba71-4b04-a555-4523ca43a334_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ff4bb4e6-6ef0-44ad-8510-e692fe15ace4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_1095f62a-ba71-4b04-a555-4523ca43a334" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ff4bb4e6-6ef0-44ad-8510-e692fe15ace4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2022NewCreditFacilitiesMember_380547d4-987f-49cb-82ac-3fe75001be47" xlink:href="ari-20230331.xsd#ari_A2022NewCreditFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff4bb4e6-6ef0-44ad-8510-e692fe15ace4" xlink:to="loc_ari_A2022NewCreditFacilitiesMember_380547d4-987f-49cb-82ac-3fe75001be47" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoExistingCreditFacilitiesMember_7a251216-cc80-4cf8-a907-ef792c20d4a9" xlink:href="ari-20230331.xsd#ari_TwoExistingCreditFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff4bb4e6-6ef0-44ad-8510-e692fe15ace4" xlink:to="loc_ari_TwoExistingCreditFacilitiesMember_7a251216-cc80-4cf8-a907-ef792c20d4a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2023RevolvingCreditFacilityMember_19cc3ab1-29d1-4ac8-abd8-898670279263" xlink:href="ari-20230331.xsd#ari_A2023RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff4bb4e6-6ef0-44ad-8510-e692fe15ace4" xlink:to="loc_ari_A2023RevolvingCreditFacilityMember_19cc3ab1-29d1-4ac8-abd8-898670279263" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_0e7fd154-fed5-4d7e-b694-90aed12621df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_0e7fd154-fed5-4d7e-b694-90aed12621df" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_0e7fd154-fed5-4d7e-b694-90aed12621df_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_0e7fd154-fed5-4d7e-b694-90aed12621df" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_0e7fd154-fed5-4d7e-b694-90aed12621df_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_44f6614b-aaca-4ff9-9bf1-a52e0658f0ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_0e7fd154-fed5-4d7e-b694-90aed12621df" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_44f6614b-aaca-4ff9-9bf1-a52e0658f0ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BankOfAmericaNAMember_08a303f9-0c1a-43ff-b027-7083294ac470" xlink:href="ari-20230331.xsd#ari_BankOfAmericaNAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_44f6614b-aaca-4ff9-9bf1-a52e0658f0ce" xlink:to="loc_ari_BankOfAmericaNAMember_08a303f9-0c1a-43ff-b027-7083294ac470" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_ebc34657-1af2-44f2-96ce-13be3e94f6c0" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_44f6614b-aaca-4ff9-9bf1-a52e0658f0ce" xlink:to="loc_ari_BarclaysSecuritizationMember_ebc34657-1af2-44f2-96ce-13be3e94f6c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_e11b1690-4331-4288-8fe3-026ebcf714a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_e11b1690-4331-4288-8fe3-026ebcf714a1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e11b1690-4331-4288-8fe3-026ebcf714a1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_e11b1690-4331-4288-8fe3-026ebcf714a1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e11b1690-4331-4288-8fe3-026ebcf714a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fc10b2a8-b4c3-4caf-a947-3930e68f2f84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_e11b1690-4331-4288-8fe3-026ebcf714a1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fc10b2a8-b4c3-4caf-a947-3930e68f2f84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_4c5f5311-78c7-414d-acd7-58140b75d98c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_fc10b2a8-b4c3-4caf-a947-3930e68f2f84" xlink:to="loc_us-gaap_LineOfCreditMember_4c5f5311-78c7-414d-acd7-58140b75d98c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_5c9fa2c0-25ad-4c8c-924f-5c0267a74452" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ec2f3628-0c1e-4c7a-a890-35e9efe948ab" xlink:to="loc_srt_ConsolidatedEntitiesAxis_5c9fa2c0-25ad-4c8c-924f-5c0267a74452" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_5c9fa2c0-25ad-4c8c-924f-5c0267a74452_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5c9fa2c0-25ad-4c8c-924f-5c0267a74452" xlink:to="loc_srt_ConsolidatedEntitiesDomain_5c9fa2c0-25ad-4c8c-924f-5c0267a74452_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_ed0251a3-5ec7-4ead-a756-69e927dcd8cf" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5c9fa2c0-25ad-4c8c-924f-5c0267a74452" xlink:to="loc_srt_ConsolidatedEntitiesDomain_ed0251a3-5ec7-4ead-a756-69e927dcd8cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_f4fcff18-0d69-49d6-9f0c-697597f0a036" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_ed0251a3-5ec7-4ead-a756-69e927dcd8cf" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_f4fcff18-0d69-49d6-9f0c-697597f0a036" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetWeightedAverageMaturitiesandInterestRatesofBorrowingsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetWeightedAverageMaturitiesandInterestRatesofBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetWeightedAverageMaturitiesandInterestRatesofBorrowingsDetails" xlink:type="extended" id="ic87cc3e6d1014d4e8d4990eb4f067f68_SecuredDebtArrangementsNetWeightedAverageMaturitiesandInterestRatesofBorrowingsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_bffe95e3-0491-417a-89d3-952279997253" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_bffe95e3-0491-417a-89d3-952279997253" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_2924aa8e-a3d1-4654-969d-f2772a887b94" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_2924aa8e-a3d1-4654-969d-f2772a887b94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_cb59b512-be2a-40f2-9b88-faaf96351077" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_cb59b512-be2a-40f2-9b88-faaf96351077" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCurrencyConversionRate_d4c699f0-d9a9-4efd-b3ba-930d8066e9e1" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCurrencyConversionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_ari_DebtInstrumentCurrencyConversionRate_d4c699f0-d9a9-4efd-b3ba-930d8066e9e1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentAmortizationPeriod_59410f21-0a95-44cc-8b91-240c36c466a5" xlink:href="ari-20230331.xsd#ari_DebtInstrumentAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_ari_DebtInstrumentAmortizationPeriod_59410f21-0a95-44cc-8b91-240c36c466a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_3eedbce0-b2de-4ab5-8621-56b175aa6073" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_3eedbce0-b2de-4ab5-8621-56b175aa6073" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentAdvanceRate_2c79b8e1-9ec0-4ae0-af04-73464f3506a9" xlink:href="ari-20230331.xsd#ari_DebtInstrumentAdvanceRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_ari_DebtInstrumentAdvanceRate_2c79b8e1-9ec0-4ae0-af04-73464f3506a9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentRecourseDebtPercent_5f12cb20-4f44-4ce2-a8aa-17047aadba9d" xlink:href="ari-20230331.xsd#ari_DebtInstrumentRecourseDebtPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_ari_DebtInstrumentRecourseDebtPercent_5f12cb20-4f44-4ce2-a8aa-17047aadba9d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_30fde694-793a-4318-a46e-7ffc8c4d7f46" xlink:to="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_baab980f-f07b-40f6-8621-99c5c3562480" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_srt_ConsolidatedEntitiesAxis_baab980f-f07b-40f6-8621-99c5c3562480" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_baab980f-f07b-40f6-8621-99c5c3562480_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_baab980f-f07b-40f6-8621-99c5c3562480" xlink:to="loc_srt_ConsolidatedEntitiesDomain_baab980f-f07b-40f6-8621-99c5c3562480_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_e1ee2747-985c-4806-a626-7f5e679dc9aa" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_baab980f-f07b-40f6-8621-99c5c3562480" xlink:to="loc_srt_ConsolidatedEntitiesDomain_e1ee2747-985c-4806-a626-7f5e679dc9aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_58cdd558-0f18-463c-9443-a9445fe8316a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_e1ee2747-985c-4806-a626-7f5e679dc9aa" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_58cdd558-0f18-463c-9443-a9445fe8316a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_3d997910-ef41-4264-bb70-1196f3923219" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_srt_CurrencyAxis_3d997910-ef41-4264-bb70-1196f3923219" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_3d997910-ef41-4264-bb70-1196f3923219_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_3d997910-ef41-4264-bb70-1196f3923219" xlink:to="loc_currency_AllCurrenciesDomain_3d997910-ef41-4264-bb70-1196f3923219_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_3d997910-ef41-4264-bb70-1196f3923219" xlink:to="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_USD_a4721216-7823-4476-b2ea-e3e046cb9ab4" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_USD"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:to="loc_currency_USD_a4721216-7823-4476-b2ea-e3e046cb9ab4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_GBP_24540e9e-81a3-419e-baae-f83e41b60463" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_GBP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:to="loc_currency_GBP_24540e9e-81a3-419e-baae-f83e41b60463" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_6902ad52-2417-4ef5-9f5a-90e154e21e75" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:to="loc_currency_EUR_6902ad52-2417-4ef5-9f5a-90e154e21e75" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_SEK_daf22ca2-6dc3-424c-867e-0c375fc0476e" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_SEK"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_353017dd-ba96-476e-940f-b9eef79a9564" xlink:to="loc_currency_SEK_daf22ca2-6dc3-424c-867e-0c375fc0476e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_4e3408a6-b121-4d51-9a01-3cc2ad7f050a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_us-gaap_CreditFacilityAxis_4e3408a6-b121-4d51-9a01-3cc2ad7f050a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_4e3408a6-b121-4d51-9a01-3cc2ad7f050a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_4e3408a6-b121-4d51-9a01-3cc2ad7f050a" xlink:to="loc_us-gaap_CreditFacilityDomain_4e3408a6-b121-4d51-9a01-3cc2ad7f050a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_87246bac-8a87-4574-8a40-84be1bf0e9d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_4e3408a6-b121-4d51-9a01-3cc2ad7f050a" xlink:to="loc_us-gaap_CreditFacilityDomain_87246bac-8a87-4574-8a40-84be1bf0e9d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_dc3ff219-a563-47be-902b-c6938e097298" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_87246bac-8a87-4574-8a40-84be1bf0e9d8" xlink:to="loc_us-gaap_LineOfCreditMember_dc3ff219-a563-47be-902b-c6938e097298" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_dea876f5-7c4e-468b-b2e8-1393fd75ffd8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_dea876f5-7c4e-468b-b2e8-1393fd75ffd8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_dea876f5-7c4e-468b-b2e8-1393fd75ffd8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_dea876f5-7c4e-468b-b2e8-1393fd75ffd8" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_dea876f5-7c4e-468b-b2e8-1393fd75ffd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_08a3447e-3429-474a-b639-64fa35207d27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_dea876f5-7c4e-468b-b2e8-1393fd75ffd8" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_08a3447e-3429-474a-b639-64fa35207d27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:href="ari-20230331.xsd#ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_08a3447e-3429-474a-b639-64fa35207d27" xlink:to="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JPMorganChaseMember_19867557-8501-4cbc-9e84-9efe5faf52c2" xlink:href="ari-20230331.xsd#ari_JPMorganChaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_JPMorganChaseMember_19867557-8501-4cbc-9e84-9efe5faf52c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DeutscheBankRepurchaseFacilityMember_cb999d65-349c-448f-af2c-6ff65966dbae" xlink:href="ari-20230331.xsd#ari_DeutscheBankRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_DeutscheBankRepurchaseFacilityMember_cb999d65-349c-448f-af2c-6ff65966dbae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CreditSuisseFacilityMember_979a5cf6-a326-4a50-9cc8-2404165885a7" xlink:href="ari-20230331.xsd#ari_CreditSuisseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_CreditSuisseFacilityMember_979a5cf6-a326-4a50-9cc8-2404165885a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HSBCFacilityMember_9bc23973-170e-4918-bf35-d1a28849432b" xlink:href="ari-20230331.xsd#ari_HSBCFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_HSBCFacilityMember_9bc23973-170e-4918-bf35-d1a28849432b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GoldmanSachsRepurchaseFacilityMember_d8279272-efe7-4217-b915-1cce97448b41" xlink:href="ari-20230331.xsd#ari_GoldmanSachsRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_GoldmanSachsRepurchaseFacilityMember_d8279272-efe7-4217-b915-1cce97448b41" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysFacilityMember_88ea7842-234d-4cdb-a687-458f2c4cbde6" xlink:href="ari-20230331.xsd#ari_BarclaysFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_BarclaysFacilityMember_88ea7842-234d-4cdb-a687-458f2c4cbde6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MUFGFacilityMember_cd139e88-875f-45c9-b29a-ffb0139cae76" xlink:href="ari-20230331.xsd#ari_MUFGFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_MUFGFacilityMember_cd139e88-875f-45c9-b29a-ffb0139cae76" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SantanderFacilityMember_2d0832a1-7010-499e-8cce-5b2a248cb8c6" xlink:href="ari-20230331.xsd#ari_SantanderFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_SantanderFacilityMember_2d0832a1-7010-499e-8cce-5b2a248cb8c6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_9b2a91f6-6ceb-4077-b1e5-092a91ba3007" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityAndHSBCFacilitiesMember_5e8adfa5-505f-498a-9b5c-841ab16ffd94" xlink:to="loc_ari_BarclaysSecuritizationMember_9b2a91f6-6ceb-4077-b1e5-092a91ba3007" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityHSBCFacilitiesAndBarclaysSecuritizationMember_1c394861-ef0b-4c80-891c-883e853b9655" xlink:href="ari-20230331.xsd#ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityHSBCFacilitiesAndBarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_08a3447e-3429-474a-b639-64fa35207d27" xlink:to="loc_ari_JPMorganChaseDBRepurchaseFacilityGoldmanSachsCreditSuisseBarclaysFacilityHSBCFacilitiesAndBarclaysSecuritizationMember_1c394861-ef0b-4c80-891c-883e853b9655" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_38165d5d-721b-4abf-9416-f9dffde8394f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_us-gaap_VariableRateAxis_38165d5d-721b-4abf-9416-f9dffde8394f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_38165d5d-721b-4abf-9416-f9dffde8394f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_38165d5d-721b-4abf-9416-f9dffde8394f" xlink:to="loc_us-gaap_VariableRateDomain_38165d5d-721b-4abf-9416-f9dffde8394f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_38165d5d-721b-4abf-9416-f9dffde8394f" xlink:to="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_36b1c937-fbdc-4589-9924-6a97706305d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_36b1c937-fbdc-4589-9924-6a97706305d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GBPLondonInterbankOfferedRateLIBORMember_3f8f1730-2773-4e27-be1a-082f62d1e2ef" xlink:href="ari-20230331.xsd#ari_GBPLondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:to="loc_ari_GBPLondonInterbankOfferedRateLIBORMember_3f8f1730-2773-4e27-be1a-082f62d1e2ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_EURLondonInterbankOfferedRateLIBORMember_3aa67644-fd1e-4f57-b512-11263fb6f7fa" xlink:href="ari-20230331.xsd#ari_EURLondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:to="loc_ari_EURLondonInterbankOfferedRateLIBORMember_3aa67644-fd1e-4f57-b512-11263fb6f7fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SEKLondonInterbankOfferedRateLIBORMember_d2ba119a-d6b7-4515-bd0e-d1c6c713ba63" xlink:href="ari-20230331.xsd#ari_SEKLondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a18f8e0a-5f5d-4940-984d-c5e0051d7dfc" xlink:to="loc_ari_SEKLondonInterbankOfferedRateLIBORMember_d2ba119a-d6b7-4515-bd0e-d1c6c713ba63" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_srt_RangeAxis_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca" xlink:to="loc_srt_RangeMember_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1bc47e8b-0e7c-47dd-8b63-d744a63af11a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_4d5d98be-19c1-4a0c-8e3f-7df5ed6970ca" xlink:to="loc_srt_RangeMember_1bc47e8b-0e7c-47dd-8b63-d744a63af11a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_cdd83f5c-0037-4f0a-933a-824dd2575652" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1bc47e8b-0e7c-47dd-8b63-d744a63af11a" xlink:to="loc_srt_WeightedAverageMember_cdd83f5c-0037-4f0a-933a-824dd2575652" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_e38191a6-0b17-444a-8b81-4dc6a4f2184d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_871e3af9-99ac-4617-abe0-0571720a4ab5" xlink:to="loc_us-gaap_DebtInstrumentAxis_e38191a6-0b17-444a-8b81-4dc6a4f2184d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e38191a6-0b17-444a-8b81-4dc6a4f2184d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_e38191a6-0b17-444a-8b81-4dc6a4f2184d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e38191a6-0b17-444a-8b81-4dc6a4f2184d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_4ab9191a-4ee0-477f-b980-e8950e687377" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_e38191a6-0b17-444a-8b81-4dc6a4f2184d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4ab9191a-4ee0-477f-b980-e8950e687377" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AmendedandRestatedJPMorganFacilityMember_99383d48-fca3-419d-b9a0-1636b61043a5" xlink:href="ari-20230331.xsd#ari_AmendedandRestatedJPMorganFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4ab9191a-4ee0-477f-b980-e8950e687377" xlink:to="loc_ari_AmendedandRestatedJPMorganFacilityMember_99383d48-fca3-419d-b9a0-1636b61043a5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetCommercialMortgageLoansPledgedtotheBarclaysPrivateSecuritizationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetCommercialMortgageLoansPledgedtotheBarclaysPrivateSecuritizationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetCommercialMortgageLoansPledgedtotheBarclaysPrivateSecuritizationDetails" xlink:type="extended" id="ie2c4cd7b063d472fb7ad4cdb40b36b98_SecuredDebtArrangementsNetCommercialMortgageLoansPledgedtotheBarclaysPrivateSecuritizationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_8257fd97-e835-4154-845d-cfdade91221f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfMortgageLoans_ede26ba0-694e-400f-bd7f-92889e28ea4b" xlink:href="ari-20230331.xsd#ari_NumberOfMortgageLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_8257fd97-e835-4154-845d-cfdade91221f" xlink:to="loc_ari_NumberOfMortgageLoans_ede26ba0-694e-400f-bd7f-92889e28ea4b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_6f9fa9a0-c52e-4a46-8ce4-ee4f9608bc8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_8257fd97-e835-4154-845d-cfdade91221f" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_6f9fa9a0-c52e-4a46-8ce4-ee4f9608bc8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_b59f35a2-bd4f-4899-8e20-014a868c6a64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_8257fd97-e835-4154-845d-cfdade91221f" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_b59f35a2-bd4f-4899-8e20-014a868c6a64" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_8257fd97-e835-4154-845d-cfdade91221f" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_e5fed4fa-27d3-4a3c-a512-5279bf1d1726" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:to="loc_srt_ConsolidatedEntitiesAxis_e5fed4fa-27d3-4a3c-a512-5279bf1d1726" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_e5fed4fa-27d3-4a3c-a512-5279bf1d1726_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_e5fed4fa-27d3-4a3c-a512-5279bf1d1726" xlink:to="loc_srt_ConsolidatedEntitiesDomain_e5fed4fa-27d3-4a3c-a512-5279bf1d1726_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_2150f5f0-e8ad-4b1e-ad83-6f07961e58bd" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_e5fed4fa-27d3-4a3c-a512-5279bf1d1726" xlink:to="loc_srt_ConsolidatedEntitiesDomain_2150f5f0-e8ad-4b1e-ad83-6f07961e58bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_4abf9a37-7f24-4991-8c2b-953dcc392593" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_2150f5f0-e8ad-4b1e-ad83-6f07961e58bd" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_4abf9a37-7f24-4991-8c2b-953dcc392593" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:to="loc_srt_CurrencyAxis_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e" xlink:to="loc_currency_AllCurrenciesDomain_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_75c9365a-cf1a-468b-9510-01f7c24dfb2d" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_f3b39cf9-fee0-48f7-8a7c-3f441feabc5e" xlink:to="loc_currency_AllCurrenciesDomain_75c9365a-cf1a-468b-9510-01f7c24dfb2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_GBP_fbbbbb46-b32a-4d0b-8e5d-737f28853964" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_GBP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_75c9365a-cf1a-468b-9510-01f7c24dfb2d" xlink:to="loc_currency_GBP_fbbbbb46-b32a-4d0b-8e5d-737f28853964" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_e85dad8b-bc1c-4fbc-8d56-086a3ab26d93" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_75c9365a-cf1a-468b-9510-01f7c24dfb2d" xlink:to="loc_currency_EUR_e85dad8b-bc1c-4fbc-8d56-086a3ab26d93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_SEK_be941d32-8c2f-4c77-a31a-988f648a3af8" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_SEK"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_75c9365a-cf1a-468b-9510-01f7c24dfb2d" xlink:to="loc_currency_SEK_be941d32-8c2f-4c77-a31a-988f648a3af8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_c8b4ed1c-2f97-494e-b905-b2413bb76482" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:to="loc_us-gaap_CreditFacilityAxis_c8b4ed1c-2f97-494e-b905-b2413bb76482" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_c8b4ed1c-2f97-494e-b905-b2413bb76482_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_c8b4ed1c-2f97-494e-b905-b2413bb76482" xlink:to="loc_us-gaap_CreditFacilityDomain_c8b4ed1c-2f97-494e-b905-b2413bb76482_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_e46deb95-2df2-49c8-9006-6db7b5a6f1e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_c8b4ed1c-2f97-494e-b905-b2413bb76482" xlink:to="loc_us-gaap_CreditFacilityDomain_e46deb95-2df2-49c8-9006-6db7b5a6f1e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_dd9fbc0a-70c5-47a4-98a3-4cd7190e91e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_e46deb95-2df2-49c8-9006-6db7b5a6f1e1" xlink:to="loc_us-gaap_LineOfCreditMember_dd9fbc0a-70c5-47a4-98a3-4cd7190e91e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_7bbbf2a8-605c-4e36-805e-59c6adba171c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_50c67ad3-9d62-4cea-8aad-6ebe9df37c37" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_7bbbf2a8-605c-4e36-805e-59c6adba171c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_7bbbf2a8-605c-4e36-805e-59c6adba171c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_7bbbf2a8-605c-4e36-805e-59c6adba171c" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_7bbbf2a8-605c-4e36-805e-59c6adba171c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_fb04e34a-da83-40a5-bd5e-6e6b3a10d9fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_7bbbf2a8-605c-4e36-805e-59c6adba171c" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_fb04e34a-da83-40a5-bd5e-6e6b3a10d9fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_08ba4eff-5293-4d29-86da-a4ca505fa332" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_fb04e34a-da83-40a5-bd5e-6e6b3a10d9fb" xlink:to="loc_ari_BarclaysSecuritizationMember_08ba4eff-5293-4d29-86da-a4ca505fa332" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetAssetsUnderBarclaysPrivateSecuritizationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetAssetsUnderBarclaysPrivateSecuritizationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetAssetsUnderBarclaysPrivateSecuritizationDetails" xlink:type="extended" id="ib4dc2d6fb9db43ee8cd9e37399040e01_SecuredDebtArrangementsNetAssetsUnderBarclaysPrivateSecuritizationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_918179fb-96b6-4ab3-940a-951414c901ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_337c20f6-a5a6-4916-ae9e-589b824a7c66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_918179fb-96b6-4ab3-940a-951414c901ed" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_337c20f6-a5a6-4916-ae9e-589b824a7c66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentFacilityFeaturePeriod_7275f485-3fb8-4c00-aa7f-bceab1d2ed67" xlink:href="ari-20230331.xsd#ari_DebtInstrumentFacilityFeaturePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_918179fb-96b6-4ab3-940a-951414c901ed" xlink:to="loc_ari_DebtInstrumentFacilityFeaturePeriod_7275f485-3fb8-4c00-aa7f-bceab1d2ed67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_918179fb-96b6-4ab3-940a-951414c901ed" xlink:to="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_84dc451e-4ea3-4600-a18f-96847d7c9640" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:to="loc_srt_RangeAxis_84dc451e-4ea3-4600-a18f-96847d7c9640" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_84dc451e-4ea3-4600-a18f-96847d7c9640_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_84dc451e-4ea3-4600-a18f-96847d7c9640" xlink:to="loc_srt_RangeMember_84dc451e-4ea3-4600-a18f-96847d7c9640_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_db729b3e-6bb7-4335-98f4-6c8a666ed730" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_84dc451e-4ea3-4600-a18f-96847d7c9640" xlink:to="loc_srt_RangeMember_db729b3e-6bb7-4335-98f4-6c8a666ed730" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_842019d0-9169-4e61-9f4b-4ab7ac1bf18e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_db729b3e-6bb7-4335-98f4-6c8a666ed730" xlink:to="loc_srt_WeightedAverageMember_842019d0-9169-4e61-9f4b-4ab7ac1bf18e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_c6af1fda-ad23-4099-9eb1-a34746f4e248" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:to="loc_srt_ConsolidatedEntitiesAxis_c6af1fda-ad23-4099-9eb1-a34746f4e248" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_c6af1fda-ad23-4099-9eb1-a34746f4e248_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c6af1fda-ad23-4099-9eb1-a34746f4e248" xlink:to="loc_srt_ConsolidatedEntitiesDomain_c6af1fda-ad23-4099-9eb1-a34746f4e248_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_7b80684d-1d4f-49a4-89cd-c38a4da87c53" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c6af1fda-ad23-4099-9eb1-a34746f4e248" xlink:to="loc_srt_ConsolidatedEntitiesDomain_7b80684d-1d4f-49a4-89cd-c38a4da87c53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_8af3a6ba-2ecb-441c-b41c-694dfb2a21f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_7b80684d-1d4f-49a4-89cd-c38a4da87c53" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_8af3a6ba-2ecb-441c-b41c-694dfb2a21f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_9cfa1d60-7965-484c-86c7-83904cd78481" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:to="loc_srt_CurrencyAxis_9cfa1d60-7965-484c-86c7-83904cd78481" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_9cfa1d60-7965-484c-86c7-83904cd78481_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_9cfa1d60-7965-484c-86c7-83904cd78481" xlink:to="loc_currency_AllCurrenciesDomain_9cfa1d60-7965-484c-86c7-83904cd78481_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_e2860e77-91fd-411a-94a1-8565d9c95ce8" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_9cfa1d60-7965-484c-86c7-83904cd78481" xlink:to="loc_currency_AllCurrenciesDomain_e2860e77-91fd-411a-94a1-8565d9c95ce8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_GBP_d62d1ee6-ba27-43ad-999a-bce3d6a60924" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_GBP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_e2860e77-91fd-411a-94a1-8565d9c95ce8" xlink:to="loc_currency_GBP_d62d1ee6-ba27-43ad-999a-bce3d6a60924" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_7da63a8d-aab0-496a-9f1a-943159b7d43f" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_e2860e77-91fd-411a-94a1-8565d9c95ce8" xlink:to="loc_currency_EUR_7da63a8d-aab0-496a-9f1a-943159b7d43f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_SEK_5ca3bbef-a5c7-4584-9098-e3c574a423ca" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_SEK"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_e2860e77-91fd-411a-94a1-8565d9c95ce8" xlink:to="loc_currency_SEK_5ca3bbef-a5c7-4584-9098-e3c574a423ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_be3cf849-39c8-4e18-bbaf-a9105601c559" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_be3cf849-39c8-4e18-bbaf-a9105601c559" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_be3cf849-39c8-4e18-bbaf-a9105601c559_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_be3cf849-39c8-4e18-bbaf-a9105601c559" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_be3cf849-39c8-4e18-bbaf-a9105601c559_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_37a27276-2009-4dc8-bee7-83fc80b405d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_be3cf849-39c8-4e18-bbaf-a9105601c559" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_37a27276-2009-4dc8-bee7-83fc80b405d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_36dafd27-640b-4822-bd2c-a32e40cf7f68" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_37a27276-2009-4dc8-bee7-83fc80b405d3" xlink:to="loc_ari_BarclaysSecuritizationMember_36dafd27-640b-4822-bd2c-a32e40cf7f68" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_e8eea1ed-be6d-4d47-9a0c-860e003b4f22" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f71e1f7b-c082-4cbf-92e5-d0fad8a84c88" xlink:to="loc_us-gaap_CreditFacilityAxis_e8eea1ed-be6d-4d47-9a0c-860e003b4f22" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_e8eea1ed-be6d-4d47-9a0c-860e003b4f22_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_e8eea1ed-be6d-4d47-9a0c-860e003b4f22" xlink:to="loc_us-gaap_CreditFacilityDomain_e8eea1ed-be6d-4d47-9a0c-860e003b4f22_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_935d8d5f-d472-49d0-a1dd-5a1f5265b62d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_e8eea1ed-be6d-4d47-9a0c-860e003b4f22" xlink:to="loc_us-gaap_CreditFacilityDomain_935d8d5f-d472-49d0-a1dd-5a1f5265b62d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_0c825624-e2bc-402e-80fe-7ba83eb731df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_935d8d5f-d472-49d0-a1dd-5a1f5265b62d" xlink:to="loc_us-gaap_LineOfCreditMember_0c825624-e2bc-402e-80fe-7ba83eb731df" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetScheduleofAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetScheduleofAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetScheduleofAssetsandLiabilitiesDetails" xlink:type="extended" id="i10b758f39a2d4004989c3429c38ebc12_SecuredDebtArrangementsNetScheduleofAssetsandLiabilitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a44f8d5b-3b38-4292-8878-fd29f55ec3ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a44f8d5b-3b38-4292-8878-fd29f55ec3ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_ee34bbaf-a88e-450d-a882-e2b1691a4574" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_ee34bbaf-a88e-450d-a882-e2b1691a4574" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_cc70f014-eda0-45cf-83e4-2c37614a87b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:to="loc_us-gaap_OtherAssets_cc70f014-eda0-45cf-83e4-2c37614a87b4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_8daa239a-454a-4e31-b891-5691f266dd85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_443a5f87-08ee-46c4-9712-1eeb52471d15" xlink:to="loc_us-gaap_Assets_8daa239a-454a-4e31-b891-5691f266dd85" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_fd135665-1e7c-4e08-a5ad-816812ae35c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_LiabilitiesAbstract_fd135665-1e7c-4e08-a5ad-816812ae35c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_63c57edd-d84f-44a9-8c23-03e7dd080341" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_fd135665-1e7c-4e08-a5ad-816812ae35c7" xlink:to="loc_us-gaap_LongTermDebt_63c57edd-d84f-44a9-8c23-03e7dd080341" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayableAccruedLiabilitiesAndOtherLiabilities_ea0b1768-6a17-4dfd-a9e6-d89ad3868095" xlink:href="ari-20230331.xsd#ari_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_fd135665-1e7c-4e08-a5ad-816812ae35c7" xlink:to="loc_ari_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayableAccruedLiabilitiesAndOtherLiabilities_ea0b1768-6a17-4dfd-a9e6-d89ad3868095" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_e051486c-4d8f-44ac-859a-85d06efa0302" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_fd135665-1e7c-4e08-a5ad-816812ae35c7" xlink:to="loc_us-gaap_Liabilities_e051486c-4d8f-44ac-859a-85d06efa0302" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsNet_c26a5d6f-cc74-4a0c-8079-e6b7ca26d904" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtIssuanceCostsLineOfCreditArrangementsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsNet_c26a5d6f-cc74-4a0c-8079-e6b7ca26d904" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df6aac47-6456-49b2-99fd-8a47f2d33159" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df6aac47-6456-49b2-99fd-8a47f2d33159" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_c3130e3e-041f-46d8-b58e-6744c7293c62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_c3130e3e-041f-46d8-b58e-6744c7293c62" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_8a8c0c57-37c9-4a3e-a382-c2b9eef76bc7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_a094ee54-db4c-4675-be38-7f5876c5ac67" xlink:to="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_8a8c0c57-37c9-4a3e-a382-c2b9eef76bc7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_ca5fd105-761b-463f-80a9-9f15f08b339f" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_8a8c0c57-37c9-4a3e-a382-c2b9eef76bc7" xlink:to="loc_srt_ConsolidatedEntitiesAxis_ca5fd105-761b-463f-80a9-9f15f08b339f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_ca5fd105-761b-463f-80a9-9f15f08b339f_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ca5fd105-761b-463f-80a9-9f15f08b339f" xlink:to="loc_srt_ConsolidatedEntitiesDomain_ca5fd105-761b-463f-80a9-9f15f08b339f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_415d1ced-bd00-4477-bcbc-c28d6bce3555" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ca5fd105-761b-463f-80a9-9f15f08b339f" xlink:to="loc_srt_ConsolidatedEntitiesDomain_415d1ced-bd00-4477-bcbc-c28d6bce3555" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_d13adf06-030c-437b-8119-b1406acb6bab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_415d1ced-bd00-4477-bcbc-c28d6bce3555" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_d13adf06-030c-437b-8119-b1406acb6bab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a1656eb4-344a-4743-863d-cfe2c8328d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_8a8c0c57-37c9-4a3e-a382-c2b9eef76bc7" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a1656eb4-344a-4743-863d-cfe2c8328d0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a1656eb4-344a-4743-863d-cfe2c8328d0e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a1656eb4-344a-4743-863d-cfe2c8328d0e" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a1656eb4-344a-4743-863d-cfe2c8328d0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_00b0f1d6-2638-4a74-bfe6-ede4f9475d8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a1656eb4-344a-4743-863d-cfe2c8328d0e" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_00b0f1d6-2638-4a74-bfe6-ede4f9475d8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_c99aefac-ab50-4a89-b68a-853d70430dee" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_00b0f1d6-2638-4a74-bfe6-ede4f9475d8d" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_c99aefac-ab50-4a89-b68a-853d70430dee" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetScheduleofNetIncomeDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetScheduleofNetIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetScheduleofNetIncomeDetails" xlink:type="extended" id="i440f0385883d4893a401a88bd45b479b_SecuredDebtArrangementsNetScheduleofNetIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_1bca78a7-a620-42d2-afea-34c575c52864" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndFeeIncomeLoansCommercial"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_1bca78a7-a620-42d2-afea-34c575c52864" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_01bae98b-f12d-487d-a981-1060b07fb2d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_InterestExpense_01bae98b-f12d-487d-a981-1060b07fb2d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_ef641b45-301f-4c8d-a0aa-27b95eb6a7ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_ef641b45-301f-4c8d-a0aa-27b95eb6a7ec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_425c8a05-b73a-458d-bf64-532490daa621" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_425c8a05-b73a-458d-bf64-532490daa621" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_05f95f5b-b05a-4ad1-b0c0-624784bee835" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_05f95f5b-b05a-4ad1-b0c0-624784bee835" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_1bfe5eac-0389-4ceb-90f3-eb94ed8ea787" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_NetIncomeLoss_1bfe5eac-0389-4ceb-90f3-eb94ed8ea787" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_4772e163-f48a-4b93-9395-417c822c6294" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleLineItems_98eb2885-05fd-433a-a5f0-5256f585916f" xlink:to="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_4772e163-f48a-4b93-9395-417c822c6294" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_bf4787af-152f-46bf-9f1f-b4ad887817eb" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleTable_4772e163-f48a-4b93-9395-417c822c6294" xlink:to="loc_srt_ConsolidatedEntitiesAxis_bf4787af-152f-46bf-9f1f-b4ad887817eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_bf4787af-152f-46bf-9f1f-b4ad887817eb_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_bf4787af-152f-46bf-9f1f-b4ad887817eb" xlink:to="loc_srt_ConsolidatedEntitiesDomain_bf4787af-152f-46bf-9f1f-b4ad887817eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_0f249162-95f4-4aca-977f-4a6d6f8fe017" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_bf4787af-152f-46bf-9f1f-b4ad887817eb" xlink:to="loc_srt_ConsolidatedEntitiesDomain_0f249162-95f4-4aca-977f-4a6d6f8fe017" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_3dd8e0cd-64d8-41a7-ae63-c5e9fc06261c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_0f249162-95f4-4aca-977f-4a6d6f8fe017" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_3dd8e0cd-64d8-41a7-ae63-c5e9fc06261c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails" xlink:type="extended" id="icde8434408544681bb000e0b9ff4ba90_SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_ce379413-75f3-48e5-ba23-d204612118d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_ce379413-75f3-48e5-ba23-d204612118d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_92d59eb4-d6ca-4cab-8865-207ebcbb0fa7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturingInYearsTwoAndThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_92d59eb4-d6ca-4cab-8865-207ebcbb0fa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_757f12a2-bce9-49a2-9571-e22a10d176fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturingInYearsFourAndFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_757f12a2-bce9-49a2-9571-e22a10d176fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_382c0aec-2844-413b-81af-0171c6b859b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_382c0aec-2844-413b-81af-0171c6b859b2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_1302b38d-8576-4873-b7e9-80e80fac8fdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LongTermDebt_1302b38d-8576-4873-b7e9-80e80fac8fdd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_f6e7e961-2788-45f6-9b4e-6fb3a81683b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0fde0f50-9d94-4d3e-b6ae-7967e9644591" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_f6e7e961-2788-45f6-9b4e-6fb3a81683b7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_2f83f78c-0e75-45de-aafc-a4a44d29cfc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_f6e7e961-2788-45f6-9b4e-6fb3a81683b7" xlink:to="loc_us-gaap_CreditFacilityAxis_2f83f78c-0e75-45de-aafc-a4a44d29cfc5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_2f83f78c-0e75-45de-aafc-a4a44d29cfc5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_2f83f78c-0e75-45de-aafc-a4a44d29cfc5" xlink:to="loc_us-gaap_CreditFacilityDomain_2f83f78c-0e75-45de-aafc-a4a44d29cfc5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_58ad363d-feac-44e9-ac17-246b9594312c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_2f83f78c-0e75-45de-aafc-a4a44d29cfc5" xlink:to="loc_us-gaap_CreditFacilityDomain_58ad363d-feac-44e9-ac17-246b9594312c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_ea58a00d-5e56-44df-b958-e5049ec22065" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_58ad363d-feac-44e9-ac17-246b9594312c" xlink:to="loc_us-gaap_LineOfCreditMember_ea58a00d-5e56-44df-b958-e5049ec22065" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_c881616c-fa1a-4673-a1d2-6e039e930763" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_f6e7e961-2788-45f6-9b4e-6fb3a81683b7" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_c881616c-fa1a-4673-a1d2-6e039e930763" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_c881616c-fa1a-4673-a1d2-6e039e930763_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_c881616c-fa1a-4673-a1d2-6e039e930763" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_c881616c-fa1a-4673-a1d2-6e039e930763_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_c881616c-fa1a-4673-a1d2-6e039e930763" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JPMorganChaseMember_5a6657be-01dc-42c6-bfba-afb19738cfb1" xlink:href="ari-20230331.xsd#ari_JPMorganChaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_JPMorganChaseMember_5a6657be-01dc-42c6-bfba-afb19738cfb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DeutscheBankRepurchaseFacilityMember_35cbd3f5-eb3a-4a66-bf33-d2913c5be7e3" xlink:href="ari-20230331.xsd#ari_DeutscheBankRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_DeutscheBankRepurchaseFacilityMember_35cbd3f5-eb3a-4a66-bf33-d2913c5be7e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GoldmanSachsRepurchaseFacilityMember_0c2eb885-b65e-47dd-bcc4-2fe45a4af2ba" xlink:href="ari-20230331.xsd#ari_GoldmanSachsRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_GoldmanSachsRepurchaseFacilityMember_0c2eb885-b65e-47dd-bcc4-2fe45a4af2ba" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CreditSuisseFacilityMember_033deb61-b6af-4f5d-a6d8-fc02499231ef" xlink:href="ari-20230331.xsd#ari_CreditSuisseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_CreditSuisseFacilityMember_033deb61-b6af-4f5d-a6d8-fc02499231ef" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HSBCFacilityMember_1d76376d-78fa-4b06-8949-5bb2cb486683" xlink:href="ari-20230331.xsd#ari_HSBCFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_HSBCFacilityMember_1d76376d-78fa-4b06-8949-5bb2cb486683" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysFacilityMember_e90e2687-6399-4540-9426-36aa1d91b62f" xlink:href="ari-20230331.xsd#ari_BarclaysFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_BarclaysFacilityMember_e90e2687-6399-4540-9426-36aa1d91b62f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MUFGFacilityMember_c7ac4577-2299-47fc-96cb-ddacc9bec1a8" xlink:href="ari-20230331.xsd#ari_MUFGFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_MUFGFacilityMember_c7ac4577-2299-47fc-96cb-ddacc9bec1a8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SantanderFacilityMember_df9dcf03-ce55-4914-81e9-de7a41e4abe1" xlink:href="ari-20230331.xsd#ari_SantanderFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_SantanderFacilityMember_df9dcf03-ce55-4914-81e9-de7a41e4abe1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_f9c038a1-b1ca-4d54-ae57-35dbfad80134" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_a6aafdbf-79df-45db-9235-f0a916050db6" xlink:to="loc_ari_BarclaysSecuritizationMember_f9c038a1-b1ca-4d54-ae57-35dbfad80134" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_2ad16e63-711f-4fde-a0ab-01f7ba46695a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_f6e7e961-2788-45f6-9b4e-6fb3a81683b7" xlink:to="loc_srt_CurrencyAxis_2ad16e63-711f-4fde-a0ab-01f7ba46695a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_2ad16e63-711f-4fde-a0ab-01f7ba46695a_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_2ad16e63-711f-4fde-a0ab-01f7ba46695a" xlink:to="loc_currency_AllCurrenciesDomain_2ad16e63-711f-4fde-a0ab-01f7ba46695a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_70ef62fc-4396-41f5-828e-756f97a94cb8" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_2ad16e63-711f-4fde-a0ab-01f7ba46695a" xlink:to="loc_currency_AllCurrenciesDomain_70ef62fc-4396-41f5-828e-756f97a94cb8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_USD_a5f5f7b8-37cd-4759-867b-23e83147f606" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_USD"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_70ef62fc-4396-41f5-828e-756f97a94cb8" xlink:to="loc_currency_USD_a5f5f7b8-37cd-4759-867b-23e83147f606" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_769d0c57-6576-47d7-b055-8b40cbc1bac1" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_70ef62fc-4396-41f5-828e-756f97a94cb8" xlink:to="loc_currency_EUR_769d0c57-6576-47d7-b055-8b40cbc1bac1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetSummaryofOutstandingBalancesMaximumandAverageBalancesofBorrowingsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SecuredDebtArrangementsNetSummaryofOutstandingBalancesMaximumandAverageBalancesofBorrowingsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetSummaryofOutstandingBalancesMaximumandAverageBalancesofBorrowingsDetails" xlink:type="extended" id="i185f5b8ec9c64d90b06f6856925266fc_SecuredDebtArrangementsNetSummaryofOutstandingBalancesMaximumandAverageBalancesofBorrowingsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_52104c85-18f1-48f1-b5e0-7ae284e96f37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_52104c85-18f1-48f1-b5e0-7ae284e96f37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SecuritiesSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateral_9e3a7fa9-907a-4a1e-b0a6-aa57a304de31" xlink:href="ari-20230331.xsd#ari_SecuritiesSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateral"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:to="loc_ari_SecuritiesSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateral_9e3a7fa9-907a-4a1e-b0a6-aa57a304de31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumMonthendOutstandingAmount_d0b9322d-7788-48af-a184-11578fac2449" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumMonthendOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumMonthendOutstandingAmount_d0b9322d-7788-48af-a184-11578fac2449" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAverageOutstandingAmount_1491a828-eca1-4ce0-9a6a-abd618c0ea0d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAverageOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:to="loc_us-gaap_LineOfCreditFacilityAverageOutstandingAmount_1491a828-eca1-4ce0-9a6a-abd618c0ea0d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_ab379c91-1bf8-4949-9e8c-00946a2419fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6c122f8b-3828-422f-837b-c27d3bdfcfd8" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_ab379c91-1bf8-4949-9e8c-00946a2419fb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_7b4618e2-a28c-4a01-a901-434fc233c140" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ab379c91-1bf8-4949-9e8c-00946a2419fb" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_7b4618e2-a28c-4a01-a901-434fc233c140" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_7b4618e2-a28c-4a01-a901-434fc233c140_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_7b4618e2-a28c-4a01-a901-434fc233c140" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_7b4618e2-a28c-4a01-a901-434fc233c140_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_7b4618e2-a28c-4a01-a901-434fc233c140" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JPMorganChaseMember_e778f9c4-d6a0-4c82-8473-e0ce132c5b5e" xlink:href="ari-20230331.xsd#ari_JPMorganChaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_JPMorganChaseMember_e778f9c4-d6a0-4c82-8473-e0ce132c5b5e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DeutscheBankRepurchaseFacilityMember_4612097b-e29b-41b5-88dd-e5d14c47359e" xlink:href="ari-20230331.xsd#ari_DeutscheBankRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_DeutscheBankRepurchaseFacilityMember_4612097b-e29b-41b5-88dd-e5d14c47359e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GoldmanSachsRepurchaseFacilityMember_dc866d50-f59d-4f27-ad36-30343dadf7f5" xlink:href="ari-20230331.xsd#ari_GoldmanSachsRepurchaseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_GoldmanSachsRepurchaseFacilityMember_dc866d50-f59d-4f27-ad36-30343dadf7f5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CreditSuisseFacilityMember_85650c82-1391-49e1-879b-5ac3e8c9d959" xlink:href="ari-20230331.xsd#ari_CreditSuisseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_CreditSuisseFacilityMember_85650c82-1391-49e1-879b-5ac3e8c9d959" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HSBCFacilityMember_597f38bd-29d8-47a9-ab1e-0eef1f5c83b2" xlink:href="ari-20230331.xsd#ari_HSBCFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_HSBCFacilityMember_597f38bd-29d8-47a9-ab1e-0eef1f5c83b2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysFacilityMember_d0b6ae21-973e-48e2-80be-60133b5761f1" xlink:href="ari-20230331.xsd#ari_BarclaysFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_BarclaysFacilityMember_d0b6ae21-973e-48e2-80be-60133b5761f1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SantanderFacilityMember_b531b89b-424f-4709-a959-2ad18482e320" xlink:href="ari-20230331.xsd#ari_SantanderFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_SantanderFacilityMember_b531b89b-424f-4709-a959-2ad18482e320" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_BarclaysSecuritizationMember_3a4a8ea5-cd6f-4422-9196-5e95c193776a" xlink:href="ari-20230331.xsd#ari_BarclaysSecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_BarclaysSecuritizationMember_3a4a8ea5-cd6f-4422-9196-5e95c193776a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MUFGFacilityMember_c7b52718-6de1-4a8c-95ee-10dd961cc8fb" xlink:href="ari-20230331.xsd#ari_MUFGFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_446d0556-dde5-47cd-a0b6-96d86ed517f0" xlink:to="loc_ari_MUFGFacilityMember_c7b52718-6de1-4a8c-95ee-10dd961cc8fb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_ca521218-a1fc-4b33-ba97-0862481816e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ab379c91-1bf8-4949-9e8c-00946a2419fb" xlink:to="loc_us-gaap_CreditFacilityAxis_ca521218-a1fc-4b33-ba97-0862481816e9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_ca521218-a1fc-4b33-ba97-0862481816e9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_ca521218-a1fc-4b33-ba97-0862481816e9" xlink:to="loc_us-gaap_CreditFacilityDomain_ca521218-a1fc-4b33-ba97-0862481816e9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_6b520b4a-7e9b-4150-99fb-93cfa9e058ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_ca521218-a1fc-4b33-ba97-0862481816e9" xlink:to="loc_us-gaap_CreditFacilityDomain_6b520b4a-7e9b-4150-99fb-93cfa9e058ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_55d32dcd-e70f-47ae-8eee-fef237bef9a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_6b520b4a-7e9b-4150-99fb-93cfa9e058ab" xlink:to="loc_us-gaap_LineOfCreditMember_55d32dcd-e70f-47ae-8eee-fef237bef9a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_a865715f-abe0-4a05-b7e0-6ed345605b03" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ab379c91-1bf8-4949-9e8c-00946a2419fb" xlink:to="loc_srt_CurrencyAxis_a865715f-abe0-4a05-b7e0-6ed345605b03" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_a865715f-abe0-4a05-b7e0-6ed345605b03_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_a865715f-abe0-4a05-b7e0-6ed345605b03" xlink:to="loc_currency_AllCurrenciesDomain_a865715f-abe0-4a05-b7e0-6ed345605b03_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_9e718580-4082-4a14-b88b-18f8f2b3c4af" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_a865715f-abe0-4a05-b7e0-6ed345605b03" xlink:to="loc_currency_AllCurrenciesDomain_9e718580-4082-4a14-b88b-18f8f2b3c4af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_USD_f6570941-0c64-4e3d-b6ab-6a2c6cfea6c8" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_USD"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_9e718580-4082-4a14-b88b-18f8f2b3c4af" xlink:to="loc_currency_USD_f6570941-0c64-4e3d-b6ab-6a2c6cfea6c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_7097d3a6-fa11-4fc4-a2b8-21ba3aca7fb4" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_9e718580-4082-4a14-b88b-18f8f2b3c4af" xlink:to="loc_currency_EUR_7097d3a6-fa11-4fc4-a2b8-21ba3aca7fb4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SeniorSecuredTermLoanNetNarrativeDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SeniorSecuredTermLoanNetNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SeniorSecuredTermLoanNetNarrativeDetails" xlink:type="extended" id="ibba3d1c568ec4645a159d000cebdc8af_SeniorSecuredTermLoanNetNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_2caa3021-74ac-4077-8fe8-d074bb29c979" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_2caa3021-74ac-4077-8fe8-d074bb29c979" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_ea443c09-5ee8-4e49-8bc5-e03e3a09c804" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_ea443c09-5ee8-4e49-8bc5-e03e3a09c804" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentDiscountRateAtIssuanceOfFaceValue_642393be-0408-4f64-befd-18fcbdadd4c9" xlink:href="ari-20230331.xsd#ari_DebtInstrumentDiscountRateAtIssuanceOfFaceValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_ari_DebtInstrumentDiscountRateAtIssuanceOfFaceValue_642393be-0408-4f64-befd-18fcbdadd4c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RepaymentsOfSecuredDebtAmortizingPercent_3090b414-8d3e-4387-91ff-aa37b47309ec" xlink:href="ari-20230331.xsd#ari_RepaymentsOfSecuredDebtAmortizingPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_ari_RepaymentsOfSecuredDebtAmortizingPercent_3090b414-8d3e-4387-91ff-aa37b47309ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_4446d031-34f9-4a17-8577-9dde91630974" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_4446d031-34f9-4a17-8577-9dde91630974" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantRecourseDebtToTangibleNetWorthRatioMaximum_2cb64aa8-b0bc-4a67-8343-7b79b678192a" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantRecourseDebtToTangibleNetWorthRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_ari_DebtInstrumentCovenantRecourseDebtToTangibleNetWorthRatioMaximum_2cb64aa8-b0bc-4a67-8343-7b79b678192a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentCovenantUnencumberedAssetsToPariPassuIndebtednessRatioMaximum_66dd09ac-9af1-4c6f-a3b2-f58019a6ea31" xlink:href="ari-20230331.xsd#ari_DebtInstrumentCovenantUnencumberedAssetsToPariPassuIndebtednessRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_ari_DebtInstrumentCovenantUnencumberedAssetsToPariPassuIndebtednessRatioMaximum_66dd09ac-9af1-4c6f-a3b2-f58019a6ea31" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_a5cc1b94-97f5-4750-bf2b-2e704a0f5ded" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DebtInstrumentTerm_a5cc1b94-97f5-4750-bf2b-2e704a0f5ded" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFixedInterestRate_27fda9ec-0368-49e3-9e23-ccb815637cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFixedInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DerivativeFixedInterestRate_27fda9ec-0368-49e3-9e23-ccb815637cf0" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_e05a2382-e97e-410c-a2f1-5d0e2e664bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_e05a2382-e97e-410c-a2f1-5d0e2e664bdd" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_f3e747c0-9d07-48bf-9e4c-4a313708fb29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_f3e747c0-9d07-48bf-9e4c-4a313708fb29" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperating_e27b02c4-c2f5-4256-93d7-10664b95fdea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_InterestIncomeOperating_e27b02c4-c2f5-4256-93d7-10664b95fdea" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_33bffbf7-8fd3-4198-9212-c8f11f364407" xlink:to="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b6b36a58-d894-416f-994c-4c302c3411e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b6b36a58-d894-416f-994c-4c302c3411e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b6b36a58-d894-416f-994c-4c302c3411e1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b6b36a58-d894-416f-994c-4c302c3411e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b6b36a58-d894-416f-994c-4c302c3411e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_419ec408-ea8e-4b38-85e5-8931db847aa3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b6b36a58-d894-416f-994c-4c302c3411e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_419ec408-ea8e-4b38-85e5-8931db847aa3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_d239ce41-3870-44da-9b1b-0da1121ee42d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_419ec408-ea8e-4b38-85e5-8931db847aa3" xlink:to="loc_us-gaap_SecuredDebtMember_d239ce41-3870-44da-9b1b-0da1121ee42d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_04709816-c7cc-4faa-a541-d23e95ead98e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:to="loc_us-gaap_VariableRateAxis_04709816-c7cc-4faa-a541-d23e95ead98e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_04709816-c7cc-4faa-a541-d23e95ead98e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_04709816-c7cc-4faa-a541-d23e95ead98e" xlink:to="loc_us-gaap_VariableRateDomain_04709816-c7cc-4faa-a541-d23e95ead98e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_22f57ce1-b752-45f0-b931-da9b6a59b983" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_04709816-c7cc-4faa-a541-d23e95ead98e" xlink:to="loc_us-gaap_VariableRateDomain_22f57ce1-b752-45f0-b931-da9b6a59b983" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_64070e93-6e8a-4f68-8ace-ad84b8356214" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_22f57ce1-b752-45f0-b931-da9b6a59b983" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_64070e93-6e8a-4f68-8ace-ad84b8356214" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_6e5e0837-8053-4336-adae-9917df9320ae" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:to="loc_srt_RangeAxis_6e5e0837-8053-4336-adae-9917df9320ae" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6e5e0837-8053-4336-adae-9917df9320ae_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_6e5e0837-8053-4336-adae-9917df9320ae" xlink:to="loc_srt_RangeMember_6e5e0837-8053-4336-adae-9917df9320ae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d44b4422-401c-4e4c-aa40-0c1f499fec62" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_6e5e0837-8053-4336-adae-9917df9320ae" xlink:to="loc_srt_RangeMember_d44b4422-401c-4e4c-aa40-0c1f499fec62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_803e2884-6d25-402d-9332-1e0b1975fc3c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d44b4422-401c-4e4c-aa40-0c1f499fec62" xlink:to="loc_srt_MinimumMember_803e2884-6d25-402d-9332-1e0b1975fc3c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_1cd7170f-53bd-4480-b0de-7cc00b0c1855" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d44b4422-401c-4e4c-aa40-0c1f499fec62" xlink:to="loc_srt_MaximumMember_1cd7170f-53bd-4480-b0de-7cc00b0c1855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_04f33c68-6bcf-4ffb-bb46-9a44cea282d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_04f33c68-6bcf-4ffb-bb46-9a44cea282d8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_04f33c68-6bcf-4ffb-bb46-9a44cea282d8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_04f33c68-6bcf-4ffb-bb46-9a44cea282d8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_04f33c68-6bcf-4ffb-bb46-9a44cea282d8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_304f6918-a6c6-4b06-8270-5c2dd2f03d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_04f33c68-6bcf-4ffb-bb46-9a44cea282d8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_304f6918-a6c6-4b06-8270-5c2dd2f03d6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_fa697d51-79ea-40fe-954f-c326d6fc9ea7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_304f6918-a6c6-4b06-8270-5c2dd2f03d6c" xlink:to="loc_us-gaap_InterestRateCapMember_fa697d51-79ea-40fe-954f-c326d6fc9ea7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_54cacee7-2597-4157-957d-c63a0b0e64ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f200484c-9f5a-4870-ab9a-e370ea08bca3" xlink:to="loc_us-gaap_DebtInstrumentAxis_54cacee7-2597-4157-957d-c63a0b0e64ca" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_54cacee7-2597-4157-957d-c63a0b0e64ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_54cacee7-2597-4157-957d-c63a0b0e64ca" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_54cacee7-2597-4157-957d-c63a0b0e64ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1b28b74a-d66e-478a-bfe9-bd0fb9a1ad73" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_54cacee7-2597-4157-957d-c63a0b0e64ca" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1b28b74a-d66e-478a-bfe9-bd0fb9a1ad73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2026TermLoanMember_4367b6be-8aeb-4936-a0a8-d3f10980f354" xlink:href="ari-20230331.xsd#ari_A2026TermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b28b74a-d66e-478a-bfe9-bd0fb9a1ad73" xlink:to="loc_ari_A2026TermLoanMember_4367b6be-8aeb-4936-a0a8-d3f10980f354" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2028TermLoanMember_ab1656f2-032e-4179-8e5b-46a1047c425f" xlink:href="ari-20230331.xsd#ari_A2028TermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b28b74a-d66e-478a-bfe9-bd0fb9a1ad73" xlink:to="loc_ari_A2028TermLoanMember_ab1656f2-032e-4179-8e5b-46a1047c425f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SeniorSecuredTermLoanNetTermLoansDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SeniorSecuredTermLoanNetTermLoansDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SeniorSecuredTermLoanNetTermLoansDetails" xlink:type="extended" id="iec3b5a1947c8464196493107f908ebbb_SeniorSecuredTermLoanNetTermLoansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_741baf6b-24f8-4529-9bc9-006ae8ce3e99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_741baf6b-24f8-4529-9bc9-006ae8ce3e99" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_63d795ff-3747-4826-9b47-0b6004a78a26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_63d795ff-3747-4826-9b47-0b6004a78a26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_a7d8f10a-439c-465d-b3b9-3382daa365aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_a7d8f10a-439c-465d-b3b9-3382daa365aa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_7d0ebf22-cdda-45ad-94c7-5b7a6067482d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_LongTermDebt_7d0ebf22-cdda-45ad-94c7-5b7a6067482d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a2fc8b3b-cc17-45b6-905a-ee88ec0d1a66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a2fc8b3b-cc17-45b6-905a-ee88ec0d1a66" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_71039b0e-19b8-41aa-aaca-a8f24cb37548" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fb6936b8-98ec-40e7-b8a7-65a1ff15c1ec" xlink:to="loc_us-gaap_DebtInstrumentTable_71039b0e-19b8-41aa-aaca-a8f24cb37548" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_5487265b-d2ae-401e-baa7-0f10967a0b79" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_71039b0e-19b8-41aa-aaca-a8f24cb37548" xlink:to="loc_us-gaap_DebtInstrumentAxis_5487265b-d2ae-401e-baa7-0f10967a0b79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5487265b-d2ae-401e-baa7-0f10967a0b79_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_5487265b-d2ae-401e-baa7-0f10967a0b79" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5487265b-d2ae-401e-baa7-0f10967a0b79_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8543ec5e-b85d-46ca-9de6-36029b802939" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_5487265b-d2ae-401e-baa7-0f10967a0b79" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8543ec5e-b85d-46ca-9de6-36029b802939" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TotalTermLoansMember_424e3d62-bc56-44ef-a04f-f4a9660cdd02" xlink:href="ari-20230331.xsd#ari_TotalTermLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8543ec5e-b85d-46ca-9de6-36029b802939" xlink:to="loc_ari_TotalTermLoansMember_424e3d62-bc56-44ef-a04f-f4a9660cdd02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2026TermLoanMember_cb9fd998-1739-436e-b697-e2640c49d293" xlink:href="ari-20230331.xsd#ari_A2026TermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_TotalTermLoansMember_424e3d62-bc56-44ef-a04f-f4a9660cdd02" xlink:to="loc_ari_A2026TermLoanMember_cb9fd998-1739-436e-b697-e2640c49d293" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2028TermLoanMember_0ebff134-561d-401a-9e43-51823849f1ca" xlink:href="ari-20230331.xsd#ari_A2028TermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ari_TotalTermLoansMember_424e3d62-bc56-44ef-a04f-f4a9660cdd02" xlink:to="loc_ari_A2028TermLoanMember_0ebff134-561d-401a-9e43-51823849f1ca" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SeniorSecuredNotesNetDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SeniorSecuredNotesNetDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SeniorSecuredNotesNetDetails" xlink:type="extended" id="i6f7d38e57c1245f09e8b031bb4ba4495_SeniorSecuredNotesNetDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_2288197c-b5e9-478d-a505-1f32fe8372f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_2288197c-b5e9-478d-a505-1f32fe8372f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_9a162c57-5963-4e81-a516-a791873d44b3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_9a162c57-5963-4e81-a516-a791873d44b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_38bf3e34-6687-421e-9f93-d82df017acc1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_38bf3e34-6687-421e-9f93-d82df017acc1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_3d016a35-c27f-43f7-b600-833edf5b91cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_SeniorNotes_3d016a35-c27f-43f7-b600-833edf5b91cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_eb8e2cf8-fdff-4e4e-85bf-df8f72cb6bc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_eb8e2cf8-fdff-4e4e-85bf-df8f72cb6bc5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentPariuPassuRatio_8ba17b64-96d6-4191-81b5-146c94a2b7e6" xlink:href="ari-20230331.xsd#ari_DebtInstrumentPariuPassuRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_ari_DebtInstrumentPariuPassuRatio_8ba17b64-96d6-4191-81b5-146c94a2b7e6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_ded45844-c7a3-4a3e-bbfd-eaaa14f5ea08" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_23b9ed4f-fc31-49b2-bbdf-0944f24024a0" xlink:to="loc_us-gaap_DerivativeTable_ded45844-c7a3-4a3e-bbfd-eaaa14f5ea08" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_83f483a1-5540-4054-b621-2a6832e89d47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_ded45844-c7a3-4a3e-bbfd-eaaa14f5ea08" xlink:to="loc_us-gaap_DebtInstrumentAxis_83f483a1-5540-4054-b621-2a6832e89d47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_83f483a1-5540-4054-b621-2a6832e89d47_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_83f483a1-5540-4054-b621-2a6832e89d47" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_83f483a1-5540-4054-b621-2a6832e89d47_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e0838450-5998-46d7-9922-7ae9bd182b24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_83f483a1-5540-4054-b621-2a6832e89d47" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e0838450-5998-46d7-9922-7ae9bd182b24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwentyTwentyNineNotesMember_c99477f7-1dd1-4709-828d-dd0002658fc3" xlink:href="ari-20230331.xsd#ari_TwentyTwentyNineNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e0838450-5998-46d7-9922-7ae9bd182b24" xlink:to="loc_ari_TwentyTwentyNineNotesMember_c99477f7-1dd1-4709-828d-dd0002658fc3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_f082181c-87c6-46b1-bdce-83d1bb539119" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_ded45844-c7a3-4a3e-bbfd-eaaa14f5ea08" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_f082181c-87c6-46b1-bdce-83d1bb539119" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f082181c-87c6-46b1-bdce-83d1bb539119_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f082181c-87c6-46b1-bdce-83d1bb539119" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f082181c-87c6-46b1-bdce-83d1bb539119_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2ce2309f-bc6e-4b69-9397-91e6f7507b80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f082181c-87c6-46b1-bdce-83d1bb539119" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2ce2309f-bc6e-4b69-9397-91e6f7507b80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_0c4cf8e8-5ef1-4e94-8cc9-fa5d22865837" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_2ce2309f-bc6e-4b69-9397-91e6f7507b80" xlink:to="loc_us-gaap_SeniorNotesMember_0c4cf8e8-5ef1-4e94-8cc9-fa5d22865837" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ConvertibleSeniorNotesNetDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ConvertibleSeniorNotesNetDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ConvertibleSeniorNotesNetDetails" xlink:type="extended" id="i8bb47f146cfd420f909628e6285f2cae_ConvertibleSeniorNotesNetDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentNumberOfOfferings_941ec554-ff5c-4080-848a-30ab53ff9e8f" xlink:href="ari-20230331.xsd#ari_DebtInstrumentNumberOfOfferings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_ari_DebtInstrumentNumberOfOfferings_941ec554-ff5c-4080-848a-30ab53ff9e8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_a8ade0be-5c12-4100-9110-c9c3d9c4fc76" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_a8ade0be-5c12-4100-9110-c9c3d9c4fc76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_995c28b5-bf1a-4ae4-89ca-21f61d3245fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_995c28b5-bf1a-4ae4-89ca-21f61d3245fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_4448bab5-d408-4b30-a808-560b964175b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_4448bab5-d408-4b30-a808-560b964175b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleNotesPayable_c0bb300a-cd1c-45ab-9ba2-abbeb3e55156" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleNotesPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_ConvertibleNotesPayable_c0bb300a-cd1c-45ab-9ba2-abbeb3e55156" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_76ad028a-531a-4a80-8eba-ade48a7d5efe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_76ad028a-531a-4a80-8eba-ade48a7d5efe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleCarryingAmountOfTheEquityComponent_2a512731-4310-4269-af8f-bcf6ffd69755" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentConvertibleCarryingAmountOfTheEquityComponent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentConvertibleCarryingAmountOfTheEquityComponent_2a512731-4310-4269-af8f-bcf6ffd69755" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f97e04b7-e18e-475d-bb11-577d009a87ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_StockholdersEquity_f97e04b7-e18e-475d-bb11-577d009a87ed" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_dafe3d92-92c5-446e-b0c3-2ffc798a6f71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_dafe3d92-92c5-446e-b0c3-2ffc798a6f71" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_67e05f3c-55e2-46e1-98af-615365557a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_67e05f3c-55e2-46e1-98af-615365557a6d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_20b58ec9-c319-4e6b-ba29-4deb0b4736a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_20b58ec9-c319-4e6b-ba29-4deb0b4736a6" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_97e86c2d-4cba-40ec-8db1-5979d4035b82" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_SharePrice_97e86c2d-4cba-40ec-8db1-5979d4035b82" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_026a203c-51b3-44e2-9af8-66b08d7872d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_InterestExpenseDebt_026a203c-51b3-44e2-9af8-66b08d7872d3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestExpenseDebtNoncash_8c3ef626-ce5c-4f71-ae54-7a688adb1a4d" xlink:href="ari-20230331.xsd#ari_InterestExpenseDebtNoncash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_ari_InterestExpenseDebtNoncash_8c3ef626-ce5c-4f71-ae54-7a688adb1a4d" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_55af2113-2d24-4de6-9354-8f7f855f8652" xlink:to="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_2b0603d8-701e-4610-abba-09f870827b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_2b0603d8-701e-4610-abba-09f870827b7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2b0603d8-701e-4610-abba-09f870827b7b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2b0603d8-701e-4610-abba-09f870827b7b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2b0603d8-701e-4610-abba-09f870827b7b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_447457fc-ba4c-4743-9639-2f7a3302e6cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2b0603d8-701e-4610-abba-09f870827b7b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_447457fc-ba4c-4743-9639-2f7a3302e6cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_5d4940da-b5d8-4aa2-ba85-d8e239bb61de" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_447457fc-ba4c-4743-9639-2f7a3302e6cb" xlink:to="loc_us-gaap_ConvertibleDebtMember_5d4940da-b5d8-4aa2-ba85-d8e239bb61de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_9a5531f7-c052-4a1d-b02e-5ab23af02991" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:to="loc_us-gaap_DebtInstrumentAxis_9a5531f7-c052-4a1d-b02e-5ab23af02991" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9a5531f7-c052-4a1d-b02e-5ab23af02991_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_9a5531f7-c052-4a1d-b02e-5ab23af02991" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9a5531f7-c052-4a1d-b02e-5ab23af02991_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b1c9e6e4-a9d9-4eef-904b-b17abd4ee3f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_9a5531f7-c052-4a1d-b02e-5ab23af02991" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b1c9e6e4-a9d9-4eef-904b-b17abd4ee3f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoThousandTwentyTwoNotesMember_18b6ddb7-9718-4513-94f3-801526c46b0b" xlink:href="ari-20230331.xsd#ari_TwoThousandTwentyTwoNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b1c9e6e4-a9d9-4eef-904b-b17abd4ee3f8" xlink:to="loc_ari_TwoThousandTwentyTwoNotesMember_18b6ddb7-9718-4513-94f3-801526c46b0b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoThousandTwentyThreeNotesMember_6ac3a897-074b-4d37-966b-0b2796e67403" xlink:href="ari-20230331.xsd#ari_TwoThousandTwentyThreeNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b1c9e6e4-a9d9-4eef-904b-b17abd4ee3f8" xlink:to="loc_ari_TwoThousandTwentyThreeNotesMember_6ac3a897-074b-4d37-966b-0b2796e67403" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoThousandNineteenand2022NotesMember_f6f01521-b0bc-412a-8458-7f631986909b" xlink:href="ari-20230331.xsd#ari_TwoThousandNineteenand2022NotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b1c9e6e4-a9d9-4eef-904b-b17abd4ee3f8" xlink:to="loc_ari_TwoThousandNineteenand2022NotesMember_f6f01521-b0bc-412a-8458-7f631986909b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9" xlink:to="loc_us-gaap_EquityComponentDomain_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_5b15f453-d4ac-48d8-9d5d-01f9c74ed64f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_f2677f86-b6a9-4d42-8aa6-bfd10a9540a9" xlink:to="loc_us-gaap_EquityComponentDomain_5b15f453-d4ac-48d8-9d5d-01f9c74ed64f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_e46d1118-7936-4602-8e01-38c844ba4982" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5b15f453-d4ac-48d8-9d5d-01f9c74ed64f" xlink:to="loc_us-gaap_CommonStockMember_e46d1118-7936-4602-8e01-38c844ba4982" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_af78ebf2-5aeb-42ba-b72a-563c3d60f5c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5b15f453-d4ac-48d8-9d5d-01f9c74ed64f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_af78ebf2-5aeb-42ba-b72a-563c3d60f5c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_ba4cd59b-100f-4122-ab9b-8eedb9fc1a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5b15f453-d4ac-48d8-9d5d-01f9c74ed64f" xlink:to="loc_us-gaap_RetainedEarningsMember_ba4cd59b-100f-4122-ab9b-8eedb9fc1a6b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_3b75df0d-3454-4ab0-ade5-b54c4e6de880" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1aab8b8d-e580-4ae1-8b3f-ba0dada90837" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_3b75df0d-3454-4ab0-ade5-b54c4e6de880" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_3b75df0d-3454-4ab0-ade5-b54c4e6de880_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_3b75df0d-3454-4ab0-ade5-b54c4e6de880" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_3b75df0d-3454-4ab0-ade5-b54c4e6de880_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_3e51899c-3574-42c4-b05c-18be3f4884f7" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_3b75df0d-3454-4ab0-ade5-b54c4e6de880" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_3e51899c-3574-42c4-b05c-18be3f4884f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_6fcf0f0c-30bf-4c79-8fa7-6da1ccba8849" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_3e51899c-3574-42c4-b05c-18be3f4884f7" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_6fcf0f0c-30bf-4c79-8fa7-6da1ccba8849" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ConvertibleSeniorNotesNetSummaryofNoteTermsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ConvertibleSeniorNotesNetSummaryofNoteTermsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ConvertibleSeniorNotesNetSummaryofNoteTermsDetails" xlink:type="extended" id="i825b6308985b4ab5b33bed8398d5d1fc_ConvertibleSeniorNotesNetSummaryofNoteTermsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_8ba72957-5500-4cc9-92a1-6c58842a81ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_8ba72957-5500-4cc9-92a1-6c58842a81ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_d22621da-38ce-4ef8-a960-dc1b3328200e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_d22621da-38ce-4ef8-a960-dc1b3328200e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_e55bb0d0-285b-4a63-8a4a-59f2d98846e0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_e55bb0d0-285b-4a63-8a4a-59f2d98846e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_41433d12-c3ca-4edd-bd40-b3068c015aa2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentConvertibleConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_41433d12-c3ca-4edd-bd40-b3068c015aa2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1_e14bee0d-ccb0-4631-bd5c-f071f19e7b30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1_e14bee0d-ccb0-4631-bd5c-f071f19e7b30" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_10e7efa2-8430-4d98-90bc-6a7ff203067e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d4f42b21-94d1-48ee-9be8-b91a4df2a83a" xlink:to="loc_us-gaap_DebtInstrumentTable_10e7efa2-8430-4d98-90bc-6a7ff203067e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_9d87ab3c-c28a-4b9d-b739-7b8504042281" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_10e7efa2-8430-4d98-90bc-6a7ff203067e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_9d87ab3c-c28a-4b9d-b739-7b8504042281" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_9d87ab3c-c28a-4b9d-b739-7b8504042281_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9d87ab3c-c28a-4b9d-b739-7b8504042281" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_9d87ab3c-c28a-4b9d-b739-7b8504042281_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_0940d834-daa3-40b9-882c-68c9ba306730" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9d87ab3c-c28a-4b9d-b739-7b8504042281" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_0940d834-daa3-40b9-882c-68c9ba306730" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_b593f356-9ba7-4cbc-bc97-ebd998d8a448" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_0940d834-daa3-40b9-882c-68c9ba306730" xlink:to="loc_us-gaap_ConvertibleDebtMember_b593f356-9ba7-4cbc-bc97-ebd998d8a448" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_197340ad-c244-4781-9f83-dd31ac453ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_10e7efa2-8430-4d98-90bc-6a7ff203067e" xlink:to="loc_us-gaap_DebtInstrumentAxis_197340ad-c244-4781-9f83-dd31ac453ba3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_197340ad-c244-4781-9f83-dd31ac453ba3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_197340ad-c244-4781-9f83-dd31ac453ba3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_197340ad-c244-4781-9f83-dd31ac453ba3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_84bf279f-06c5-4e7c-bd80-82974e184710" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_197340ad-c244-4781-9f83-dd31ac453ba3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_84bf279f-06c5-4e7c-bd80-82974e184710" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoThousandTwentyThreeNotesMember_7f1ecb93-4f08-4dc3-914b-4554a48cae55" xlink:href="ari-20230331.xsd#ari_TwoThousandTwentyThreeNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_84bf279f-06c5-4e7c-bd80-82974e184710" xlink:to="loc_ari_TwoThousandTwentyThreeNotesMember_7f1ecb93-4f08-4dc3-914b-4554a48cae55" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummaryofNonDesignatedForeignExchangeForwardsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#DerivativesSummaryofNonDesignatedForeignExchangeForwardsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/DerivativesSummaryofNonDesignatedForeignExchangeForwardsDetails" xlink:type="extended" id="i298b0e1c9ae94907a408aa9e991a86fd_DerivativesSummaryofNonDesignatedForeignExchangeForwardsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_2ab8b06c-d8d9-4be4-add2-29be5f78998e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_77173150-fb7a-403b-8e25-ad67ffddfff5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNumberOfInstrumentsHeld"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_2ab8b06c-d8d9-4be4-add2-29be5f78998e" xlink:to="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_77173150-fb7a-403b-8e25-ad67ffddfff5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_fa413285-88f5-4742-a144-33a3679a83e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_2ab8b06c-d8d9-4be4-add2-29be5f78998e" xlink:to="loc_us-gaap_DerivativeNotionalAmount_fa413285-88f5-4742-a144-33a3679a83e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAverageRemainingMaturity1_d332ae8d-b347-49ff-a733-32ef5da91cce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAverageRemainingMaturity1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_2ab8b06c-d8d9-4be4-add2-29be5f78998e" xlink:to="loc_us-gaap_DerivativeAverageRemainingMaturity1_d332ae8d-b347-49ff-a733-32ef5da91cce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_0f2e5d14-604d-4caf-b6bf-92402fd83bb1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_2ab8b06c-d8d9-4be4-add2-29be5f78998e" xlink:to="loc_us-gaap_DerivativeTable_0f2e5d14-604d-4caf-b6bf-92402fd83bb1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CurrencyAxis_e30562e7-e6b8-4328-b516-23738b2f5cc3" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CurrencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0f2e5d14-604d-4caf-b6bf-92402fd83bb1" xlink:to="loc_srt_CurrencyAxis_e30562e7-e6b8-4328-b516-23738b2f5cc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_e30562e7-e6b8-4328-b516-23738b2f5cc3_default" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_e30562e7-e6b8-4328-b516-23738b2f5cc3" xlink:to="loc_currency_AllCurrenciesDomain_e30562e7-e6b8-4328-b516-23738b2f5cc3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_AllCurrenciesDomain_3294e527-5203-4e25-95ec-47221890afd3" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_AllCurrenciesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_e30562e7-e6b8-4328-b516-23738b2f5cc3" xlink:to="loc_currency_AllCurrenciesDomain_3294e527-5203-4e25-95ec-47221890afd3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_GBP_877d40bf-dfde-4979-94aa-89055f90b028" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_GBP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_3294e527-5203-4e25-95ec-47221890afd3" xlink:to="loc_currency_GBP_877d40bf-dfde-4979-94aa-89055f90b028" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_EUR_65996c95-58de-4637-9faf-c0aeb43d4540" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_EUR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_3294e527-5203-4e25-95ec-47221890afd3" xlink:to="loc_currency_EUR_65996c95-58de-4637-9faf-c0aeb43d4540" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_currency_SEK_d5cc39d9-42a1-458c-9e0a-037f3d532938" xlink:href="https://xbrl.sec.gov/currency/2022/currency-2022.xsd#currency_SEK"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_3294e527-5203-4e25-95ec-47221890afd3" xlink:to="loc_currency_SEK_d5cc39d9-42a1-458c-9e0a-037f3d532938" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_56283dba-2b72-482d-bd3e-7ebf24db7fa2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0f2e5d14-604d-4caf-b6bf-92402fd83bb1" xlink:to="loc_us-gaap_HedgingDesignationAxis_56283dba-2b72-482d-bd3e-7ebf24db7fa2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_56283dba-2b72-482d-bd3e-7ebf24db7fa2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_56283dba-2b72-482d-bd3e-7ebf24db7fa2" xlink:to="loc_us-gaap_HedgingDesignationDomain_56283dba-2b72-482d-bd3e-7ebf24db7fa2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ac20e8af-a668-4230-be34-8c56c2855176" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_56283dba-2b72-482d-bd3e-7ebf24db7fa2" xlink:to="loc_us-gaap_HedgingDesignationDomain_ac20e8af-a668-4230-be34-8c56c2855176" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_23ad711c-ef25-4f2a-ba71-9701a9fe306c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ac20e8af-a668-4230-be34-8c56c2855176" xlink:to="loc_us-gaap_NondesignatedMember_23ad711c-ef25-4f2a-ba71-9701a9fe306c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0f2e5d14-604d-4caf-b6bf-92402fd83bb1" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_c99781ac-4736-4358-89e7-f38a0a8eb671" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_bff6fa99-fa3f-42c3-9b20-cab1b00e2c90" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_c99781ac-4736-4358-89e7-f38a0a8eb671" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_a06cc867-4f90-4749-957a-5f8c0989cc53" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c99781ac-4736-4358-89e7-f38a0a8eb671" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_a06cc867-4f90-4749-957a-5f8c0989cc53" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_14a5b6f4-caba-445e-8704-3c56c6f6f8de" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c99781ac-4736-4358-89e7-f38a0a8eb671" xlink:to="loc_us-gaap_InterestRateCapMember_14a5b6f4-caba-445e-8704-3c56c6f6f8de" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails" xlink:type="extended" id="icea2c20518494837b89b4a9a85f4527f_DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_fc8088bd-0c5b-4b81-b006-21177642def6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_fc8088bd-0c5b-4b81-b006-21177642def6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration_32237326-d7a8-4b4a-aae4-219f7dc6ac16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration_32237326-d7a8-4b4a-aae4-219f7dc6ac16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_29f9ccce-ee51-44bf-95c1-c0e91983c4b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_29f9ccce-ee51-44bf-95c1-c0e91983c4b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_89b481c1-2568-4a16-9824-38cf674ea703" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_89b481c1-2568-4a16-9824-38cf674ea703" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_9c1a0c88-80e3-477c-beab-06fe4759b12d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_DerivativeNotionalAmount_9c1a0c88-80e3-477c-beab-06fe4759b12d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9df7e660-57fc-4117-8638-6bd455c20e1c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4b2a9227-aa3f-4c58-9c40-6ee0cd728990" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9df7e660-57fc-4117-8638-6bd455c20e1c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_b7a21431-5434-41ff-9383-7572d6c4aa94" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9df7e660-57fc-4117-8638-6bd455c20e1c" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_b7a21431-5434-41ff-9383-7572d6c4aa94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b7a21431-5434-41ff-9383-7572d6c4aa94_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_b7a21431-5434-41ff-9383-7572d6c4aa94" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b7a21431-5434-41ff-9383-7572d6c4aa94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9579ab77-65e0-43eb-949d-81c38c45b5c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_b7a21431-5434-41ff-9383-7572d6c4aa94" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9579ab77-65e0-43eb-949d-81c38c45b5c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_783b1f86-5937-4fde-9496-8a311b9dadfd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9579ab77-65e0-43eb-949d-81c38c45b5c3" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_783b1f86-5937-4fde-9496-8a311b9dadfd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_530fa522-28ff-4a45-88e1-907f8d1d7e7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9579ab77-65e0-43eb-949d-81c38c45b5c3" xlink:to="loc_us-gaap_InterestRateCapMember_530fa522-28ff-4a45-88e1-907f8d1d7e7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_0fbc818e-0413-421c-a9b8-1ed256a6d931" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9df7e660-57fc-4117-8638-6bd455c20e1c" xlink:to="loc_us-gaap_HedgingDesignationAxis_0fbc818e-0413-421c-a9b8-1ed256a6d931" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_0fbc818e-0413-421c-a9b8-1ed256a6d931_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_0fbc818e-0413-421c-a9b8-1ed256a6d931" xlink:to="loc_us-gaap_HedgingDesignationDomain_0fbc818e-0413-421c-a9b8-1ed256a6d931_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_da60a119-44f4-48ec-824c-acc74f87ac65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_0fbc818e-0413-421c-a9b8-1ed256a6d931" xlink:to="loc_us-gaap_HedgingDesignationDomain_da60a119-44f4-48ec-824c-acc74f87ac65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_d036ae33-f05a-46fb-b05c-c3cdd7ba5cb0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_da60a119-44f4-48ec-824c-acc74f87ac65" xlink:to="loc_us-gaap_NondesignatedMember_d036ae33-f05a-46fb-b05c-c3cdd7ba5cb0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#DerivativesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/DerivativesAdditionalInformationDetails" xlink:type="extended" id="i5fbebcb4a15249dbafeb06395fe77712_DerivativesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFixedInterestRate_f9a94f01-e652-4f7a-9074-bc7537e6d919" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFixedInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_DerivativeFixedInterestRate_f9a94f01-e652-4f7a-9074-bc7537e6d919" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_45722328-67a7-48d0-82af-86f2b5132334" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_45722328-67a7-48d0-82af-86f2b5132334" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_e3a9f766-4830-4383-a2df-ed7f79a90c7a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_DerivativeNotionalAmount_e3a9f766-4830-4383-a2df-ed7f79a90c7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAverageCapInterestRate_3f9fc53e-b70a-4524-a9c1-cf33375f8da5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAverageCapInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_DerivativeAverageCapInterestRate_3f9fc53e-b70a-4524-a9c1-cf33375f8da5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperating_a67d96e7-44fd-410c-a9a4-c1c67b02310f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_InterestIncomeOperating_a67d96e7-44fd-410c-a9a4-c1c67b02310f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_c373a90d-8dfc-4da6-a843-253cb83e9805" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_936cbafa-ed37-47d4-b170-c8efe7a79f33" xlink:to="loc_us-gaap_DerivativeTable_c373a90d-8dfc-4da6-a843-253cb83e9805" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_48a8989f-669b-4f5d-a842-92e21fc5f509" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c373a90d-8dfc-4da6-a843-253cb83e9805" xlink:to="loc_us-gaap_VariableRateAxis_48a8989f-669b-4f5d-a842-92e21fc5f509" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_48a8989f-669b-4f5d-a842-92e21fc5f509_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_48a8989f-669b-4f5d-a842-92e21fc5f509" xlink:to="loc_us-gaap_VariableRateDomain_48a8989f-669b-4f5d-a842-92e21fc5f509_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_c80ce385-7310-4786-b77a-a0a8556c28cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_48a8989f-669b-4f5d-a842-92e21fc5f509" xlink:to="loc_us-gaap_VariableRateDomain_c80ce385-7310-4786-b77a-a0a8556c28cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_be4be237-aa7c-4e49-90cf-918c46f565a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_c80ce385-7310-4786-b77a-a0a8556c28cd" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_be4be237-aa7c-4e49-90cf-918c46f565a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_e0d139f0-6085-4f42-8373-193c935f29f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c373a90d-8dfc-4da6-a843-253cb83e9805" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_e0d139f0-6085-4f42-8373-193c935f29f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e0d139f0-6085-4f42-8373-193c935f29f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e0d139f0-6085-4f42-8373-193c935f29f0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e0d139f0-6085-4f42-8373-193c935f29f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ccaf2f95-8452-491b-8e96-14fed0eec815" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e0d139f0-6085-4f42-8373-193c935f29f0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ccaf2f95-8452-491b-8e96-14fed0eec815" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_d8839649-4b98-4d8d-b1c8-da92f070c087" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ccaf2f95-8452-491b-8e96-14fed0eec815" xlink:to="loc_us-gaap_InterestRateCapMember_d8839649-4b98-4d8d-b1c8-da92f070c087" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c373a90d-8dfc-4da6-a843-253cb83e9805" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b64a313c-cbb8-44a0-8d1e-5555395d225f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_374b7036-c0b9-4ad4-abd2-a26e2d3af8b2" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b64a313c-cbb8-44a0-8d1e-5555395d225f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_7271702d-ae7d-4e38-b5cf-20eb3132dc6e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_b64a313c-cbb8-44a0-8d1e-5555395d225f" xlink:to="loc_us-gaap_SecuredDebtMember_7271702d-ae7d-4e38-b5cf-20eb3132dc6e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails" xlink:type="extended" id="i37abfc5edf7740e8aab516ce035c4de3_DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_0ae4326c-6aee-4e72-a41d-6be4980fffc2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_f3abb3fb-bd97-4323-baee-622b67878ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0ae4326c-6aee-4e72-a41d-6be4980fffc2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_f3abb3fb-bd97-4323-baee-622b67878ed9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_575b9162-e1c5-4353-8d45-32b4572bc821" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0ae4326c-6aee-4e72-a41d-6be4980fffc2" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_575b9162-e1c5-4353-8d45-32b4572bc821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_657e1059-58eb-42da-9328-790860f7924b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0ae4326c-6aee-4e72-a41d-6be4980fffc2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_657e1059-58eb-42da-9328-790860f7924b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_127073af-43cd-41d3-8aee-0dc7b5412984" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_0ae4326c-6aee-4e72-a41d-6be4980fffc2" xlink:to="loc_us-gaap_DerivativeTable_127073af-43cd-41d3-8aee-0dc7b5412984" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_7f116560-d557-40d9-bc26-a6289cf1d893" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_127073af-43cd-41d3-8aee-0dc7b5412984" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_7f116560-d557-40d9-bc26-a6289cf1d893" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7f116560-d557-40d9-bc26-a6289cf1d893_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_7f116560-d557-40d9-bc26-a6289cf1d893" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7f116560-d557-40d9-bc26-a6289cf1d893_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ebe94c82-f564-4496-ae9f-a01bfcc3fda2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_7f116560-d557-40d9-bc26-a6289cf1d893" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ebe94c82-f564-4496-ae9f-a01bfcc3fda2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_6ded68a6-9a34-47e9-a3ce-971be9229c43" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ebe94c82-f564-4496-ae9f-a01bfcc3fda2" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_6ded68a6-9a34-47e9-a3ce-971be9229c43" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_337a41ad-662b-453b-87f0-3c5472cf01fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ebe94c82-f564-4496-ae9f-a01bfcc3fda2" xlink:to="loc_us-gaap_InterestRateCapMember_337a41ad-662b-453b-87f0-3c5472cf01fc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ParticipationsSoldDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ParticipationsSoldDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ParticipationsSoldDetails" xlink:type="extended" id="ie9416338247a4280bbb612b80e549332_ParticipationsSoldDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansLineItems_05ca9adc-391d-47ea-9d59-402f68f4d25a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_362df8c2-fd1e-4c44-b269-93e1aafa1083" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParticipatingMortgageLoansLineItems_05ca9adc-391d-47ea-9d59-402f68f4d25a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_362df8c2-fd1e-4c44-b269-93e1aafa1083" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtInstrumentRemainingUnfundedCommitment_40651103-d8ff-4a42-9038-86c25bb4ae71" xlink:href="ari-20230331.xsd#ari_DebtInstrumentRemainingUnfundedCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParticipatingMortgageLoansLineItems_05ca9adc-391d-47ea-9d59-402f68f4d25a" xlink:to="loc_ari_DebtInstrumentRemainingUnfundedCommitment_40651103-d8ff-4a42-9038-86c25bb4ae71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansTable_07afa3c6-b616-4b52-ba1f-ab3f35b428c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ParticipatingMortgageLoansLineItems_05ca9adc-391d-47ea-9d59-402f68f4d25a" xlink:to="loc_us-gaap_ParticipatingMortgageLoansTable_07afa3c6-b616-4b52-ba1f-ab3f35b428c2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_2597de43-7c4a-4b8f-addd-f5912a8f5304" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ParticipatingMortgageLoansTable_07afa3c6-b616-4b52-ba1f-ab3f35b428c2" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_2597de43-7c4a-4b8f-addd-f5912a8f5304" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_2597de43-7c4a-4b8f-addd-f5912a8f5304_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_2597de43-7c4a-4b8f-addd-f5912a8f5304" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_2597de43-7c4a-4b8f-addd-f5912a8f5304_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_2430bc5f-c09f-4584-abba-813edf8040e3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_2597de43-7c4a-4b8f-addd-f5912a8f5304" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_2430bc5f-c09f-4584-abba-813edf8040e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MezzanineLoansMember_e219f355-0a8f-4be6-aa02-c2e852811bf8" xlink:href="ari-20230331.xsd#ari_MezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_2430bc5f-c09f-4584-abba-813edf8040e3" xlink:to="loc_ari_MezzanineLoansMember_e219f355-0a8f-4be6-aa02-c2e852811bf8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_70cae252-34ab-470e-a549-233f8abfd0fa" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ParticipatingMortgageLoansTable_07afa3c6-b616-4b52-ba1f-ab3f35b428c2" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_70cae252-34ab-470e-a549-233f8abfd0fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_70cae252-34ab-470e-a549-233f8abfd0fa_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_70cae252-34ab-470e-a549-233f8abfd0fa" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_70cae252-34ab-470e-a549-233f8abfd0fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_f09c1a46-176e-4c88-8d95-109b15e0544e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_70cae252-34ab-470e-a549-233f8abfd0fa" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_f09c1a46-176e-4c88-8d95-109b15e0544e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OfficeBuildingLondonMember_d850ad60-0501-4928-bc80-43b54a135ca5" xlink:href="ari-20230331.xsd#ari_OfficeBuildingLondonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_f09c1a46-176e-4c88-8d95-109b15e0544e" xlink:to="loc_ari_OfficeBuildingLondonMember_d850ad60-0501-4928-bc80-43b54a135ca5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ParticipationsSoldScheduleofparticipationssoldDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ParticipationsSoldScheduleofparticipationssoldDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ParticipationsSoldScheduleofparticipationssoldDetails" xlink:type="extended" id="i1cf9c241e604421594702a012a2b8f83_ParticipationsSoldScheduleofparticipationssoldDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansLineItems_24bdaf42-58a8-43be-a1af-37ff73ae20e7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_c8ffe962-df35-414d-8911-94d4b7b48d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParticipatingMortgageLoansLineItems_24bdaf42-58a8-43be-a1af-37ff73ae20e7" xlink:to="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_c8ffe962-df35-414d-8911-94d4b7b48d6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansTable_651f3ede-5ef2-4e40-a089-9b4d66ca7522" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ParticipatingMortgageLoansLineItems_24bdaf42-58a8-43be-a1af-37ff73ae20e7" xlink:to="loc_us-gaap_ParticipatingMortgageLoansTable_651f3ede-5ef2-4e40-a089-9b4d66ca7522" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ParticipatingMortgageLoansTable_651f3ede-5ef2-4e40-a089-9b4d66ca7522" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b2a98f3c-4905-46b0-ac8a-c0539e8661c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_fc4e0dfb-4e62-4d21-9805-fc98eddcfa41" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b2a98f3c-4905-46b0-ac8a-c0539e8661c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_4f26c3d6-60a7-41bd-be13-c6e013b6c910" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_b2a98f3c-4905-46b0-ac8a-c0539e8661c7" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_4f26c3d6-60a7-41bd-be13-c6e013b6c910" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/RelatedPartyTransactionsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#RelatedPartyTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/RelatedPartyTransactionsDetails" xlink:type="extended" id="iacff90922fff4a768185e900b446d658_RelatedPartyTransactionsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RelatedPartyTransactionAnnualManagementFeeRate_652c40b1-67ee-4365-add1-ff36de10d099" xlink:href="ari-20230331.xsd#ari_RelatedPartyTransactionAnnualManagementFeeRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_RelatedPartyTransactionAnnualManagementFeeRate_652c40b1-67ee-4365-add1-ff36de10d099" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RelatedPartyTransactionExtensionPeriod_cc53b8fb-6b7f-466d-b1c5-9d7d2e5fb4ca" xlink:href="ari-20230331.xsd#ari_RelatedPartyTransactionExtensionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_RelatedPartyTransactionExtensionPeriod_cc53b8fb-6b7f-466d-b1c5-9d7d2e5fb4ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RelatedpartyTransactionTerminationNoticePeriod_a99570f3-3650-402e-8e53-40193504bec1" xlink:href="ari-20230331.xsd#ari_RelatedpartyTransactionTerminationNoticePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_RelatedpartyTransactionTerminationNoticePeriod_a99570f3-3650-402e-8e53-40193504bec1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TerminationFeePercentFeeOfBaseManagementFee_e71d8bed-b4ba-43aa-aeca-b6eca5dc47a9" xlink:href="ari-20230331.xsd#ari_TerminationFeePercentFeeOfBaseManagementFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_TerminationFeePercentFeeOfBaseManagementFee_e71d8bed-b4ba-43aa-aeca-b6eca5dc47a9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RelatedPartyTransactionTerminationFeeCalculationPeriod_43c8b95d-85a3-430d-9cda-31d06dfb4496" xlink:href="ari-20230331.xsd#ari_RelatedPartyTransactionTerminationFeeCalculationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_RelatedPartyTransactionTerminationFeeCalculationPeriod_43c8b95d-85a3-430d-9cda-31d06dfb4496" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_e98a23d7-c2fc-4aec-86a5-da126a03a7df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_e98a23d7-c2fc-4aec-86a5-da126a03a7df" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_d68a4e3a-8b9d-40cc-8531-f6b0530ec087" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DueToRelatedPartiesCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_d68a4e3a-8b9d-40cc-8531-f6b0530ec087" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfLoans_58d07029-5e34-45df-bd66-79410055d207" xlink:href="ari-20230331.xsd#ari_NumberOfLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_NumberOfLoans_58d07029-5e34-45df-bd66-79410055d207" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OffBalanceSheetCreditLossLiabilityTransfers_ebf182e8-7ccd-42f0-a235-6b5716d40471" xlink:href="ari-20230331.xsd#ari_OffBalanceSheetCreditLossLiabilityTransfers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_OffBalanceSheetCreditLossLiabilityTransfers_ebf182e8-7ccd-42f0-a235-6b5716d40471" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfCommercialMortgageLoans_11bb5866-2c88-453b-a297-eb5fe29ac6e4" xlink:href="ari-20230331.xsd#ari_NumberOfCommercialMortgageLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_NumberOfCommercialMortgageLoans_11bb5866-2c88-453b-a297-eb5fe29ac6e4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_dfeb08b2-fa4a-47a0-942c-dc2ffb65d512" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_dfeb08b2-fa4a-47a0-942c-dc2ffb65d512" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet_b392ee16-dde4-4946-8a03-e2dd1b9c5077" xlink:href="ari-20230331.xsd#ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_MortgageLoansOnRealEstateCommercialAndConsumerFundedNet_b392ee16-dde4-4946-8a03-e2dd1b9c5077" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_8a09e9c3-53d2-44f9-9d4b-cc1811573648" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_8a09e9c3-53d2-44f9-9d4b-cc1811573648" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap-supplement_IncreaseDecreaseInManagementFeePayable_0d1ae395-0c2a-4379-968a-8a384f556f3b" xlink:href="https://xbrl.fasb.org/us-gaap/2022q3/us-gaap-sup-2022q3.xsd#us-gaap_IncreaseDecreaseInManagementFeePayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap-supplement_IncreaseDecreaseInManagementFeePayable_0d1ae395-0c2a-4379-968a-8a384f556f3b" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_7b7adcb7-be8c-4fdc-96b3-4d9fe53faecc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_7b7adcb7-be8c-4fdc-96b3-4d9fe53faecc" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NumberOfIndependentDirectorsRequiredToTerminateManagementAgreement_95819a6f-eedf-4ed4-884a-fc6218bf9858" xlink:href="ari-20230331.xsd#ari_NumberOfIndependentDirectorsRequiredToTerminateManagementAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_ari_NumberOfIndependentDirectorsRequiredToTerminateManagementAgreement_95819a6f-eedf-4ed4-884a-fc6218bf9858" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_d9895017-1ded-4587-a508-e58d7df73d12" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_451b4353-8c1d-4367-9bd5-badf838f8b6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_451b4353-8c1d-4367-9bd5-badf838f8b6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_451b4353-8c1d-4367-9bd5-badf838f8b6d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_451b4353-8c1d-4367-9bd5-badf838f8b6d" xlink:to="loc_us-gaap_RelatedPartyDomain_451b4353-8c1d-4367-9bd5-badf838f8b6d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_ce7c9a45-6a97-4d16-919f-12ee61786982" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_451b4353-8c1d-4367-9bd5-badf838f8b6d" xlink:to="loc_us-gaap_RelatedPartyDomain_ce7c9a45-6a97-4d16-919f-12ee61786982" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LimitedLiabilityCompanyMember_9224a072-04c2-4d64-ad73-a306178d3509" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LimitedLiabilityCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ce7c9a45-6a97-4d16-919f-12ee61786982" xlink:to="loc_us-gaap_LimitedLiabilityCompanyMember_9224a072-04c2-4d64-ad73-a306178d3509" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AffiliatedEntityMember_c8876a29-6454-46cd-af9e-17aaa8b7a383" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_AffiliatedEntityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ce7c9a45-6a97-4d16-919f-12ee61786982" xlink:to="loc_srt_AffiliatedEntityMember_c8876a29-6454-46cd-af9e-17aaa8b7a383" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ApolloInvestmentManagementEuropeMember_d1472149-379d-457f-a069-6284c4ddc881" xlink:href="ari-20230331.xsd#ari_ApolloInvestmentManagementEuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ce7c9a45-6a97-4d16-919f-12ee61786982" xlink:to="loc_ari_ApolloInvestmentManagementEuropeMember_d1472149-379d-457f-a069-6284c4ddc881" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_ece840eb-cc21-4415-8fbd-b634989efa9c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_ece840eb-cc21-4415-8fbd-b634989efa9c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_ece840eb-cc21-4415-8fbd-b634989efa9c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_ece840eb-cc21-4415-8fbd-b634989efa9c" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_ece840eb-cc21-4415-8fbd-b634989efa9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_208cf2d8-6312-44b5-b98e-0302b408e4f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_ece840eb-cc21-4415-8fbd-b634989efa9c" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_208cf2d8-6312-44b5-b98e-0302b408e4f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ManagementFeesMember_b1fb66a5-9d52-4c46-89a4-66d2e9a55e44" xlink:href="ari-20230331.xsd#ari_ManagementFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_208cf2d8-6312-44b5-b98e-0302b408e4f6" xlink:to="loc_ari_ManagementFeesMember_b1fb66a5-9d52-4c46-89a4-66d2e9a55e44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ReimbursementsMember_76850ec8-3f26-4ae1-a1f0-84a59f4ef986" xlink:href="ari-20230331.xsd#ari_ReimbursementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_208cf2d8-6312-44b5-b98e-0302b408e4f6" xlink:to="loc_ari_ReimbursementsMember_76850ec8-3f26-4ae1-a1f0-84a59f4ef986" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ArrangementFeesMember_b171431a-8cba-485d-a52a-1d58a125bbb4" xlink:href="ari-20230331.xsd#ari_ArrangementFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_208cf2d8-6312-44b5-b98e-0302b408e4f6" xlink:to="loc_ari_ArrangementFeesMember_b171431a-8cba-485d-a52a-1d58a125bbb4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_9aba938d-6e22-4210-9c0f-2f1e1fc35be9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_9aba938d-6e22-4210-9c0f-2f1e1fc35be9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9aba938d-6e22-4210-9c0f-2f1e1fc35be9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_9aba938d-6e22-4210-9c0f-2f1e1fc35be9" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9aba938d-6e22-4210-9c0f-2f1e1fc35be9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d96940e0-9b78-4684-8c29-86a7f0ab6ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_9aba938d-6e22-4210-9c0f-2f1e1fc35be9" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d96940e0-9b78-4684-8c29-86a7f0ab6ef2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_JuniorMezzanineLoansMember_21bb6798-f9f9-4720-ab0c-fb1bb529d581" xlink:href="ari-20230331.xsd#ari_JuniorMezzanineLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_d96940e0-9b78-4684-8c29-86a7f0ab6ef2" xlink:to="loc_ari_JuniorMezzanineLoansMember_21bb6798-f9f9-4720-ab0c-fb1bb529d581" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_b0822390-cb26-4cb9-aad5-1d7d42a1e153" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_b0822390-cb26-4cb9-aad5-1d7d42a1e153" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_b0822390-cb26-4cb9-aad5-1d7d42a1e153_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_b0822390-cb26-4cb9-aad5-1d7d42a1e153" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_b0822390-cb26-4cb9-aad5-1d7d42a1e153_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8725b18b-db77-4476-8c57-4a11dea908fe" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_b0822390-cb26-4cb9-aad5-1d7d42a1e153" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8725b18b-db77-4476-8c57-4a11dea908fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MixedUsePropertyLondonMember_f850221d-b7a9-49b6-ac3b-707573eb8dcc" xlink:href="ari-20230331.xsd#ari_MixedUsePropertyLondonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8725b18b-db77-4476-8c57-4a11dea908fe" xlink:to="loc_ari_MixedUsePropertyLondonMember_f850221d-b7a9-49b6-ac3b-707573eb8dcc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_VariousPropertiesInEuropeMember_9252055a-330e-42c1-b684-e8f79cfc690f" xlink:href="ari-20230331.xsd#ari_VariousPropertiesInEuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_8725b18b-db77-4476-8c57-4a11dea908fe" xlink:to="loc_ari_VariousPropertiesInEuropeMember_9252055a-330e-42c1-b684-e8f79cfc690f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a8b19325-9adb-4590-bd04-3dbdfd7cb9da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a8b19325-9adb-4590-bd04-3dbdfd7cb9da" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a8b19325-9adb-4590-bd04-3dbdfd7cb9da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a8b19325-9adb-4590-bd04-3dbdfd7cb9da" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_a8b19325-9adb-4590-bd04-3dbdfd7cb9da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64eda3b1-c803-4765-9574-0f1435313a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_a8b19325-9adb-4590-bd04-3dbdfd7cb9da" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64eda3b1-c803-4765-9574-0f1435313a6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_cbb04897-56ad-4275-954a-4e0bda501955" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64eda3b1-c803-4765-9574-0f1435313a6d" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_cbb04897-56ad-4275-954a-4e0bda501955" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_9ebda642-5ab0-4e54-b939-87b2c7cc66d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_CreditFacilityAxis_9ebda642-5ab0-4e54-b939-87b2c7cc66d7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_9ebda642-5ab0-4e54-b939-87b2c7cc66d7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_9ebda642-5ab0-4e54-b939-87b2c7cc66d7" xlink:to="loc_us-gaap_CreditFacilityDomain_9ebda642-5ab0-4e54-b939-87b2c7cc66d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_13e25a90-9a2e-486d-8e1f-1fe9553abd32" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_9ebda642-5ab0-4e54-b939-87b2c7cc66d7" xlink:to="loc_us-gaap_CreditFacilityDomain_13e25a90-9a2e-486d-8e1f-1fe9553abd32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_db750bc8-39c6-4403-ab98-d0f5ce18e504" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_13e25a90-9a2e-486d-8e1f-1fe9553abd32" xlink:to="loc_us-gaap_SecuredDebtMember_db750bc8-39c6-4403-ab98-d0f5ce18e504" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_3c09a58b-e9b8-4624-b008-5c5e4357c87c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_DebtInstrumentAxis_3c09a58b-e9b8-4624-b008-5c5e4357c87c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3c09a58b-e9b8-4624-b008-5c5e4357c87c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_3c09a58b-e9b8-4624-b008-5c5e4357c87c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3c09a58b-e9b8-4624-b008-5c5e4357c87c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7c3eaa97-f90b-4cb8-a67f-e9ecd7cd710e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_3c09a58b-e9b8-4624-b008-5c5e4357c87c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7c3eaa97-f90b-4cb8-a67f-e9ecd7cd710e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CreditSuisseFacilityMember_fb5291c7-2483-4637-b247-13b02c8f0cbc" xlink:href="ari-20230331.xsd#ari_CreditSuisseFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7c3eaa97-f90b-4cb8-a67f-e9ecd7cd710e" xlink:to="loc_ari_CreditSuisseFacilityMember_fb5291c7-2483-4637-b247-13b02c8f0cbc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AtlasFacilityMember_ee1515ec-ba29-45cc-beb9-2dc58905c0f2" xlink:href="ari-20230331.xsd#ari_AtlasFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7c3eaa97-f90b-4cb8-a67f-e9ecd7cd710e" xlink:to="loc_ari_AtlasFacilityMember_ee1515ec-ba29-45cc-beb9-2dc58905c0f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b93ba862-0713-4f3d-aa3a-0798a1b3f92c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_3c0cc728-d31c-4436-bab6-c4299586d567" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b93ba862-0713-4f3d-aa3a-0798a1b3f92c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b93ba862-0713-4f3d-aa3a-0798a1b3f92c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b93ba862-0713-4f3d-aa3a-0798a1b3f92c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b93ba862-0713-4f3d-aa3a-0798a1b3f92c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e8c9905d-7c0a-4515-9dbd-11340f8c5836" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b93ba862-0713-4f3d-aa3a-0798a1b3f92c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e8c9905d-7c0a-4515-9dbd-11340f8c5836" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_a9de4697-dae5-49e8-bbe0-dc2b975e4077" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e8c9905d-7c0a-4515-9dbd-11340f8c5836" xlink:to="loc_us-gaap_LineOfCreditMember_a9de4697-dae5-49e8-bbe0-dc2b975e4077" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ShareBasedPaymentsAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ShareBasedPaymentsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ShareBasedPaymentsAdditionalInformationDetails" xlink:type="extended" id="icd16d7b23c6d4ffc8cbba0ecd5802416_ShareBasedPaymentsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_7f81b338-3f60-4ea3-8323-1be8622dec06" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_7f81b338-3f60-4ea3-8323-1be8622dec06" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_0ca6d8c0-c0d1-4a82-9c38-9f7daf86b8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_0ca6d8c0-c0d1-4a82-9c38-9f7daf86b8c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_db43695a-655f-40b4-bffb-f3b33073f7c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_db43695a-655f-40b4-bffb-f3b33073f7c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_6b36fc74-a671-4d3b-ac63-0ed62edda2f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_6b36fc74-a671-4d3b-ac63-0ed62edda2f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsVestedAndIssuedinPeriod_b6329753-8726-4d4d-962c-b0dc4934516a" xlink:href="ari-20230331.xsd#ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsVestedAndIssuedinPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsVestedAndIssuedinPeriod_b6329753-8726-4d4d-962c-b0dc4934516a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_f7ccab60-2190-4772-b02b-79c1d50d69d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_f7ccab60-2190-4772-b02b-79c1d50d69d5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7bb9d2aa-5f0d-4bf9-b44c-5c85daf78ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_251a33dc-36dd-4c25-b94c-1485c77f35fd" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7bb9d2aa-5f0d-4bf9-b44c-5c85daf78ce2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_e4021710-b0ab-4891-87c1-5639c78b8768" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7bb9d2aa-5f0d-4bf9-b44c-5c85daf78ce2" xlink:to="loc_us-gaap_PlanNameAxis_e4021710-b0ab-4891-87c1-5639c78b8768" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_e4021710-b0ab-4891-87c1-5639c78b8768_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_e4021710-b0ab-4891-87c1-5639c78b8768" xlink:to="loc_us-gaap_PlanNameDomain_e4021710-b0ab-4891-87c1-5639c78b8768_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_285eafe4-18ad-42e2-bbf1-160ee1da88ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_e4021710-b0ab-4891-87c1-5639c78b8768" xlink:to="loc_us-gaap_PlanNameDomain_285eafe4-18ad-42e2-bbf1-160ee1da88ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2009EquityIncentivePlanLTIPMember_56ba8bea-ab49-4ba8-9926-0c1d4a1af931" xlink:href="ari-20230331.xsd#ari_A2009EquityIncentivePlanLTIPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_285eafe4-18ad-42e2-bbf1-160ee1da88ff" xlink:to="loc_ari_A2009EquityIncentivePlanLTIPMember_56ba8bea-ab49-4ba8-9926-0c1d4a1af931" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_6dc8131f-2b97-4f46-9b65-9d8628521cb9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7bb9d2aa-5f0d-4bf9-b44c-5c85daf78ce2" xlink:to="loc_us-gaap_AwardTypeAxis_6dc8131f-2b97-4f46-9b65-9d8628521cb9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6dc8131f-2b97-4f46-9b65-9d8628521cb9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_6dc8131f-2b97-4f46-9b65-9d8628521cb9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6dc8131f-2b97-4f46-9b65-9d8628521cb9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ccb9ed7-8fc9-4eb6-a436-1219e6ab1ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_6dc8131f-2b97-4f46-9b65-9d8628521cb9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ccb9ed7-8fc9-4eb6-a436-1219e6ab1ebd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_35beb197-0a8c-48d5-93a1-a674b699c0cf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ccb9ed7-8fc9-4eb6-a436-1219e6ab1ebd" xlink:to="loc_us-gaap_RestrictedStockMember_35beb197-0a8c-48d5-93a1-a674b699c0cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_67c69b8d-f321-47a9-b29a-3cb22a96199c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8ccb9ed7-8fc9-4eb6-a436-1219e6ab1ebd" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_67c69b8d-f321-47a9-b29a-3cb22a96199c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ShareBasedPaymentsSummaryofGrantsExchangesandForfeituresofRestrictedStockandRSUsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ShareBasedPaymentsSummaryofGrantsExchangesandForfeituresofRestrictedStockandRSUsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ShareBasedPaymentsSummaryofGrantsExchangesandForfeituresofRestrictedStockandRSUsDetails" xlink:type="extended" id="i556aad9792064a71be1bfa00812808e2_ShareBasedPaymentsSummaryofGrantsExchangesandForfeituresofRestrictedStockandRSUsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_07f728e3-b383-4326-bf3c-77c0b160382d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_07f728e3-b383-4326-bf3c-77c0b160382d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_9b3357fb-1662-4d7e-804a-a953ba2fe4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_9b3357fb-1662-4d7e-804a-a953ba2fe4ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9c0e92ff-aa4e-410d-b6b7-3ac1954295d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9c0e92ff-aa4e-410d-b6b7-3ac1954295d8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_c6cbb0c7-a80b-4ea1-b5a6-b52682c09490" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_c6cbb0c7-a80b-4ea1-b5a6-b52682c09490" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_2b281406-2a48-4bcf-9b72-be667e0f0388" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_affd5ca7-51ef-4106-9012-653aed7d544f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_2b281406-2a48-4bcf-9b72-be667e0f0388" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_428cb06e-5579-492e-8430-61f3801e8663" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9bcb3fe7-05e7-4eb0-b32d-360dd0c1f33c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_07f728e3-b383-4326-bf3c-77c0b160382d" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9bcb3fe7-05e7-4eb0-b32d-360dd0c1f33c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_2c70b5b0-e787-4464-a862-fa4dca0087ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9bcb3fe7-05e7-4eb0-b32d-360dd0c1f33c" xlink:to="loc_us-gaap_PlanNameAxis_2c70b5b0-e787-4464-a862-fa4dca0087ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_2c70b5b0-e787-4464-a862-fa4dca0087ea_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_2c70b5b0-e787-4464-a862-fa4dca0087ea" xlink:to="loc_us-gaap_PlanNameDomain_2c70b5b0-e787-4464-a862-fa4dca0087ea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_c4c88635-432a-4659-ba5c-14b7d5c7c109" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_2c70b5b0-e787-4464-a862-fa4dca0087ea" xlink:to="loc_us-gaap_PlanNameDomain_c4c88635-432a-4659-ba5c-14b7d5c7c109" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2009EquityIncentivePlanLTIPMember_0ed5e4f9-67a7-461a-bef3-d51ce659cc81" xlink:href="ari-20230331.xsd#ari_A2009EquityIncentivePlanLTIPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_c4c88635-432a-4659-ba5c-14b7d5c7c109" xlink:to="loc_ari_A2009EquityIncentivePlanLTIPMember_0ed5e4f9-67a7-461a-bef3-d51ce659cc81" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_c0058e7c-1f1e-4f14-a409-e62b19ec1e97" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9bcb3fe7-05e7-4eb0-b32d-360dd0c1f33c" xlink:to="loc_us-gaap_AwardTypeAxis_c0058e7c-1f1e-4f14-a409-e62b19ec1e97" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_c0058e7c-1f1e-4f14-a409-e62b19ec1e97_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_c0058e7c-1f1e-4f14-a409-e62b19ec1e97" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_c0058e7c-1f1e-4f14-a409-e62b19ec1e97_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4e2f0c64-8de6-4dcf-84dc-1fb33559bdae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_c0058e7c-1f1e-4f14-a409-e62b19ec1e97" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4e2f0c64-8de6-4dcf-84dc-1fb33559bdae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_b4a8246d-d607-4a2e-8cc0-c90d78930afe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4e2f0c64-8de6-4dcf-84dc-1fb33559bdae" xlink:to="loc_us-gaap_RestrictedStockMember_b4a8246d-d607-4a2e-8cc0-c90d78930afe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_2f53bb4b-522d-469d-a40d-b33b0981a791" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4e2f0c64-8de6-4dcf-84dc-1fb33559bdae" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_2f53bb4b-522d-469d-a40d-b33b0981a791" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/ShareBasedPaymentsSummaryofRestrictedStockandRSUVestingDatesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#ShareBasedPaymentsSummaryofRestrictedStockandRSUVestingDatesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/ShareBasedPaymentsSummaryofRestrictedStockandRSUVestingDatesDetails" xlink:type="extended" id="i9e19f52a73a34e7d8df9446bc8fc08cd_ShareBasedPaymentsSummaryofRestrictedStockandRSUVestingDatesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3c5f6c67-9ed5-42b7-b24c-4b3133f3359b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest_ac8775a2-5ea4-4f5b-841c-e4381f3f1c78" xlink:href="ari-20230331.xsd#ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3c5f6c67-9ed5-42b7-b24c-4b3133f3359b" xlink:to="loc_ari_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest_ac8775a2-5ea4-4f5b-841c-e4381f3f1c78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543e42d6-221a-4111-9a07-9ae2e62b9fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3c5f6c67-9ed5-42b7-b24c-4b3133f3359b" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543e42d6-221a-4111-9a07-9ae2e62b9fb3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_fcdd839e-9910-4974-b037-4990d6b31c45" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543e42d6-221a-4111-9a07-9ae2e62b9fb3" xlink:to="loc_us-gaap_PlanNameAxis_fcdd839e-9910-4974-b037-4990d6b31c45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_fcdd839e-9910-4974-b037-4990d6b31c45_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_fcdd839e-9910-4974-b037-4990d6b31c45" xlink:to="loc_us-gaap_PlanNameDomain_fcdd839e-9910-4974-b037-4990d6b31c45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_7b91b02a-2257-45ef-8c34-d592e5c71216" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_fcdd839e-9910-4974-b037-4990d6b31c45" xlink:to="loc_us-gaap_PlanNameDomain_7b91b02a-2257-45ef-8c34-d592e5c71216" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_A2009EquityIncentivePlanLTIPMember_ab0d222a-4ad4-4b35-92d4-7a48cbf0624e" xlink:href="ari-20230331.xsd#ari_A2009EquityIncentivePlanLTIPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_7b91b02a-2257-45ef-8c34-d592e5c71216" xlink:to="loc_ari_A2009EquityIncentivePlanLTIPMember_ab0d222a-4ad4-4b35-92d4-7a48cbf0624e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_b4ee63e7-e506-4595-9dd4-5d1ac65ca122" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543e42d6-221a-4111-9a07-9ae2e62b9fb3" xlink:to="loc_us-gaap_AwardTypeAxis_b4ee63e7-e506-4595-9dd4-5d1ac65ca122" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b4ee63e7-e506-4595-9dd4-5d1ac65ca122_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_b4ee63e7-e506-4595-9dd4-5d1ac65ca122" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b4ee63e7-e506-4595-9dd4-5d1ac65ca122_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a383769-f354-47e2-b42b-c803f73ffd59" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_b4ee63e7-e506-4595-9dd4-5d1ac65ca122" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a383769-f354-47e2-b42b-c803f73ffd59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_73c21ecf-80ea-4852-902a-14e2685263dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a383769-f354-47e2-b42b-c803f73ffd59" xlink:to="loc_us-gaap_RestrictedStockMember_73c21ecf-80ea-4852-902a-14e2685263dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_cd2bf0f0-a569-4d24-8691-13b9cce2836a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a383769-f354-47e2-b42b-c803f73ffd59" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_cd2bf0f0-a569-4d24-8691-13b9cce2836a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardDateAxis_3f9f2a4c-532c-4fc4-ad80-f5864237404d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543e42d6-221a-4111-9a07-9ae2e62b9fb3" xlink:to="loc_us-gaap_AwardDateAxis_3f9f2a4c-532c-4fc4-ad80-f5864237404d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardDateDomain_3f9f2a4c-532c-4fc4-ad80-f5864237404d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardDateAxis_3f9f2a4c-532c-4fc4-ad80-f5864237404d" xlink:to="loc_us-gaap_AwardDateDomain_3f9f2a4c-532c-4fc4-ad80-f5864237404d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardDateDomain_27e06bfa-070f-40ea-aea4-fd445ee159e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardDateAxis_3f9f2a4c-532c-4fc4-ad80-f5864237404d" xlink:to="loc_us-gaap_AwardDateDomain_27e06bfa-070f-40ea-aea4-fd445ee159e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_YearOneMember_1278e90c-165d-498d-b2bc-b2b17de55de3" xlink:href="ari-20230331.xsd#ari_YearOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AwardDateDomain_27e06bfa-070f-40ea-aea4-fd445ee159e5" xlink:to="loc_ari_YearOneMember_1278e90c-165d-498d-b2bc-b2b17de55de3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_YearTwoMember_d581e596-5758-42ef-80d1-e68d4dffc246" xlink:href="ari-20230331.xsd#ari_YearTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AwardDateDomain_27e06bfa-070f-40ea-aea4-fd445ee159e5" xlink:to="loc_ari_YearTwoMember_d581e596-5758-42ef-80d1-e68d4dffc246" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_YearThreeMember_8a656880-a282-446a-8f8c-093f445df9dc" xlink:href="ari-20230331.xsd#ari_YearThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AwardDateDomain_27e06bfa-070f-40ea-aea4-fd445ee159e5" xlink:to="loc_ari_YearThreeMember_8a656880-a282-446a-8f8c-093f445df9dc" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/StockholdersEquityAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#StockholdersEquityAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/StockholdersEquityAdditionalInformationDetails" xlink:type="extended" id="i80353b10b17049d7ae28bdc2d36faddf_StockholdersEquityAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_6e5c4a8c-9b45-4089-9a02-27ffb7a4e70d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_6e5c4a8c-9b45-4089-9a02-27ffb7a4e70d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_edd54a97-79f9-45d4-bea6-213bc8b1faf5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_edd54a97-79f9-45d4-bea6-213bc8b1faf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_24c3e28f-df60-4b25-8dd2-0c3c9bd7ab76" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_24c3e28f-df60-4b25-8dd2-0c3c9bd7ab76" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_d02fe325-9be5-44bf-8fb9-823127992dfe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_d02fe325-9be5-44bf-8fb9-823127992dfe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_28664228-2705-42f7-b446-a358bdf1dfbd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_28664228-2705-42f7-b446-a358bdf1dfbd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_5407f3f2-e075-47b4-998b-665c311b3cb7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_CommonStockSharesIssued_5407f3f2-e075-47b4-998b-665c311b3cb7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_3d925d51-064d-4529-aed2-2088c8995ca3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_3d925d51-064d-4529-aed2-2088c8995ca3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_6168f237-4130-4022-89d0-22e0e29299e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_6168f237-4130-4022-89d0-22e0e29299e2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockLiquidationPreference_dbb5ab16-358d-4dac-8ff6-9f02eeff3983" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockLiquidationPreference"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_PreferredStockLiquidationPreference_dbb5ab16-358d-4dac-8ff6-9f02eeff3983" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_71f19b64-57cd-4865-a365-9c54446e8909" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_71f19b64-57cd-4865-a365-9c54446e8909" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_c3a94b5b-6f6b-4da4-804f-10d86ee52c08" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_c3a94b5b-6f6b-4da4-804f-10d86ee52c08" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_876fd4e6-95d0-4b6a-a7fa-5f983feaf65d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_10e449da-5ec4-4762-b207-4cd68670efa4" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_876fd4e6-95d0-4b6a-a7fa-5f983feaf65d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_69f3bb98-2083-4bc2-a2cc-92fa234ce388" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_876fd4e6-95d0-4b6a-a7fa-5f983feaf65d" xlink:to="loc_us-gaap_StatementClassOfStockAxis_69f3bb98-2083-4bc2-a2cc-92fa234ce388" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_69f3bb98-2083-4bc2-a2cc-92fa234ce388_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_69f3bb98-2083-4bc2-a2cc-92fa234ce388" xlink:to="loc_us-gaap_ClassOfStockDomain_69f3bb98-2083-4bc2-a2cc-92fa234ce388_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_5f86792a-d894-45b9-9484-ee3380796dff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_69f3bb98-2083-4bc2-a2cc-92fa234ce388" xlink:to="loc_us-gaap_ClassOfStockDomain_5f86792a-d894-45b9-9484-ee3380796dff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_e7a0660f-9412-41ec-84e2-c252364efca2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeriesBPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5f86792a-d894-45b9-9484-ee3380796dff" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_e7a0660f-9412-41ec-84e2-c252364efca2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeriesB1PreferredStockMember_3573a5a9-8c0e-439c-81ea-d5ca9cb7c421" xlink:href="ari-20230331.xsd#ari_SeriesB1PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5f86792a-d894-45b9-9484-ee3380796dff" xlink:to="loc_ari_SeriesB1PreferredStockMember_3573a5a9-8c0e-439c-81ea-d5ca9cb7c421" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/StockholdersEquityDividendsDeclaredDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#StockholdersEquityDividendsDeclaredDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/StockholdersEquityDividendsDeclaredDetails" xlink:type="extended" id="ib1bf60293aff4c1fa637d238418cb9c6_StockholdersEquityDividendsDeclaredDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_a92eb0e4-7c1a-4807-82fa-e4804a02be56" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_7075cd93-b857-428d-a6db-6e4ba6c43289" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_a92eb0e4-7c1a-4807-82fa-e4804a02be56" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_7075cd93-b857-428d-a6db-6e4ba6c43289" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsPerShareDeclared_b6690e90-3b0b-45aa-bb38-a5c967051c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_a92eb0e4-7c1a-4807-82fa-e4804a02be56" xlink:to="loc_us-gaap_PreferredStockDividendsPerShareDeclared_b6690e90-3b0b-45aa-bb38-a5c967051c5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_6207dadd-bce1-4ae9-856b-b9f4c6cedafb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_a92eb0e4-7c1a-4807-82fa-e4804a02be56" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_6207dadd-bce1-4ae9-856b-b9f4c6cedafb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0bef4240-300f-4b16-ae3f-cff16699edc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_6207dadd-bce1-4ae9-856b-b9f4c6cedafb" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0bef4240-300f-4b16-ae3f-cff16699edc8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0bef4240-300f-4b16-ae3f-cff16699edc8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0bef4240-300f-4b16-ae3f-cff16699edc8" xlink:to="loc_us-gaap_ClassOfStockDomain_0bef4240-300f-4b16-ae3f-cff16699edc8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_010df47d-b4b4-44e2-9a97-e34cd093d91d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0bef4240-300f-4b16-ae3f-cff16699edc8" xlink:to="loc_us-gaap_ClassOfStockDomain_010df47d-b4b4-44e2-9a97-e34cd093d91d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommonStockAllClassesMember_7d0f4bdd-f86d-4bdb-9031-2a235e32d938" xlink:href="ari-20230331.xsd#ari_CommonStockAllClassesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_010df47d-b4b4-44e2-9a97-e34cd093d91d" xlink:to="loc_ari_CommonStockAllClassesMember_7d0f4bdd-f86d-4bdb-9031-2a235e32d938" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_c8a7f137-bb02-4fd7-b1a0-3be61b95f139" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeriesBPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_010df47d-b4b4-44e2-9a97-e34cd093d91d" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_c8a7f137-bb02-4fd7-b1a0-3be61b95f139" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SeriesB1PreferredStockMember_74eee85f-839e-4ec1-8a52-1e347dd76823" xlink:href="ari-20230331.xsd#ari_SeriesB1PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_010df47d-b4b4-44e2-9a97-e34cd093d91d" xlink:to="loc_ari_SeriesB1PreferredStockMember_74eee85f-839e-4ec1-8a52-1e347dd76823" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#CommitmentsandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/CommitmentsandContingenciesDetails" xlink:type="extended" id="i9bb369eafa65413e809257033fa5f9ec_CommitmentsandContingenciesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_debe57a9-7eaa-4976-82b5-ad79bab7b4a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LossContingencyDamagesSoughtLossOnInvestmentValue_a30a3578-6cc1-4ee5-af2a-92a69567f271" xlink:href="ari-20230331.xsd#ari_LossContingencyDamagesSoughtLossOnInvestmentValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_debe57a9-7eaa-4976-82b5-ad79bab7b4a4" xlink:to="loc_ari_LossContingencyDamagesSoughtLossOnInvestmentValue_a30a3578-6cc1-4ee5-af2a-92a69567f271" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount_8aca79c7-d5c8-447c-b2cd-e9da59db7eb9" xlink:href="ari-20230331.xsd#ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_debe57a9-7eaa-4976-82b5-ad79bab7b4a4" xlink:to="loc_ari_MortgageLoansonRealEstateCommitmenttoLendUnfundedAmount_8aca79c7-d5c8-447c-b2cd-e9da59db7eb9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_e5035aca-4cba-427c-b143-e42c199dafeb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_debe57a9-7eaa-4976-82b5-ad79bab7b4a4" xlink:to="loc_us-gaap_DebtInstrumentTerm_e5035aca-4cba-427c-b143-e42c199dafeb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_0e8eb3d3-93f1-4c6f-95d5-851083372416" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_debe57a9-7eaa-4976-82b5-ad79bab7b4a4" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_0e8eb3d3-93f1-4c6f-95d5-851083372416" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c9b731fb-f022-4838-9504-9d1e0bb3fa21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_0e8eb3d3-93f1-4c6f-95d5-851083372416" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c9b731fb-f022-4838-9504-9d1e0bb3fa21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c9b731fb-f022-4838-9504-9d1e0bb3fa21_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c9b731fb-f022-4838-9504-9d1e0bb3fa21" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_c9b731fb-f022-4838-9504-9d1e0bb3fa21_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0e5c142d-6174-464c-932f-ce649a9ddc16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_c9b731fb-f022-4838-9504-9d1e0bb3fa21" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0e5c142d-6174-464c-932f-ce649a9ddc16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_dceeb0ac-d61e-46db-8566-ad3b014c806a" xlink:href="ari-20230331.xsd#ari_CommercialMortgageandSubordinatedPortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0e5c142d-6174-464c-932f-ce649a9ddc16" xlink:to="loc_ari_CommercialMortgageandSubordinatedPortfolioSegmentMember_dceeb0ac-d61e-46db-8566-ad3b014c806a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueofCompanysFinancialInstrumentsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueofCompanysFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueofCompanysFinancialInstrumentsDetails" xlink:type="extended" id="i6567aef5177b4b03a91a6bdf2bbf6662_FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueofCompanysFinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_83ce075a-a972-4d2e-b7c4-c33c44c1b87e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_83ce075a-a972-4d2e-b7c4-c33c44c1b87e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_831cf599-173b-4b2e-983e-363b575f20bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_831cf599-173b-4b2e-983e-363b575f20bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_19e54e6f-8699-4a2d-9bd2-345c8c47c302" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_19e54e6f-8699-4a2d-9bd2-345c8c47c302" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_b03e8300-6fe8-4212-8a37-82e2d884fb45" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_b03e8300-6fe8-4212-8a37-82e2d884fb45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_ed753acd-2e1a-4288-ad31-cfc09f25caa3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_ed753acd-2e1a-4288-ad31-cfc09f25caa3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestmentNetFairValueDisclousre_95db5f36-b0bd-4ba7-9af4-989576972c65" xlink:href="ari-20230331.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestmentNetFairValueDisclousre"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestmentNetFairValueDisclousre_95db5f36-b0bd-4ba7-9af4-989576972c65" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_1b96cd13-3daa-4d53-a243-5216a66ba4ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_1b96cd13-3daa-4d53-a243-5216a66ba4ce" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_b64aedfe-7bfa-40f2-a83c-ddf471284c85" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_b15d00a8-1aac-4890-ab04-584e2b92cf99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_b15d00a8-1aac-4890-ab04-584e2b92cf99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_b15d00a8-1aac-4890-ab04-584e2b92cf99_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_b15d00a8-1aac-4890-ab04-584e2b92cf99" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_b15d00a8-1aac-4890-ab04-584e2b92cf99_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_84b5e374-024c-46ed-9dc0-e315430317fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_b15d00a8-1aac-4890-ab04-584e2b92cf99" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_84b5e374-024c-46ed-9dc0-e315430317fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_16d97a46-6d5c-43f4-ae94-e74d57b2cdbd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_84b5e374-024c-46ed-9dc0-e315430317fc" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_16d97a46-6d5c-43f4-ae94-e74d57b2cdbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2054e595-7ec3-478e-9e95-56ddd98920c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_16d97a46-6d5c-43f4-ae94-e74d57b2cdbd" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2054e595-7ec3-478e-9e95-56ddd98920c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_7366a99b-5662-4838-a01e-2d7431836647" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_16d97a46-6d5c-43f4-ae94-e74d57b2cdbd" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_7366a99b-5662-4838-a01e-2d7431836647" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_14cd16d1-7ba1-4b0d-90ac-954bf897a02b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_14cd16d1-7ba1-4b0d-90ac-954bf897a02b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_14cd16d1-7ba1-4b0d-90ac-954bf897a02b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_14cd16d1-7ba1-4b0d-90ac-954bf897a02b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_14cd16d1-7ba1-4b0d-90ac-954bf897a02b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccc9150e-db95-4b2b-b623-fb17c7c0e1e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_14cd16d1-7ba1-4b0d-90ac-954bf897a02b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccc9150e-db95-4b2b-b623-fb17c7c0e1e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_fb695e41-947b-4d49-8380-5c361d5cbd7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccc9150e-db95-4b2b-b623-fb17c7c0e1e6" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_fb695e41-947b-4d49-8380-5c361d5cbd7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_377201e6-55c3-4339-ad9d-b87435437620" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_377201e6-55c3-4339-ad9d-b87435437620" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_377201e6-55c3-4339-ad9d-b87435437620_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_377201e6-55c3-4339-ad9d-b87435437620" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_377201e6-55c3-4339-ad9d-b87435437620_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4c7ff71f-037a-4648-82bd-d49f668e4b9d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_377201e6-55c3-4339-ad9d-b87435437620" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4c7ff71f-037a-4648-82bd-d49f668e4b9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialMortgagePortfolioSegmentMember_59430f68-54bd-46dd-b346-4cf012295fee" xlink:href="ari-20230331.xsd#ari_CommercialMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4c7ff71f-037a-4648-82bd-d49f668e4b9d" xlink:to="loc_ari_CommercialMortgagePortfolioSegmentMember_59430f68-54bd-46dd-b346-4cf012295fee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_SubordinateMortgagePortfolioSegmentMember_5e5391db-1f33-480e-82e5-694cbfdbeeeb" xlink:href="ari-20230331.xsd#ari_SubordinateMortgagePortfolioSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_4c7ff71f-037a-4648-82bd-d49f668e4b9d" xlink:to="loc_ari_SubordinateMortgagePortfolioSegmentMember_5e5391db-1f33-480e-82e5-694cbfdbeeeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_435299b3-89f2-4124-9028-a97eca8f2bad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:to="loc_us-gaap_DebtInstrumentAxis_435299b3-89f2-4124-9028-a97eca8f2bad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_435299b3-89f2-4124-9028-a97eca8f2bad_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_435299b3-89f2-4124-9028-a97eca8f2bad" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_435299b3-89f2-4124-9028-a97eca8f2bad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ffce9253-9b4a-4466-b739-1ad4965d86ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_435299b3-89f2-4124-9028-a97eca8f2bad" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ffce9253-9b4a-4466-b739-1ad4965d86ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_TwoThousandTwentyThreeNotesMember_23ff9a75-e729-4f23-aeb9-0f1221ffc649" xlink:href="ari-20230331.xsd#ari_TwoThousandTwentyThreeNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ffce9253-9b4a-4466-b739-1ad4965d86ab" xlink:to="loc_ari_TwoThousandTwentyThreeNotesMember_23ff9a75-e729-4f23-aeb9-0f1221ffc649" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_22ab3767-a778-4ece-9462-c442f542f27a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_092565a4-d6af-4aad-94f3-fefc738ab73d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_09c0edcf-6495-4a3b-8a43-f5fbb2dc3a48" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_092565a4-d6af-4aad-94f3-fefc738ab73d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_32f11f25-91d3-4964-9ee7-9da7ba4fedcd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_092565a4-d6af-4aad-94f3-fefc738ab73d" xlink:to="loc_us-gaap_SecuredDebtMember_32f11f25-91d3-4964-9ee7-9da7ba4fedcd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_273838b7-2f43-46a2-bd3e-c0fe6b66489a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_092565a4-d6af-4aad-94f3-fefc738ab73d" xlink:to="loc_us-gaap_SeniorNotesMember_273838b7-2f43-46a2-bd3e-c0fe6b66489a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/NetIncomeperShareAdditionalInformationDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#NetIncomeperShareAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/NetIncomeperShareAdditionalInformationDetails" xlink:type="extended" id="id541cb3315044d2ea551df1b307f2682_NetIncomeperShareAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_cb7b2354-f2ff-4fda-9212-62f4e2ceb544" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToContingentlyIssuableShares_fb1af8aa-2c52-4881-b2be-72b940e3bf8f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncrementalCommonSharesAttributableToContingentlyIssuableShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_cb7b2354-f2ff-4fda-9212-62f4e2ceb544" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToContingentlyIssuableShares_fb1af8aa-2c52-4881-b2be-72b940e3bf8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_6296f2c8-aed4-47d1-b878-76f196f68375" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_cb7b2354-f2ff-4fda-9212-62f4e2ceb544" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_6296f2c8-aed4-47d1-b878-76f196f68375" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_55a4ed26-77f3-460d-92a3-3874edcc521a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_cb7b2354-f2ff-4fda-9212-62f4e2ceb544" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_55a4ed26-77f3-460d-92a3-3874edcc521a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4ed934ce-8a1a-4e49-9469-bdba7ca244c5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_55a4ed26-77f3-460d-92a3-3874edcc521a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4ed934ce-8a1a-4e49-9469-bdba7ca244c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4ed934ce-8a1a-4e49-9469-bdba7ca244c5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4ed934ce-8a1a-4e49-9469-bdba7ca244c5" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_4ed934ce-8a1a-4e49-9469-bdba7ca244c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a6ee9283-4f87-4aa4-ba40-d49e0f597a85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4ed934ce-8a1a-4e49-9469-bdba7ca244c5" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a6ee9283-4f87-4aa4-ba40-d49e0f597a85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_6a48f122-f43c-46f2-aefc-5734bf3b7c86" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a6ee9283-4f87-4aa4-ba40-d49e0f597a85" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_6a48f122-f43c-46f2-aefc-5734bf3b7c86" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#SubsequentEventsDetails"/>
  <link:definitionLink xlink:role="http://www.apolloreit.com/role/SubsequentEventsDetails" xlink:type="extended" id="iee700214739e4980b2a268e1cf0b8e86_SubsequentEventsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_c82fea7d-3abe-4fd0-9042-bca33a4c9dfa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_21c70bd0-1354-4478-8531-e38dfe192434" xlink:href="ari-20230331.xsd#ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_c82fea7d-3abe-4fd0-9042-bca33a4c9dfa" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_21c70bd0-1354-4478-8531-e38dfe192434" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CommercialRealEstateLoansHeldForSaleConstructionAndFinancingCostsCapitalized_a034d4a4-4951-4637-8433-2ccbbd2e8235" xlink:href="ari-20230331.xsd#ari_CommercialRealEstateLoansHeldForSaleConstructionAndFinancingCostsCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_c82fea7d-3abe-4fd0-9042-bca33a4c9dfa" xlink:to="loc_ari_CommercialRealEstateLoansHeldForSaleConstructionAndFinancingCostsCapitalized_a034d4a4-4951-4637-8433-2ccbbd2e8235" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_e3b14524-2127-4245-a050-834efe595d26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_c82fea7d-3abe-4fd0-9042-bca33a4c9dfa" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_e3b14524-2127-4245-a050-834efe595d26" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_d9e4a929-e256-4a2c-aa2c-3acaaa74da95" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_c82fea7d-3abe-4fd0-9042-bca33a4c9dfa" xlink:to="loc_us-gaap_SubsequentEventTable_d9e4a929-e256-4a2c-aa2c-3acaaa74da95" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_ed3d562d-7088-4307-94d4-bca00626d7c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_d9e4a929-e256-4a2c-aa2c-3acaaa74da95" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_ed3d562d-7088-4307-94d4-bca00626d7c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_ed3d562d-7088-4307-94d4-bca00626d7c7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ed3d562d-7088-4307-94d4-bca00626d7c7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_ed3d562d-7088-4307-94d4-bca00626d7c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_b6d408ce-6739-408e-a1b9-8686cef7af2b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ed3d562d-7088-4307-94d4-bca00626d7c7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_b6d408ce-6739-408e-a1b9-8686cef7af2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_eed5cf2c-5f07-4725-8369-2a6aa3b2451c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_b6d408ce-6739-408e-a1b9-8686cef7af2b" xlink:to="loc_us-gaap_SubsequentEventMember_eed5cf2c-5f07-4725-8369-2a6aa3b2451c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_58582ac8-936d-4b69-93ef-669efc5d8d64" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_d9e4a929-e256-4a2c-aa2c-3acaaa74da95" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_58582ac8-936d-4b69-93ef-669efc5d8d64" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_58582ac8-936d-4b69-93ef-669efc5d8d64_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_58582ac8-936d-4b69-93ef-669efc5d8d64" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_58582ac8-936d-4b69-93ef-669efc5d8d64_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_3c64f761-6db1-4c3d-81e9-3912b382a9e0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_58582ac8-936d-4b69-93ef-669efc5d8d64" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_3c64f761-6db1-4c3d-81e9-3912b382a9e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_HotelPropertyTucsonAZMember_1bb6ff69-a566-4d94-bae9-2250b757111e" xlink:href="ari-20230331.xsd#ari_HotelPropertyTucsonAZMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_3c64f761-6db1-4c3d-81e9-3912b382a9e0" xlink:to="loc_ari_HotelPropertyTucsonAZMember_1bb6ff69-a566-4d94-bae9-2250b757111e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-roles-2022.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate202006Member" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountingStandardsUpdate202006Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember" xlink:to="loc_us-gaap_AccountingStandardsUpdate202006Member" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
