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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:ea891aee-c480-4267-87b0-8c0d69ad2e7c,g:8caab272-20ba-40de-8bea-466b03dd73e9-->
<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.farmermac.com/role/CoverPage" xlink:type="simple" xlink:href="agm-20250221.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/CoverPage" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitiesTable_6ac1bb6a-ac80-43c0-8f5e-61cc1f0a5c3a" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntitiesTable_6ac1bb6a-ac80-43c0-8f5e-61cc1f0a5c3a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_be3b35c8-7532-4d85-923e-452403917784" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_6ac1bb6a-ac80-43c0-8f5e-61cc1f0a5c3a" xlink:to="loc_us-gaap_StatementClassOfStockAxis_be3b35c8-7532-4d85-923e-452403917784" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_be3b35c8-7532-4d85-923e-452403917784_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_be3b35c8-7532-4d85-923e-452403917784" xlink:to="loc_us-gaap_ClassOfStockDomain_be3b35c8-7532-4d85-923e-452403917784_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_be3b35c8-7532-4d85-923e-452403917784" xlink:to="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_f6e6bef5-bcd8-40ec-8136-961b4c9b1f59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_CommonClassAMember_f6e6bef5-bcd8-40ec-8136-961b4c9b1f59" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassCMember_db92ee1e-da38-4e8f-85aa-bff1905132ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonClassCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_CommonClassCMember_db92ee1e-da38-4e8f-85aa-bff1905132ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_f32eb1ee-b2f4-4cbc-87a6-375dd1f75f9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesDPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_f32eb1ee-b2f4-4cbc-87a6-375dd1f75f9d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesEPreferredStockMember_ab4df9b0-a3d4-4227-bbb4-658053881c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesEPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_SeriesEPreferredStockMember_ab4df9b0-a3d4-4227-bbb4-658053881c7b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesFPreferredStockMember_1b62811d-3505-4311-be37-7e31b823025f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesFPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_SeriesFPreferredStockMember_1b62811d-3505-4311-be37-7e31b823025f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_51016ad8-3522-4f30-bf5a-50dcf1e0a9f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesGPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b36fad62-9874-462a-b912-a8abe76c5234" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_51016ad8-3522-4f30-bf5a-50dcf1e0a9f0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_f0beb4ce-d8c5-45a9-9768-ea4c9c12af21" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_DocumentType_f0beb4ce-d8c5-45a9-9768-ea4c9c12af21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_d80e6085-7c47-4976-9822-bd663db5115b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_Security12bTitle_d80e6085-7c47-4976-9822-bd663db5115b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_cc26bb7e-1021-48bc-b3d1-1c1a40c31b1b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_TradingSymbol_cc26bb7e-1021-48bc-b3d1-1c1a40c31b1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_b98ea903-20fb-4f60-aa8d-9c210b1b71ca" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_SecurityExchangeName_b98ea903-20fb-4f60-aa8d-9c210b1b71ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_6a1898db-a4fc-4ab0-b87b-d7febfad011f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_DocumentPeriodEndDate_6a1898db-a4fc-4ab0-b87b-d7febfad011f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_78324aa9-2d8a-42d5-b235-2ee12acf3208" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityRegistrantName_78324aa9-2d8a-42d5-b235-2ee12acf3208" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_26d93ef9-fce1-4552-9968-911d603ce4ea" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_CityAreaCode_26d93ef9-fce1-4552-9968-911d603ce4ea" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_a15c50c8-bb6b-47be-986d-9d4f76eda640" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_LocalPhoneNumber_a15c50c8-bb6b-47be-986d-9d4f76eda640" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_WrittenCommunications_b990a8cd-6404-42a7-8990-02bec7733702" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_WrittenCommunications"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_WrittenCommunications_b990a8cd-6404-42a7-8990-02bec7733702" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SolicitingMaterial_c083cc0a-2928-43cc-8860-38f0a8f5f72a" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_SolicitingMaterial"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_SolicitingMaterial_c083cc0a-2928-43cc-8860-38f0a8f5f72a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_PreCommencementTenderOffer_a43d3263-c3e4-4c54-9f29-a711536271f9" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_PreCommencementTenderOffer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_PreCommencementTenderOffer_a43d3263-c3e4-4c54-9f29-a711536271f9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_PreCommencementIssuerTenderOffer_f6ade303-6caf-4a23-b114-0222e81e7250" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_PreCommencementIssuerTenderOffer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_PreCommencementIssuerTenderOffer_f6ade303-6caf-4a23-b114-0222e81e7250" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_892b7a63-ca6c-4bb8-b3ca-42da11a2b840" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityFileNumber_892b7a63-ca6c-4bb8-b3ca-42da11a2b840" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_b0a442c8-6d5e-4712-83f0-9d3669dbfaaf" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityCentralIndexKey_b0a442c8-6d5e-4712-83f0-9d3669dbfaaf" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_18cdd40b-5fa6-4cb9-b719-461faad43e25" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityTaxIdentificationNumber_18cdd40b-5fa6-4cb9-b719-461faad43e25" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_79ce1f49-72e7-4921-8bd0-33cf27a0710e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityAddressAddressLine1_79ce1f49-72e7-4921-8bd0-33cf27a0710e" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_a2a2315e-36f2-4e08-b1a6-b0f42d2105b3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityAddressPostalZipCode_a2a2315e-36f2-4e08-b1a6-b0f42d2105b3" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_a109ca58-1ac2-4984-ab1a-64941eb1fcf1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_AmendmentFlag_a109ca58-1ac2-4984-ab1a-64941eb1fcf1" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_5bf6a27b-6076-4e41-8031-c52e253309e5" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityIncorporationStateCountryCode_5bf6a27b-6076-4e41-8031-c52e253309e5" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_038c4f83-5da0-4724-b133-1b71e1e5d802" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityAddressCityOrTown_038c4f83-5da0-4724-b133-1b71e1e5d802" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_56fafeda-c6f2-404e-b387-90890ae3f56b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityAddressStateOrProvince_56fafeda-c6f2-404e-b387-90890ae3f56b" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_c6da34bf-1beb-4fc1-8d85-892642dc5cba" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_811a96e0-ae2e-486f-9092-962746eb7b9c" xlink:to="loc_dei_EntityEmergingGrowthCompany_c6da34bf-1beb-4fc1-8d85-892642dc5cba" xlink:type="arc" order="21"/>
  </link:definitionLink>
</link:linkbase>
