<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:href="agm-20190930.xsd#BusinessSegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:href="agm-20190930.xsd#BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingTables" xlink:href="agm-20190930.xsd#BusinessSegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:href="agm-20190930.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="agm-20190930.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/CoverPage" xlink:href="agm-20190930.xsd#CoverPage" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/Equity" xlink:href="agm-20190930.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:href="agm-20190930.xsd#EquityCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/EquityNarrativeDetails" xlink:href="agm-20190930.xsd#EquityNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosures" xlink:href="agm-20190930.xsd#FairValueDisclosures" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresQuantitativeInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresTables" xlink:href="agm-20190930.xsd#FairValueDisclosuresTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivatives" xlink:href="agm-20190930.xsd#FinancialDerivatives" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesTables" xlink:href="agm-20190930.xsd#FinancialDerivativesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecurities" xlink:href="agm-20190930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesTables" xlink:href="agm-20190930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLosses" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesNarrativeDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesTables" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_54379E4CB2356407099A37765954327F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1C30A860D3C0BB37ED1437765952AE52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_54379E4CB2356407099A37765954327F" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1C30A860D3C0BB37ED1437765952AE52" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_CE758047B916719A7FED3776595248BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1C30A860D3C0BB37ED1437765952AE52" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_CE758047B916719A7FED3776595248BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_CE758047B916719A7FED3776595248BF" xlink:to="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_CE758047B916719A7FED3776595248BF" xlink:to="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmRanchMember" xlink:label="loc_agm_FarmRanchMember_DE3F88AD2C097DF3BE9D37765953F7DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_agm_FarmRanchMember_DE3F88AD2C097DF3BE9D37765953F7DB" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_CC0B20AC72A06C5A354C37765953E5E9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_agm_USDAGuaranteesMember_CC0B20AC72A06C5A354C37765953E5E9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_RuralUtilitiesMember" xlink:label="loc_agm_RuralUtilitiesMember_A269AC2DBFD68B5A9FC0377659534D68" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_agm_RuralUtilitiesMember_A269AC2DBFD68B5A9FC0377659534D68" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_8E7A7F52F466D3B9659F3776595309CD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_agm_InstitutionalCreditMemberMember_8E7A7F52F466D3B9659F3776595309CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateMember" xlink:label="loc_us-gaap_CorporateMember_3BB38FAA75A4111D125937765953B692" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_us-gaap_CorporateMember_3BB38FAA75A4111D125937765953B692" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_A08EDCF700F526E52434377659549CF2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B81E49AD54FD1086C36F37765952EFB3" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_A08EDCF700F526E52434377659549CF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationProfitLossAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_54379E4CB2356407099A37765954327F" xlink:to="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_80C88B8C7543D45B5DB1377659545894" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_80C88B8C7543D45B5DB1377659545894" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet" xlink:label="loc_agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet_356165E698ABD40DB15C3776595415BF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet_356165E698ABD40DB15C3776595415BF" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NetEffectiveSpread" xlink:label="loc_agm_NetEffectiveSpread_68B763264D56F80A47F937765955D61C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_NetEffectiveSpread_68B763264D56F80A47F937765955D61C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions" xlink:label="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_7D5EAB241E34360EC5AA37765956BF0E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_7D5EAB241E34360EC5AA37765956BF0E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees" xlink:label="loc_agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees_7FB959E3AE9FE6C345C1377659564D3D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees_7FB959E3AE9FE6C345C1377659564D3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_CE98BFB9FFED00D99AED37765956F94B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_NoninterestIncome_CE98BFB9FFED00D99AED37765956F94B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_15FFE075D175C837874D37765956F688" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_15FFE075D175C837874D37765956F688" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForOtherCreditLosses" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_8C133395D752221F526237765957158A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_8C133395D752221F526237765957158A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_6C2336BE22947A16C6D8377659575F29" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_6C2336BE22947A16C6D8377659575F29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_796425DDCF0FD448025D37765957F716" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_NoninterestExpense_796425DDCF0FD448025D37765957F716" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarningsBeforeIncomeTaxes" xlink:label="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_388F215EFE5737E4ADE837765957BB1E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_388F215EFE5737E4ADE837765957BB1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_C3CB127D430CF24062A3377659573AF1" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_C3CB127D430CF24062A3377659573AF1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends" xlink:label="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_7CC35EA348AA224DA6EF37765957CB3F" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_7CC35EA348AA224DA6EF37765957CB3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_4548E684822872FDF60A3776595839D9" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_4548E684822872FDF60A3776595839D9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WriteOffOfStockIssuanceCostsPreferredStock" xlink:label="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_165A5968C8255AB0C8D3377659581CE0" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_165A5968C8255AB0C8D3377659581CE0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarnings" xlink:label="loc_agm_SegmentCoreEarnings_0540181C41E7C2D37FC13776595848D4" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_SegmentCoreEarnings_0540181C41E7C2D37FC13776595848D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_34F3FC9BFE00B01062EE377659587B1A" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_us-gaap_Assets_34F3FC9BFE00B01062EE377659587B1A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance" xlink:label="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_AAE4996668F9120D6BC0377659583340" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_1A9B9073574DF4937EE9377659543891" xlink:to="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_AAE4996668F9120D6BC0377659583340" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_5326C87F7FA7C165CD83CF0375DD45C5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_6AFF47535CB3AFF29084CF0375DA2D1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_5326C87F7FA7C165CD83CF0375DD45C5" xlink:to="loc_us-gaap_StatementTable_6AFF47535CB3AFF29084CF0375DA2D1E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_9CEAC26BB749EEAC6AB1CF0375DAC913" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6AFF47535CB3AFF29084CF0375DA2D1E" xlink:to="loc_us-gaap_FinancialInstrumentAxis_9CEAC26BB749EEAC6AB1CF0375DAC913" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9CEAC26BB749EEAC6AB1CF0375DAC913" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9CEAC26BB749EEAC6AB1CF0375DAC913" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_5F5C805FB7CD48501460CF0375DB503B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739" xlink:to="loc_us-gaap_DebtSecuritiesMember_5F5C805FB7CD48501460CF0375DB503B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_4AB486E180F7E9196087CF0375DB9C35" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_4AB486E180F7E9196087CF0375DB9C35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_E096AFAE137F6E17D2E9CF0375DB226B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_EB206EAD129CA94006F0CF0375DBE739" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_E096AFAE137F6E17D2E9CF0375DB226B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_BA4999986704487C6DEBCF0375DC9C1E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6AFF47535CB3AFF29084CF0375DA2D1E" xlink:to="loc_us-gaap_StatementClassOfStockAxis_BA4999986704487C6DEBCF0375DC9C1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_BA4999986704487C6DEBCF0375DC9C1E" xlink:to="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_BA4999986704487C6DEBCF0375DC9C1E" xlink:to="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_E286358A9E61F5070E1ACF0375DC9B3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_E286358A9E61F5070E1ACF0375DC9B3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_46A57C64B069A8DB81D0CF0375DCE260" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_46A57C64B069A8DB81D0CF0375DCE260" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesCPreferredStockMember" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_C733C92FC564004284ACCF0375DCAD2D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_C733C92FC564004284ACCF0375DCAD2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesDPreferredStockMember" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_0BDB5092A3DA3AFA717ACF0375DC4527" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_0BDB5092A3DA3AFA717ACF0375DC4527" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_95F9924E6EB03AA0D6A1CF0375DDF72D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_CommonClassAMember_95F9924E6EB03AA0D6A1CF0375DDF72D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_8DAF38812EE7B0492AC6CF0375DD09A9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_CommonClassBMember_8DAF38812EE7B0492AC6CF0375DD09A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_467E4D1E7A85AE93094BCF0375DDE5C5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BEA6D6AEF74876D5E928CF0375DC9DB7" xlink:to="loc_us-gaap_CommonClassCMember_467E4D1E7A85AE93094BCF0375DDE5C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5326C87F7FA7C165CD83CF0375DD45C5" xlink:to="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3525A35982D39197BEAACF0375DDD3D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3525A35982D39197BEAACF0375DDD3D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_CD0391C76ADE8CC0E532CF0375DE1F15" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_CD0391C76ADE8CC0E532CF0375DE1F15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_460C5486253C75935C07CF0375DE1713" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_HeldToMaturitySecurities_460C5486253C75935C07CF0375DE1713" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_BF7303116654BD5087BDCF0375DE5B3D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_TradingSecurities_BF7303116654BD5087BDCF0375DE5B3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_23D766E3727C4FD87018CF0375DED82E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_MarketableSecurities_23D766E3727C4FD87018CF0375DED82E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract" xlink:label="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_E71D0AD8A204D0D8259ECF0375DF0881" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_E71D0AD8A204D0D8259ECF0375DF0881" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_A232311E399800937C7ACF0375DF9AA0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_A232311E399800937C7ACF0375DF9AA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_D4DFACEF6D477266ED12CF0375DFED90" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_D4DFACEF6D477266ED12CF0375DFED90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_B41CFF0ED0BCAF7997FECF0375DFE762" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansReceivableCommercialFinancialAndAgriculturalAbstract_875700A815727F7AA5ADCF0375DE13B7" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_B41CFF0ED0BCAF7997FECF0375DFE762" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_54D0AB089487DC962D48CF0375DF2BD4" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_54D0AB089487DC962D48CF0375DF2BD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_BB2D7DF48CF8458EBEC8CF0375DF9074" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_BB2D7DF48CF8458EBEC8CF0375DF9074" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_CDD7F6660F2CC0C91EDBCF0375E07221" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_InterestReceivable_CDD7F6660F2CC0C91EDBCF0375E07221" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyAssets" xlink:label="loc_us-gaap_GuarantyAssets_08A3A214EBC8F22BFFC1CF0375E0543A" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_GuarantyAssets_08A3A214EBC8F22BFFC1CF0375E0543A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_E0A461CD32C38CBFF225CF0375E0B99C" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_E0A461CD32C38CBFF225CF0375E0B99C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_00E00E83F15341BC8D4ECF0375E00A24" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_00E00E83F15341BC8D4ECF0375E00A24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_DA3C8A992C2CE0541C71CF0375E0768D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_9762515D402CD60048BECF0375DD089E" xlink:to="loc_us-gaap_Assets_DA3C8A992C2CE0541C71CF0375E0768D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_C6298C300EA4987FFE90CF0375E06988" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5326C87F7FA7C165CD83CF0375DD45C5" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_C6298C300EA4987FFE90CF0375E06988" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_C6298C300EA4987FFE90CF0375E06988" xlink:to="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesPayableAbstract" xlink:label="loc_us-gaap_NotesPayableAbstract_73F1E70E32B0952950B1CF0375E1800A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_NotesPayableAbstract_73F1E70E32B0952950B1CF0375E1800A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_478B4E27F371D6C44FE3CF0375E180D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NotesPayableAbstract_73F1E70E32B0952950B1CF0375E1800A" xlink:to="loc_us-gaap_ShortTermBorrowings_478B4E27F371D6C44FE3CF0375E180D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_0553B74CB30A86EEC3E2CF0375E1EE6C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NotesPayableAbstract_73F1E70E32B0952950B1CF0375E1800A" xlink:to="loc_us-gaap_LongTermDebt_0553B74CB30A86EEC3E2CF0375E1EE6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_5FAABD7458DF5F230C5ECF0375E1D889" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NotesPayableAbstract_73F1E70E32B0952950B1CF0375E1800A" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_5FAABD7458DF5F230C5ECF0375E1D889" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_24E506673764E12D0811CF0375E2C2D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_24E506673764E12D0811CF0375E2C2D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_AA9C67454C7A0BDC795ACF0375E2CD9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_AA9C67454C7A0BDC795ACF0375E2CD9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_196D17E48744CA854B66CF0375E2B585" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_196D17E48744CA854B66CF0375E2B585" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyLiabilities" xlink:label="loc_us-gaap_GuarantyLiabilities_AF43D713138D58AA59DBCF0375E22F33" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_GuarantyLiabilities_AF43D713138D58AA59DBCF0375E22F33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_4043976D75A41FBD5FE7CF0375E2C638" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_4043976D75A41FBD5FE7CF0375E2C638" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ReserveForLosses" xlink:label="loc_agm_ReserveForLosses_4597D74346F6B506089FCF0375E25713" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_agm_ReserveForLosses_4597D74346F6B506089FCF0375E25713" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_DAEDC6BDAC63F5A034A2CF0375E33779" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_1CF16E6D32F245D95F39CF0375E0FEBD" xlink:to="loc_us-gaap_Liabilities_DAEDC6BDAC63F5A034A2CF0375E33779" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_B9D6B3AFD2124F9088A3CF0375E3729F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_C6298C300EA4987FFE90CF0375E06988" xlink:to="loc_us-gaap_CommitmentsAndContingencies_B9D6B3AFD2124F9088A3CF0375E3729F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_C6298C300EA4987FFE90CF0375E06988" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract" xlink:label="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_A8D2519027E91994D9E9CF0375E31D3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_A8D2519027E91994D9E9CF0375E31D3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_2000E6119D4EC61021C3CF0375E38BF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_A8D2519027E91994D9E9CF0375E31D3E" xlink:to="loc_us-gaap_PreferredStockValue_2000E6119D4EC61021C3CF0375E38BF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" xlink:label="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_682D32A26655236EF8A8CF0375E473BD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_682D32A26655236EF8A8CF0375E473BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_463AC95EAF9AEB109903CF0375E4E3E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_682D32A26655236EF8A8CF0375E473BD" xlink:to="loc_us-gaap_CommonStockValue_463AC95EAF9AEB109903CF0375E4E3E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_14CB9C13E1338658D820CF0375E4D650" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_AdditionalPaidInCapital_14CB9C13E1338658D820CF0375E4D650" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_93A8A94373E491FF176DCF0375E4005E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_93A8A94373E491FF176DCF0375E4005E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7EAB84AC7FCA49A3D79ECF0375E42A62" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7EAB84AC7FCA49A3D79ECF0375E42A62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ECB17443DE34D0A7499BCF0375E473BB" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_83DA25D0449FD5AB256CCF0375E3B6E1" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ECB17443DE34D0A7499BCF0375E473BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_FF4195B14E9ECBF314D6CF0375E525D9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5326C87F7FA7C165CD83CF0375DD45C5" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_FF4195B14E9ECBF314D6CF0375E525D9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_D2B75A9D16B75E6EB702C9510D97E79F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_StatementTable_D2B75A9D16B75E6EB702C9510D97E79F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis" xlink:label="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_C50507C0CDC65C25BFD243CEA7ED45A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_D2B75A9D16B75E6EB702C9510D97E79F" xlink:to="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_C50507C0CDC65C25BFD243CEA7ED45A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_22171A28537E70325CAA00B366BFCD25_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_C50507C0CDC65C25BFD243CEA7ED45A3" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_22171A28537E70325CAA00B366BFCD25_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_D91F4735009E5DCD90EDB7681608CA27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_C50507C0CDC65C25BFD243CEA7ED45A3" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_D91F4735009E5DCD90EDB7681608CA27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_B4707BB245D45FA0AF78C795A8849AE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_D91F4735009E5DCD90EDB7681608CA27" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_B4707BB245D45FA0AF78C795A8849AE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_F7395214E5F35428B215FEA8289670CF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_D2B75A9D16B75E6EB702C9510D97E79F" xlink:to="loc_us-gaap_StatementClassOfStockAxis_F7395214E5F35428B215FEA8289670CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7678D84BD9ED98B475AC00B366BF38E3_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F7395214E5F35428B215FEA8289670CF" xlink:to="loc_us-gaap_ClassOfStockDomain_7678D84BD9ED98B475AC00B366BF38E3_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F7395214E5F35428B215FEA8289670CF" xlink:to="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_C0E32561C15D5CA885E72936E14D6049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_C0E32561C15D5CA885E72936E14D6049" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_4B6217837B3D554198645E68F9C196DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_4B6217837B3D554198645E68F9C196DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesCPreferredStockMember" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_F24AC703DD315E96AC6BFD70C786C437" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_F24AC703DD315E96AC6BFD70C786C437" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesDPreferredStockMember" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_AC23691D01E55CCEB71B21A1EC2350F3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_AC23691D01E55CCEB71B21A1EC2350F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_E4FA917BC2015176A70173B0B8829E0C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_CommonClassAMember_E4FA917BC2015176A70173B0B8829E0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_72FF8C9DB4E056FAA0DCE677ECBBC327" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_CommonClassBMember_72FF8C9DB4E056FAA0DCE677ECBBC327" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_A83B043D83A45D548A36F2C8B3FAB5D9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_90D18B7F281A5884B9EE4642DB240289" xlink:to="loc_us-gaap_CommonClassCMember_A83B043D83A45D548A36F2C8B3FAB5D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_BD0DF75066165530BD4B4B044838B486" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_InterestReceivable_BD0DF75066165530BD4B4B044838B486" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_4030E19E5E2250C598A908C2646FB2F1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_4030E19E5E2250C598A908C2646FB2F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_B64C4948178756E8BC3F24D37063C1AD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_B64C4948178756E8BC3F24D37063C1AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_4E7690ECFB09515EBA5FECF05F3BDF04" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_4E7690ECFB09515EBA5FECF05F3BDF04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_28C381861CDE5F1AB88E2CBBA3805F94" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_PreferredStockSharesIssued_28C381861CDE5F1AB88E2CBBA3805F94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_C57D5C1FFF395F09AD2EE766A64A4FAA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_C57D5C1FFF395F09AD2EE766A64A4FAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockRedemptionAmount" xlink:label="loc_us-gaap_PreferredStockRedemptionAmount_46831518B3BD5FA0A5134A088432E1B9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_PreferredStockRedemptionAmount_46831518B3BD5FA0A5134A088432E1B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_3808158848005AF780D5CFC2C6EAABDC" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_3808158848005AF780D5CFC2C6EAABDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_21F4F3151A5C55EBB0853079E1C20EB5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6034976169ED54E18B06BF05779319FF" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_21F4F3151A5C55EBB0853079E1C20EB5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_6CBB0FA4E378FD1BDDF5141BFC83C56B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_StatementTable_6CBB0FA4E378FD1BDDF5141BFC83C56B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_257AC69AF2B47CA9D5EE141BFC832D47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6CBB0FA4E378FD1BDDF5141BFC83C56B" xlink:to="loc_us-gaap_FinancialInstrumentAxis_257AC69AF2B47CA9D5EE141BFC832D47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_257AC69AF2B47CA9D5EE141BFC832D47" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_257AC69AF2B47CA9D5EE141BFC832D47" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_33837205BC7AFA3C6E09141BFC841593" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095" xlink:to="loc_us-gaap_DebtSecuritiesMember_33837205BC7AFA3C6E09141BFC841593" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmerMacAndUsdaGuaranteedSecuritiesMember" xlink:label="loc_agm_FarmerMacAndUsdaGuaranteedSecuritiesMember_1567699D6BACE5A947B5141BFC840714" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CA5CA9FE1FF436EB701A141BFC846095" xlink:to="loc_agm_FarmerMacAndUsdaGuaranteedSecuritiesMember_1567699D6BACE5A947B5141BFC840714" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_9D07455EF1E27B57C9CE141BFC8473F8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6CBB0FA4E378FD1BDDF5141BFC83C56B" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_9D07455EF1E27B57C9CE141BFC8473F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_2694C8ED71BA088AD5D0141BFC8493DC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_9D07455EF1E27B57C9CE141BFC8473F8" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_2694C8ED71BA088AD5D0141BFC8493DC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_2694C8ED71BA088AD5D0141BFC8493DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_9D07455EF1E27B57C9CE141BFC8473F8" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_2694C8ED71BA088AD5D0141BFC8493DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesPayableToBanksMember" xlink:label="loc_us-gaap_NotesPayableToBanksMember_A1A035D833D5D29838F0141BFC854DFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_2694C8ED71BA088AD5D0141BFC8493DC" xlink:to="loc_us-gaap_NotesPayableToBanksMember_A1A035D833D5D29838F0141BFC854DFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_FE06BB6DB702537C41AE141BFC858FF7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6CBB0FA4E378FD1BDDF5141BFC83C56B" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_FE06BB6DB702537C41AE141BFC858FF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_D41F110F9C69C3F0DDD6141BFC852870_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_FE06BB6DB702537C41AE141BFC858FF7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_D41F110F9C69C3F0DDD6141BFC852870_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_D41F110F9C69C3F0DDD6141BFC852870" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_FE06BB6DB702537C41AE141BFC858FF7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_D41F110F9C69C3F0DDD6141BFC852870" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MediumTermNotesMember" xlink:label="loc_us-gaap_MediumTermNotesMember_3E41091E62041CA27209141BFC86D137" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_D41F110F9C69C3F0DDD6141BFC852870" xlink:to="loc_us-gaap_MediumTermNotesMember_3E41091E62041CA27209141BFC86D137" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_66B181ED194CDACF17CE141BFC86E541" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:to="loc_us-gaap_NetIncomeLoss_66B181ED194CDACF17CE141BFC86E541" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_D8FCDCE9FEF2F3FF9182141BFC8788E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_D8FCDCE9FEF2F3FF9182141BFC8788E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_01EA94D11A5C21BB378F141BFC879058" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_01EA94D11A5C21BB378F141BFC879058" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale" xlink:label="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_1D9A3DBB9DC9242D9C6F141BFC878BF8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_1D9A3DBB9DC9242D9C6F141BFC878BF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_E1A99F9FC7ECEBAA08FB141BFC87D408" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_E1A99F9FC7ECEBAA08FB141BFC87D408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_615FEFE06C1C28B9B1EB141BFC87BD8C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_615FEFE06C1C28B9B1EB141BFC87BD8C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ExcessTaxBenefitsfromShareBasedCompensation" xlink:label="loc_agm_ExcessTaxBenefitsfromShareBasedCompensation_7C09F383FEE5A710256D141BFC886AA7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_agm_ExcessTaxBenefitsfromShareBasedCompensation_7C09F383FEE5A710256D141BFC886AA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_DB02B1F95C16E2DDB49E141BFC8825BD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_DB02B1F95C16E2DDB49E141BFC8825BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_2B46063713EE01C91452141BFC8849C3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_ShareBasedCompensation_2B46063713EE01C91452141BFC8849C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_04F36E214FD79E37CF0C141BFC88B8E0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_1812FBA3F0DFB01BEEC1141BFC877A9A" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_04F36E214FD79E37CF0C141BFC88B8E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_EFAE33B4153791031644141BFC889CB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_EFAE33B4153791031644141BFC889CB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherReceivables" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_EB23C11A2C3C80FA7175141BFC89242C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_EB23C11A2C3C80FA7175141BFC89242C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_A37BAB892BA796BE4B70141BFC89CB9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_A37BAB892BA796BE4B70141BFC89CB9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_448590EC108642DA52F1141BFC890BC1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_448590EC108642DA52F1141BFC890BC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_428B218711C5DE4096E7141BFC89B1E1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_A1EA8BC84255B8B41B6C141BFC885298" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_428B218711C5DE4096E7141BFC89B1E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_F59960D32B864206432A141BFC89FDEC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E49D8D47505E69B431E141BFC8637F8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_F59960D32B864206432A141BFC89FDEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_01AEC02EA12B5A892103141BFC8A5DD6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_01AEC02EA12B5A892103141BFC8A5DD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireLoansHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_CE7B16B9CBB23A33C8F2141BFC8AF24A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_CE7B16B9CBB23A33C8F2141BFC8AF24A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_8D9107760F3F1F106EF4141BFC8A4226" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_8D9107760F3F1F106EF4141BFC8A4226" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_F7C02C5C875FE87E6498141BFC8AD676" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_F7C02C5C875FE87E6498141BFC8AD676" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_939E995C3D9D0EC42333141BFC8A3DCB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_939E995C3D9D0EC42333141BFC8A3DCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfOtherInvestments" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_D503BF992A68DEE180DC141BFC8B9E46" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_D503BF992A68DEE180DC141BFC8B9E46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfForeclosedAssets" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_86DE75BD7DC6745DAEB9141BFC8B7FDC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_86DE75BD7DC6745DAEB9141BFC8B7FDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_FC1EF042B68C39544A1C141BFC8B05DB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_2697A89C85E7CED87BF8141BFC8A61CC" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_FC1EF042B68C39544A1C141BFC8B05DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_89EBF49655879D9281ED141BFC8B80A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_89EBF49655879D9281ED141BFC8B80A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_2558E7B6D0C7B3A5AE73141BFC8B5770" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_RepaymentsOfDebt_2558E7B6D0C7B3A5AE73141BFC8B5770" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts" xlink:label="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_0508AC6D869568FA38CB141BFC8C1AD3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_0508AC6D869568FA38CB141BFC8C1AD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_92C1C76CA66057DFF93E141BFC8CBEDC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_92C1C76CA66057DFF93E141BFC8CBEDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_38EC9F95A51CCC0AFCFA141BFC8C1703" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_38EC9F95A51CCC0AFCFA141BFC8C1703" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_14B58E32C0E763C1326C141BFC8C3F34" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_14B58E32C0E763C1326C141BFC8C3F34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_26FA02DAEDA1BFA88F71141BFC8C8BB5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_26FA02DAEDA1BFA88F71141BFC8C8BB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfOrdinaryDividends" xlink:label="loc_us-gaap_PaymentsOfOrdinaryDividends_FB82FA35D442FBA4D18E141BFC8D75C2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_PaymentsOfOrdinaryDividends_FB82FA35D442FBA4D18E141BFC8D75C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_AB62CD6CD5AEEC1476EF141BFC8D52E4" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_5352818145263EF2983A141BFC8B06A1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_AB62CD6CD5AEEC1476EF141BFC8D52E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_20545B209ABB3A786616141BFC8DFFCC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_20545B209ABB3A786616141BFC8DFFCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0D8C391DFA5331C7B86A141BFC8DA8D3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0D8C391DFA5331C7B86A141BFC8DA8D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncashInvestingAndFinancingItemsAbstract" xlink:label="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6603A37706B500AAFAE4141BFC861177" xlink:to="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransferToOtherRealEstate" xlink:label="loc_us-gaap_TransferToOtherRealEstate_A2775D46E7E93AFB255C141BFC8D64AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:to="loc_us-gaap_TransferToOtherRealEstate_A2775D46E7E93AFB255C141BFC8D64AF" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NoncashOrPartNoncashAcquisitionLoansAcquiredAndSecuritized" xlink:label="loc_agm_NoncashOrPartNoncashAcquisitionLoansAcquiredAndSecuritized_806026478DBBA90953EB141BFC8EA7A1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:to="loc_agm_NoncashOrPartNoncashAcquisitionLoansAcquiredAndSecuritized_806026478DBBA90953EB141BFC8EA7A1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ConsolidationOfGuaranteedSecuritiesFromOffBalanceSheetToLoansHeldForInvestmentAndDebtSecuritiesOfConsolidatedTrustsHeldByThirdParties" xlink:label="loc_agm_ConsolidationOfGuaranteedSecuritiesFromOffBalanceSheetToLoansHeldForInvestmentAndDebtSecuritiesOfConsolidatedTrustsHeldByThirdParties_ABA4541E497975995962141BFC8E245F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:to="loc_agm_ConsolidationOfGuaranteedSecuritiesFromOffBalanceSheetToLoansHeldForInvestmentAndDebtSecuritiesOfConsolidatedTrustsHeldByThirdParties_ABA4541E497975995962141BFC8E245F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NoncashOrPartNoncashTransactionReclassificationOfDefaultedLoansFromHeldForInvestmentInConsolidatedTrustsToLoansHeldForInvestment" xlink:label="loc_agm_NoncashOrPartNoncashTransactionReclassificationOfDefaultedLoansFromHeldForInvestmentInConsolidatedTrustsToLoansHeldForInvestment_3A5A938E3A59437D4D8E141BFC8EF7E9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:to="loc_agm_NoncashOrPartNoncashTransactionReclassificationOfDefaultedLoansFromHeldForInvestmentInConsolidatedTrustsToLoansHeldForInvestment_3A5A938E3A59437D4D8E141BFC8EF7E9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PurchasesOfInvestmentSecuritiesTradedNotYetSettled" xlink:label="loc_agm_PurchasesOfInvestmentSecuritiesTradedNotYetSettled_81B20476BE54A904435B141BFC8E4FD8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncashInvestingAndFinancingItemsAbstract_B0338592FE7A64AA8AA7141BFC8D3547" xlink:to="loc_agm_PurchasesOfInvestmentSecuritiesTradedNotYetSettled_81B20476BE54A904435B141BFC8E4FD8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_811E76F7FA2A4208C0A6F4E00A8D4A41" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_AB919D8144CA72248634F4E00A89D24B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_811E76F7FA2A4208C0A6F4E00A8D4A41" xlink:to="loc_us-gaap_StatementTable_AB919D8144CA72248634F4E00A89D24B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_13719A84AF7EE0AFD600F4E00A8A4A59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_AB919D8144CA72248634F4E00A89D24B" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_13719A84AF7EE0AFD600F4E00A8A4A59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_13719A84AF7EE0AFD600F4E00A8A4A59" xlink:to="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_13719A84AF7EE0AFD600F4E00A8A4A59" xlink:to="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaap_PreferredStockMember_F88B75FC1A32EAA55774F4E00A8B18D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:to="loc_us-gaap_PreferredStockMember_F88B75FC1A32EAA55774F4E00A8B18D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_DD0D0EB432F4515DD2D1F4E00A8BB68C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:to="loc_us-gaap_CommonStockMember_DD0D0EB432F4515DD2D1F4E00A8BB68C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_70AD5BFBD324F69E19DAF4E00A8B47B4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_70AD5BFBD324F69E19DAF4E00A8B47B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember" xlink:label="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_01E92A8646A6655F3750F4E00A8BEF2B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:to="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_01E92A8646A6655F3750F4E00A8BEF2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_94E5A0451B2459923927F4E00A8C5BDD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_88EE755039C995044C31F4E00A8A0BEB" xlink:to="loc_us-gaap_RetainedEarningsMember_94E5A0451B2459923927F4E00A8C5BDD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_EB52FE4939886304346FF4E00A8C4148" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_AB919D8144CA72248634F4E00A89D24B" xlink:to="loc_us-gaap_StatementClassOfStockAxis_EB52FE4939886304346FF4E00A8C4148" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_EB52FE4939886304346FF4E00A8C4148" xlink:to="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_EB52FE4939886304346FF4E00A8C4148" xlink:to="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_3345E491EA38BAA71537F4E00A8CAC63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB" xlink:to="loc_us-gaap_CommonClassCMember_3345E491EA38BAA71537F4E00A8CAC63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesDPreferredStockMember" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_3FF13194D7A6D2D017B4F4E00A8D78CF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_3FF13194D7A6D2D017B4F4E00A8D78CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_55F277FC1C9BC2090B6DF4E00A8D6A9D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_49448E67164C7BBEE2D2F4E00A8C6BEB" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_55F277FC1C9BC2090B6DF4E00A8D6A9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_811E76F7FA2A4208C0A6F4E00A8D4A41" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_18C0F88F3BE014099552F4E00A8DD2CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_SharesOutstanding_18C0F88F3BE014099552F4E00A8DD2CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_C80802E6D6994D3680F1F4E00A8EFE33" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_C80802E6D6994D3680F1F4E00A8EFE33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleCumulativeEffectOfChangeOnEquityOrNetAssets1" xlink:label="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleCumulativeEffectOfChangeOnEquityOrNetAssets1_E27B8D7886948BDE3D0FF4E00A8E64D2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleCumulativeEffectOfChangeOnEquityOrNetAssets1_E27B8D7886948BDE3D0FF4E00A8E64D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1_9F5DC0BFA0947B39A93BF4E00A9067E1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1_9F5DC0BFA0947B39A93BF4E00A9067E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAbstract" xlink:label="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_117615B4ABF835AD27A2F4E00A907454" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:to="loc_us-gaap_NetIncomeLoss_117615B4ABF835AD27A2F4E00A907454" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_F85A9C0029817CA40C32F4E00A915B06" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_F85A9C0029817CA40C32F4E00A915B06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsPreferredStockCash" xlink:label="loc_us-gaap_DividendsPreferredStockCash_6E23C506BB2D5BCD2898F4E00A91E838" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:to="loc_us-gaap_DividendsPreferredStockCash_6E23C506BB2D5BCD2898F4E00A91E838" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_28CE999D979716605A90F4E00A91E906" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_2C34769D088961E9B88FF4E00A9002E8" xlink:to="loc_us-gaap_DividendsCommonStockCash_28CE999D979716605A90F4E00A91E906" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_FDA7854AB3186A350E57F4E00A911C05" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_FDA7854AB3186A350E57F4E00A911C05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_ED3FBD5368F95B8D08B3F4E00A91B189" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_ED3FBD5368F95B8D08B3F4E00A91B189" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:label="loc_us-gaap_StockRedeemedOrCalledDuringPeriodShares_7300E357427CA33132A3F4E00A9154ED" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockRedeemedOrCalledDuringPeriodShares_7300E357427CA33132A3F4E00A9154ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:label="loc_us-gaap_StockRedeemedOrCalledDuringPeriodValue_11630EE04266912AB17FF4E00A922613" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_StockRedeemedOrCalledDuringPeriodValue_11630EE04266912AB17FF4E00A922613" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WriteOffOfStockIssuanceCostsPreferredStock" xlink:label="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_AE6A70D24B13000838B1F4E00A92CF02" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_AE6A70D24B13000838B1F4E00A92CF02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_CEFDC603385C3F7E134AF4E00A924D9E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_CEFDC603385C3F7E134AF4E00A924D9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet" xlink:label="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_B9F04FB1608096D7FD48F4E00A929749" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9E6D95B8B607859D6351F4E00A8D8F9E" xlink:to="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_B9F04FB1608096D7FD48F4E00A929749" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/CoverPage" xlink:type="extended">
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:type="locator" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitiesTable" xlink:label="loc_dei_EntitiesTable_14FEFA10061B52420E2DCAC074697929" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntitiesTable_14FEFA10061B52420E2DCAC074697929" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_B70E7F1B0FFD1BA8055ECAC0746A0D3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_14FEFA10061B52420E2DCAC074697929" xlink:to="loc_us-gaap_StatementClassOfStockAxis_B70E7F1B0FFD1BA8055ECAC0746A0D3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_B70E7F1B0FFD1BA8055ECAC0746A0D3D" xlink:to="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_B70E7F1B0FFD1BA8055ECAC0746A0D3D" xlink:to="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_FC8134A0FB4E467658B5CAC0746B3EC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_CommonClassAMember_FC8134A0FB4E467658B5CAC0746B3EC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_A4F28FCFE509F0016ECBCAC0746BB69A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_CommonClassBMember_A4F28FCFE509F0016ECBCAC0746BB69A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_F2ACFA27221E010FA441CAC0746B4A41" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_CommonClassCMember_F2ACFA27221E010FA441CAC0746B4A41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_5251D8B7D90B163F6E63CAC0746C470D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_5251D8B7D90B163F6E63CAC0746C470D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesCPreferredStockMember" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_C9A19E7E1387C327DDD5CAC0746C45A1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_C9A19E7E1387C327DDD5CAC0746C45A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesDPreferredStockMember" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_5AF2B20C8DAAF2371AEECAC0746C1D25" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_10C9C3996C6B8617F3AACAC0746AC018" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_5AF2B20C8DAAF2371AEECAC0746C1D25" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentQuarterlyReport" xlink:label="loc_dei_DocumentQuarterlyReport_130CAC863812B2AAF157CAC0746C91DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentQuarterlyReport_130CAC863812B2AAF157CAC0746C91DD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_40D2690B79CC375CA9DDCAC0746C0322" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentTransitionReport_40D2690B79CC375CA9DDCAC0746C0322" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_DA22676D7437E40EB8ABCAC0746D8C18" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentType_DA22676D7437E40EB8ABCAC0746D8C18" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_4AB2573BA12BF3868A4ECAC0746D4EB3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentPeriodEndDate_4AB2573BA12BF3868A4ECAC0746D4EB3" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_031CEBF6D4B1191E2B83CAC0746DD5D0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityFileNumber_031CEBF6D4B1191E2B83CAC0746DD5D0" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_7DAD8FC4B30E1FFB907BCAC0746D7CD3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityRegistrantName_7DAD8FC4B30E1FFB907BCAC0746D7CD3" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_CD4FF4FD999FCE29B39ACAC0746DECCB" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityIncorporationStateCountryCode_CD4FF4FD999FCE29B39ACAC0746DECCB" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityTaxIdentificationNumber" xlink:label="loc_dei_EntityTaxIdentificationNumber_D9B1CFA87D4C282AA281CAC0746DFDBE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityTaxIdentificationNumber_D9B1CFA87D4C282AA281CAC0746DFDBE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_7746F5849143D888EEA4CAC0746E261C" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityAddressAddressLine1_7746F5849143D888EEA4CAC0746E261C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_F185067BA243871C6F55CAC0746EF605" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityAddressCityOrTown_F185067BA243871C6F55CAC0746EF605" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressStateOrProvince" xlink:label="loc_dei_EntityAddressStateOrProvince_B45F9176E8336057257BCAC0746EFAE1" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityAddressStateOrProvince_B45F9176E8336057257BCAC0746EFAE1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_9B16F5DBB78FCEC05101CAC0746E2FE9" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityAddressPostalZipCode_9B16F5DBB78FCEC05101CAC0746E2FE9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_D6985B2CEABBD99C022BCAC0746EDCCD" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_CityAreaCode_D6985B2CEABBD99C022BCAC0746EDCCD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_86E0A4393CA4022A2DB4CAC0746E0A2F" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_LocalPhoneNumber_86E0A4393CA4022A2DB4CAC0746E0A2F" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_9428553F15830E6FA512CAC0746F46E7" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_Security12bTitle_9428553F15830E6FA512CAC0746F46E7" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_3548A06CB472D62194ADCAC0746F567A" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_TradingSymbol_3548A06CB472D62194ADCAC0746F567A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_169BA0E919560609600CCAC0746FBC4C" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_SecurityExchangeName_169BA0E919560609600CCAC0746FBC4C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_CBE0A07C2CA574B930EACAC0746FA05C" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityCurrentReportingStatus_CBE0A07C2CA574B930EACAC0746FA05C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_36C6C38870CA98C5B7BECAC0746F550C" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityInteractiveDataCurrent_36C6C38870CA98C5B7BECAC0746F550C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_4668CE8DF4A1A7882D22CAC0746F1307" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityFilerCategory_4668CE8DF4A1A7882D22CAC0746F1307" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_E86E75D7CAD2B25A63F0CAC0746FDC87" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntitySmallBusiness_E86E75D7CAD2B25A63F0CAC0746FDC87" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_5BBB751AA3C37BD1CA76CAC0746F058D" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityEmergingGrowthCompany_5BBB751AA3C37BD1CA76CAC0746F058D" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_E6431616B75375364057CAC074700276" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityShellCompany_E6431616B75375364057CAC074700276" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_3EA108553C93512D53C1CAC07470C8A8" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_3EA108553C93512D53C1CAC07470C8A8" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_BC6A147C3E0E62C0910CCAC07470325E" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_EntityCentralIndexKey_BC6A147C3E0E62C0910CCAC07470325E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_91DD27038E2EA2C4E100CAC07470ED3E" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_CurrentFiscalYearEndDate_91DD27038E2EA2C4E100CAC07470ED3E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_8AA121EC178F5DD20E11CAC07470E7A9" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentFiscalYearFocus_8AA121EC178F5DD20E11CAC07470E7A9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_857570E7BAAC7D9A043ACAC074714BD3" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_DocumentFiscalPeriodFocus_857570E7BAAC7D9A043ACAC074714BD3" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_870702FDCE04022F30C3CAC074718BCD" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5B7AB61CAE6E49AEC6AFCAC0746CEF05" xlink:to="loc_dei_AmendmentFlag_870702FDCE04022F30C3CAC074718BCD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/Equity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/EquityNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_FCC9514DF7F0693B5982CAC8EDF1E876" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_FCC9514DF7F0693B5982CAC8EDF1E876" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_6D5E0FBD4521D782B8DDCAC8EDF149D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_FCC9514DF7F0693B5982CAC8EDF1E876" xlink:to="loc_us-gaap_StatementClassOfStockAxis_6D5E0FBD4521D782B8DDCAC8EDF149D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6D5E0FBD4521D782B8DDCAC8EDF149D1" xlink:to="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6D5E0FBD4521D782B8DDCAC8EDF149D1" xlink:to="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesDPreferredStockMember" xlink:label="loc_us-gaap_SeriesDPreferredStockMember_31989BDA0C6391A727D3CAC8EDF2158D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F" xlink:to="loc_us-gaap_SeriesDPreferredStockMember_31989BDA0C6391A727D3CAC8EDF2158D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_192238ECA3159FB1B2A5CAC8EDF2162C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_192238ECA3159FB1B2A5CAC8EDF2162C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_3A710F5040CF0DEA4516CAC8EDF28DE0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9135202120D4CD627F92CAC8EDF1A84F" xlink:to="loc_us-gaap_CommonClassCMember_3A710F5040CF0DEA4516CAC8EDF28DE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_3C44172A1B16A1DFF19DCAC8EDF2FEFE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_3C44172A1B16A1DFF19DCAC8EDF2FEFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendRatePercentage" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_0463AFE6BD301B7C7C57CAC8EDF37A96" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_0463AFE6BD301B7C7C57CAC8EDF37A96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_4A7154F334EDDB39C7D1CAC8EDF301B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_4A7154F334EDDB39C7D1CAC8EDF301B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValueOutstanding" xlink:label="loc_us-gaap_PreferredStockValueOutstanding_CAB3597BEEB6A8FAA86BCAC8EDF33DB0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_PreferredStockValueOutstanding_CAB3597BEEB6A8FAA86BCAC8EDF33DB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_E796FEFB00F5A9F51A7DCAC8EDF32E98" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_E796FEFB00F5A9F51A7DCAC8EDF32E98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_DE05CF7FE517E006F653CAC8EDF39000" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_DE05CF7FE517E006F653CAC8EDF39000" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WriteOffOfStockIssuanceCostsPreferredStock" xlink:label="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_28C4F09258874DA414F9CAC8EDF46450" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_28C4F09258874DA414F9CAC8EDF46450" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_16B9C6DA07337296D89ECAC8EDF444A0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_16B9C6DA07337296D89ECAC8EDF444A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_43B30BFE9992027D2EFECAC8EDF411AF" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_43B30BFE9992027D2EFECAC8EDF411AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_C60BE08880ACE7150959CAC8EDF4B818" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_C60BE08880ACE7150959CAC8EDF4B818" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_165EE6724E091E869F0FCAC8EDF4B92B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_6840371C3281274524C4CAC8EDF2435D" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_165EE6724E091E869F0FCAC8EDF4B92B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosures" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_4BE3E2A68E5D2532EF17BD83A8EC4726" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_srt_ProductOrServiceAxis_4BE3E2A68E5D2532EF17BD83A8EC4726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_4BE3E2A68E5D2532EF17BD83A8EC4726" xlink:to="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_4BE3E2A68E5D2532EF17BD83A8EC4726" xlink:to="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FloatingInterestRateMember" xlink:label="loc_agm_FloatingInterestRateMember_C2DE31EE49A086AA6021BD83A8EC2D90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218" xlink:to="loc_agm_FloatingInterestRateMember_C2DE31EE49A086AA6021BD83A8EC2D90" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FixedInterestRateMember" xlink:label="loc_agm_FixedInterestRateMember_D597BD10798D94C29E3EBD83A8EDD09F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_FDF9AFF7133FA9CCF303BD83A8EC1218" xlink:to="loc_agm_FixedInterestRateMember_D597BD10798D94C29E3EBD83A8EDD09F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_11BC526DD79CB963DF18BD83A8ED6285" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_11BC526DD79CB963DF18BD83A8ED6285" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_11BC526DD79CB963DF18BD83A8ED6285" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_11BC526DD79CB963DF18BD83A8ED6285" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AuctionRateSecuritiesMember" xlink:label="loc_us-gaap_AuctionRateSecuritiesMember_76F07E7B6945C92D1CE3BD83A8EDE1C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_AuctionRateSecuritiesMember_76F07E7B6945C92D1CE3BD83A8EDE1C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_23A945A9C1A0F7FCB77CBD83A8ED0D80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_23A945A9C1A0F7FCB77CBD83A8ED0D80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_C09BF30FA8D172A99792BD83A8EE7915" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_C09BF30FA8D172A99792BD83A8EE7915" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_D9C7E75581908DAD1DEFBD83A8EE6359" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_D9C7E75581908DAD1DEFBD83A8EE6359" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_E4CE42766D0A32299812BD83A8EE02A2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_DebtSecuritiesMember_E4CE42766D0A32299812BD83A8EE02A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_746498CAC1596AA99671BD83A8EEFAFF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_746498CAC1596AA99671BD83A8EEFAFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_043A53DDD0772720002EBD83A8EE1581" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_AFB7CDDD995C7AADDB9BBD83A8ED01AF" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_043A53DDD0772720002EBD83A8EE1581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_76CB4F2593D96EFE7B07BD83A8EFBFCB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_76CB4F2593D96EFE7B07BD83A8EFBFCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_B9159492053870E92BBBBD83A8EF06B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_76CB4F2593D96EFE7B07BD83A8EFBFCB" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_B9159492053870E92BBBBD83A8EF06B7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_B9159492053870E92BBBBD83A8EF06B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_76CB4F2593D96EFE7B07BD83A8EFBFCB" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_B9159492053870E92BBBBD83A8EF06B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_8B8CC37B07B74F5C727EBD83A8EF83A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_B9159492053870E92BBBBD83A8EF06B7" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_8B8CC37B07B74F5C727EBD83A8EF83A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7A71C50283192750D58CBD83A8EFE35A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7A71C50283192750D58CBD83A8EFE35A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7A71C50283192750D58CBD83A8EFE35A" xlink:to="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7A71C50283192750D58CBD83A8EFE35A" xlink:to="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_D5D1D5BCAD5FEBF98BFDBD83A8F03537" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD" xlink:to="loc_agm_InstitutionalCreditMemberMember_D5D1D5BCAD5FEBF98BFDBD83A8F03537" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_B8E4BDE74916582B3755BD83A8F02C8B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E0E8E5701AE1844A0762BD83A8EFA5AD" xlink:to="loc_agm_USDAGuaranteesMember_B8E4BDE74916582B3755BD83A8F02C8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_EA6EC48F626DAA3E16ECBD83A8F0EBDE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_EA6EC48F626DAA3E16ECBD83A8F0EBDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8BBE428AF69D983C7B56BD83A8F0B34C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_EA6EC48F626DAA3E16ECBD83A8F0EBDE" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8BBE428AF69D983C7B56BD83A8F0B34C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8BBE428AF69D983C7B56BD83A8F0B34C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_EA6EC48F626DAA3E16ECBD83A8F0EBDE" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8BBE428AF69D983C7B56BD83A8F0B34C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_E182B9DA0C4BE51C9981BD83A8F1D87E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8BBE428AF69D983C7B56BD83A8F0B34C" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_E182B9DA0C4BE51C9981BD83A8F1D87E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ED4AC76CF946B183DA3DBD83A8F1D487" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_443F5F0F563B11E10516BD83A8EC4D56" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ED4AC76CF946B183DA3DBD83A8F1D487" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ED4AC76CF946B183DA3DBD83A8F1D487" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ED4AC76CF946B183DA3DBD83A8F1D487" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_DAC7B91A6A0ABF401977BD83A8F12B24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_DAC7B91A6A0ABF401977BD83A8F12B24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_E9487B96F9F933116C21BD83A8F288E5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_E9487B96F9F933116C21BD83A8F288E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_AE6637A2957F8F09714ABD83A8F2A1FA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_68172555FD5B5E3FC756BD83A8F1B687" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_AE6637A2957F8F09714ABD83A8F2A1FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsFairValueDisclosure" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_DBA6411DE70E23D7F0ABBD83A8F2BF8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_DBA6411DE70E23D7F0ABBD83A8F2BF8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_60415AD1F6888C9B0764BD83A8F26ECB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_TradingSecuritiesDebt_60415AD1F6888C9B0764BD83A8F26ECB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_8F9C231F84313315091BBD83A8F2F72E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_DerivativeAssets_8F9C231F84313315091BBD83A8F2F72E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3C50E22F611D63AAE999BD83A8F3B1BF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_3C50E22F611D63AAE999BD83A8F3B1BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_29D80B89AA0E6E30F5DFBD83A8F35043" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_DerivativeLiabilities_29D80B89AA0E6E30F5DFBD83A8F35043" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_0652C232B96D58E1A787BD83A8F3C6A6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_025977E357BA02814300BD83A8F22BE8" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_0652C232B96D58E1A787BD83A8F3C6A6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_FD964F4CCFA25A2C982083136DFED5A9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_B721EFB55AC0594D9E02EC1580C8D2E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_FD964F4CCFA25A2C982083136DFED5A9" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_B721EFB55AC0594D9E02EC1580C8D2E5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1E974B0CA9DF595EB984AE026B18EE98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_B721EFB55AC0594D9E02EC1580C8D2E5" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1E974B0CA9DF595EB984AE026B18EE98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_29ECC4BCEB64A1F34366E218CEA5400B_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1E974B0CA9DF595EB984AE026B18EE98" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_29ECC4BCEB64A1F34366E218CEA5400B_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_78796F3ABB0352BEB312A98A2C590860" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1E974B0CA9DF595EB984AE026B18EE98" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_78796F3ABB0352BEB312A98A2C590860" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_1B360005E56B505396E554EBBE66E48F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_78796F3ABB0352BEB312A98A2C590860" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_1B360005E56B505396E554EBBE66E48F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AssetsAndLiabilitiesFairValueDisclosure" xlink:label="loc_agm_AssetsAndLiabilitiesFairValueDisclosure_67CDA5913C855B3BB9551C9649DEA029" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_FD964F4CCFA25A2C982083136DFED5A9" xlink:to="loc_agm_AssetsAndLiabilitiesFairValueDisclosure_67CDA5913C855B3BB9551C9649DEA029" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets" xlink:label="loc_agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets_95B50D1411EE5D1CA4B26BE1D95B160E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_FD964F4CCFA25A2C982083136DFED5A9" xlink:to="loc_agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets_95B50D1411EE5D1CA4B26BE1D95B160E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue" xlink:label="loc_agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue_B6F69BCCEF7F5BC2B0C6D8910EFC3E37" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_FD964F4CCFA25A2C982083136DFED5A9" xlink:to="loc_agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue_B6F69BCCEF7F5BC2B0C6D8910EFC3E37" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_D42E002B5383589CA522E83C8578A051" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_D42E002B5383589CA522E83C8578A051" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_67156037A3755BDBAB774C040BF80841" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_67156037A3755BDBAB774C040BF80841" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_D4E96F58C2B837A49F38E218CC50CEA0_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_67156037A3755BDBAB774C040BF80841" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_D4E96F58C2B837A49F38E218CC50CEA0_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_146DCA31256C5E38896889705E3DDAA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_67156037A3755BDBAB774C040BF80841" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_146DCA31256C5E38896889705E3DDAA5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MeasurementInputRangeOfBrokerQuotesMember" xlink:label="loc_agm_MeasurementInputRangeOfBrokerQuotesMember_3695E41F166159F7B5CA96E55EBAAD51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_146DCA31256C5E38896889705E3DDAA5" xlink:to="loc_agm_MeasurementInputRangeOfBrokerQuotesMember_3695E41F166159F7B5CA96E55EBAAD51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDiscountRateMember" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_701AC0354BA154C2B012864022A4F246" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_146DCA31256C5E38896889705E3DDAA5" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_701AC0354BA154C2B012864022A4F246" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputConstantPrepaymentRateMember" xlink:label="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_C7C215E1FE80520C9E78BE89F9D7A858" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_146DCA31256C5E38896889705E3DDAA5" xlink:to="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_C7C215E1FE80520C9E78BE89F9D7A858" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_490B41FFCD3D59899475520D219B83DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_490B41FFCD3D59899475520D219B83DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_C0D716AB8407A38D6D75E218CC5109AA_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_490B41FFCD3D59899475520D219B83DE" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_C0D716AB8407A38D6D75E218CC5109AA_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_8E46D0367FC651C2B50049C93CFB108B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_490B41FFCD3D59899475520D219B83DE" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_8E46D0367FC651C2B50049C93CFB108B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_8E8F7EE1C2015C2EA2911879D3938D29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_8E46D0367FC651C2B50049C93CFB108B" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_8E8F7EE1C2015C2EA2911879D3938D29" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesTradingMember" xlink:label="loc_agm_DebtSecuritiesTradingMember_38DCA1A4DC8D54CFA92620B4784C2D77" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_8E46D0367FC651C2B50049C93CFB108B" xlink:to="loc_agm_DebtSecuritiesTradingMember_38DCA1A4DC8D54CFA92620B4784C2D77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_B687C0B897E6597ABF8CE164823F8BCA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_srt_RangeAxis_B687C0B897E6597ABF8CE164823F8BCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_E7DDF1053C9F5E35E8A4E218CC52D8D7_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_B687C0B897E6597ABF8CE164823F8BCA" xlink:to="loc_srt_RangeMember_E7DDF1053C9F5E35E8A4E218CC52D8D7_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_50617221FF4B53F4849C5E8B382F5A84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_B687C0B897E6597ABF8CE164823F8BCA" xlink:to="loc_srt_RangeMember_50617221FF4B53F4849C5E8B382F5A84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_9FE73A039DE15C9C9522F62FCE3E6DCC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50617221FF4B53F4849C5E8B382F5A84" xlink:to="loc_srt_MinimumMember_9FE73A039DE15C9C9522F62FCE3E6DCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_C9AC13AAF51351628E0BAE17B979E740" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50617221FF4B53F4849C5E8B382F5A84" xlink:to="loc_srt_MaximumMember_C9AC13AAF51351628E0BAE17B979E740" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_WeightedAverageMember" xlink:label="loc_srt_WeightedAverageMember_58CEC3079F375888A20F075D3F211723" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_50617221FF4B53F4849C5E8B382F5A84" xlink:to="loc_srt_WeightedAverageMember_58CEC3079F375888A20F075D3F211723" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_A4E0604EDC96571488F1996FEB72DE9F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_A4E0604EDC96571488F1996FEB72DE9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5C1AF975DB86EA133ACEE218CC54C0B8_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A4E0604EDC96571488F1996FEB72DE9F" xlink:to="loc_us-gaap_SegmentDomain_5C1AF975DB86EA133ACEE218CC54C0B8_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_875FC434375D53CA98DAA50D2F28C3B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A4E0604EDC96571488F1996FEB72DE9F" xlink:to="loc_us-gaap_SegmentDomain_875FC434375D53CA98DAA50D2F28C3B5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_E26580DE4AFD5C3F860363180D320385" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_875FC434375D53CA98DAA50D2F28C3B5" xlink:to="loc_agm_InstitutionalCreditMemberMember_E26580DE4AFD5C3F860363180D320385" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_A430F7D178BD526FA9D4D35B8E903A37" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_875FC434375D53CA98DAA50D2F28C3B5" xlink:to="loc_agm_USDAGuaranteesMember_A430F7D178BD526FA9D4D35B8E903A37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_05691C20F9BC56E297EDFF8675001465" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_05691C20F9BC56E297EDFF8675001465" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_8062C27775701240D7B1E218CC55EA86_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_05691C20F9BC56E297EDFF8675001465" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_8062C27775701240D7B1E218CC55EA86_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_148F3A4055365E0A829319389BFF4738" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_05691C20F9BC56E297EDFF8675001465" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_148F3A4055365E0A829319389BFF4738" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AuctionRateSecuritiesMember" xlink:label="loc_us-gaap_AuctionRateSecuritiesMember_1553291C9F9352BC953B79F6B3D612EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_148F3A4055365E0A829319389BFF4738" xlink:to="loc_us-gaap_AuctionRateSecuritiesMember_1553291C9F9352BC953B79F6B3D612EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_E1BFF84A38CB5B348A1CA319F2F53712" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_148F3A4055365E0A829319389BFF4738" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_E1BFF84A38CB5B348A1CA319F2F53712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_AA8EC910F3E65A19ACBF58567565F12F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_148F3A4055365E0A829319389BFF4738" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_AA8EC910F3E65A19ACBF58567565F12F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueAxis" xlink:label="loc_us-gaap_ValuationTechniqueAxis_2CA6E3FA16CC56969B42C6775DF13CA4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_ValuationTechniqueAxis_2CA6E3FA16CC56969B42C6775DF13CA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_FF1AB84F1A09FD1EF2ADE218CC56B9B5_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_2CA6E3FA16CC56969B42C6775DF13CA4" xlink:to="loc_us-gaap_ValuationTechniqueDomain_FF1AB84F1A09FD1EF2ADE218CC56B9B5_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_4BCAA9ACD7545BFCA8025E24AF881CD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_2CA6E3FA16CC56969B42C6775DF13CA4" xlink:to="loc_us-gaap_ValuationTechniqueDomain_4BCAA9ACD7545BFCA8025E24AF881CD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketApproachValuationTechniqueMember" xlink:label="loc_us-gaap_MarketApproachValuationTechniqueMember_E60E29599F6E5EC6B381660E8791B2CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_4BCAA9ACD7545BFCA8025E24AF881CD8" xlink:to="loc_us-gaap_MarketApproachValuationTechniqueMember_E60E29599F6E5EC6B381660E8791B2CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostApproachValuationTechniqueMember" xlink:label="loc_us-gaap_CostApproachValuationTechniqueMember_789B69B1EEAC5742A90EE8F51684E6D3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_4BCAA9ACD7545BFCA8025E24AF881CD8" xlink:to="loc_us-gaap_CostApproachValuationTechniqueMember_789B69B1EEAC5742A90EE8F51684E6D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A98695D69E755AE880AF833AA8E2F1B8" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A98695D69E755AE880AF833AA8E2F1B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8652D3CBF161F26EC2EDE218CC578716_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A98695D69E755AE880AF833AA8E2F1B8" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8652D3CBF161F26EC2EDE218CC578716_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_177E4B422FC45CB3A8931E3BACCA3C7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A98695D69E755AE880AF833AA8E2F1B8" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_177E4B422FC45CB3A8931E3BACCA3C7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_1B272CF9AD12537B9ADAFA754CBC383E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_177E4B422FC45CB3A8931E3BACCA3C7B" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_1B272CF9AD12537B9ADAFA754CBC383E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_A7238E33FA7559F49C741949C0FD4643" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_D340D7FE39D3599DB7F8F595A76730C0" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_A7238E33FA7559F49C741949C0FD4643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_A0865CD28893B49E6D9FE218CC58B596_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_A7238E33FA7559F49C741949C0FD4643" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_A0865CD28893B49E6D9FE218CC58B596_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AD954FD61F225C7DB61141010D3D7B71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_A7238E33FA7559F49C741949C0FD4643" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AD954FD61F225C7DB61141010D3D7B71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_A31B2E47FAA55941A8F54B713257A4F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AD954FD61F225C7DB61141010D3D7B71" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_A31B2E47FAA55941A8F54B713257A4F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_F2E275656018571B9D28DF254CD745C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_D42E002B5383589CA522E83C8578A051" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_F2E275656018571B9D28DF254CD745C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_8A2286E7ED8A5E11AA7194985AE7FEB2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_D42E002B5383589CA522E83C8578A051" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_8A2286E7ED8A5E11AA7194985AE7FEB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingMeasurementInput" xlink:label="loc_us-gaap_DebtSecuritiesTradingMeasurementInput_E400A7DD50135EC597EB74A814F2BEDC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_D42E002B5383589CA522E83C8578A051" xlink:to="loc_us-gaap_DebtSecuritiesTradingMeasurementInput_E400A7DD50135EC597EB74A814F2BEDC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_0362EE24BE4751369BB7C807309EA09B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_0362EE24BE4751369BB7C807309EA09B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_40D3CB5BCA08FD7F39A1E218D084698B_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_0362EE24BE4751369BB7C807309EA09B" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_40D3CB5BCA08FD7F39A1E218D084698B_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_D2E4E518A748548DA9AF042D2B7AB8C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_0362EE24BE4751369BB7C807309EA09B" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_D2E4E518A748548DA9AF042D2B7AB8C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_0387879BCC1E5AD08A612018EB9918B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_D2E4E518A748548DA9AF042D2B7AB8C5" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_0387879BCC1E5AD08A612018EB9918B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_F559B9494D0F5FD1BBB8476FD8F48454" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_D2E4E518A748548DA9AF042D2B7AB8C5" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_F559B9494D0F5FD1BBB8476FD8F48454" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2EF17C467D2E5A8ABEE6E433FB3CAFA2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_D2E4E518A748548DA9AF042D2B7AB8C5" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_2EF17C467D2E5A8ABEE6E433FB3CAFA2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_0715778033EB524C8BC4404A03E04FDC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_0715778033EB524C8BC4404A03E04FDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_844BCD7544E33DFF1794E218D0840D95_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_0715778033EB524C8BC4404A03E04FDC" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_844BCD7544E33DFF1794E218D0840D95_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_CE7C36EF4F2F5D41B2256743CAFD6966" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_0715778033EB524C8BC4404A03E04FDC" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_CE7C36EF4F2F5D41B2256743CAFD6966" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DueWithinOneYearMember" xlink:label="loc_agm_DueWithinOneYearMember_DEAA353C4ED95EFD9E6757C348048C35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_CE7C36EF4F2F5D41B2256743CAFD6966" xlink:to="loc_agm_DueWithinOneYearMember_DEAA353C4ED95EFD9E6757C348048C35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_62BEF6F7CCB65C748853C39D75743852" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_62BEF6F7CCB65C748853C39D75743852" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_43E9342C1AB8D111EED7E218D085EDAC_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_62BEF6F7CCB65C748853C39D75743852" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_43E9342C1AB8D111EED7E218D085EDAC_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_15E594CE47AD58EFA69A3E0F77344B1B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_62BEF6F7CCB65C748853C39D75743852" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_15E594CE47AD58EFA69A3E0F77344B1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMember" xlink:label="loc_us-gaap_LongTermDebtMember_4648D2EAFA8A5DCE8E30AB242CD9C162" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_15E594CE47AD58EFA69A3E0F77344B1B" xlink:to="loc_us-gaap_LongTermDebtMember_4648D2EAFA8A5DCE8E30AB242CD9C162" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_F1901E7D696F59718A609CDDFF4C9096" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_F1901E7D696F59718A609CDDFF4C9096" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_18676326697A3B46A45FE218D086A018_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_F1901E7D696F59718A609CDDFF4C9096" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_18676326697A3B46A45FE218D086A018_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_AE5BFC3D007F55BD8CD7B76911D493EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_F1901E7D696F59718A609CDDFF4C9096" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_AE5BFC3D007F55BD8CD7B76911D493EA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LongTermStandbyPurchaseCommitmentsMember" xlink:label="loc_agm_LongTermStandbyPurchaseCommitmentsMember_B6AD9BBF1BA95D87B3D0B9539D1130B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_AE5BFC3D007F55BD8CD7B76911D493EA" xlink:to="loc_agm_LongTermStandbyPurchaseCommitmentsMember_B6AD9BBF1BA95D87B3D0B9539D1130B3" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmerMacGuaranteedSecuritiesMember" xlink:label="loc_agm_FarmerMacGuaranteedSecuritiesMember_266049F8ECD75098AE5869B3AE506460" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_AE5BFC3D007F55BD8CD7B76911D493EA" xlink:to="loc_agm_FarmerMacGuaranteedSecuritiesMember_266049F8ECD75098AE5869B3AE506460" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_052ECDC3CC6F5CA396DF3133DAD44186" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_372456BC100F5C4E9ACACF8E4B8305B8" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_052ECDC3CC6F5CA396DF3133DAD44186" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_9BE9C4866F8C9D1E1C2AE218D087A6C3_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_052ECDC3CC6F5CA396DF3133DAD44186" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_9BE9C4866F8C9D1E1C2AE218D087A6C3_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_68456BECC22E5B54AB7AE932CCAA71E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_052ECDC3CC6F5CA396DF3133DAD44186" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_68456BECC22E5B54AB7AE932CCAA71E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_E20599C622C95E29B2D81FDE912250D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_68456BECC22E5B54AB7AE932CCAA71E1" xlink:to="loc_us-gaap_DebtSecuritiesMember_E20599C622C95E29B2D81FDE912250D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_19191FD196E2503580A8FB3B6D4AD608" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_68456BECC22E5B54AB7AE932CCAA71E1" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_19191FD196E2503580A8FB3B6D4AD608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_31943724D4485D3FA6325F61544C4E35" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_68456BECC22E5B54AB7AE932CCAA71E1" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_31943724D4485D3FA6325F61544C4E35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_D1FEDCE078865FF4B6F7409640B4DBBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_D1FEDCE078865FF4B6F7409640B4DBBA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesFairValueDisclosure" xlink:label="loc_agm_MarketableSecuritiesFairValueDisclosure_1F94A95EC2735D22A302D3D2DFE4CEBB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_agm_MarketableSecuritiesFairValueDisclosure_1F94A95EC2735D22A302D3D2DFE4CEBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_66462C12D75A5192BF9659306989A08E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_66462C12D75A5192BF9659306989A08E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_AD3D448DECEB5915BEEA7B9D059A1D03" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_DerivativeAssets_AD3D448DECEB5915BEEA7B9D059A1D03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyAssets" xlink:label="loc_us-gaap_GuarantyAssets_32E86E751F0D5AB28C9A3AA8737B292C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_GuarantyAssets_32E86E751F0D5AB28C9A3AA8737B292C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesPayableFairValueDisclosure" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_69A6AE2CB17B518697C96F95C31899FC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_69A6AE2CB17B518697C96F95C31899FC" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_VariableInterestEntityConsolidatedFairValueDisclosureLiabilities" xlink:label="loc_agm_VariableInterestEntityConsolidatedFairValueDisclosureLiabilities_8DA1330AF85D52AE90942B89AE36C610" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_agm_VariableInterestEntityConsolidatedFairValueDisclosureLiabilities_8DA1330AF85D52AE90942B89AE36C610" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_59172D6252845B7993A4170B0E4E73DA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_DerivativeLiabilities_59172D6252845B7993A4170B0E4E73DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyLiabilities" xlink:label="loc_us-gaap_GuarantyLiabilities_ABEFCD52C0EB585CAC918E114AE5EB80" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_18D05BB85A6D5B5E9A9D6DBB0B8697EC" xlink:to="loc_us-gaap_GuarantyLiabilities_ABEFCD52C0EB585CAC918E114AE5EB80" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_980FF59DEEEA1AD9FFB504B33A443391" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_980FF59DEEEA1AD9FFB504B33A443391" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_7CE093537C62F84F31FA04B33A33EF79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_srt_ProductOrServiceAxis_7CE093537C62F84F31FA04B33A33EF79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_7CE093537C62F84F31FA04B33A33EF79" xlink:to="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_7CE093537C62F84F31FA04B33A33EF79" xlink:to="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FloatingInterestRateMember" xlink:label="loc_agm_FloatingInterestRateMember_C63D7FAEC0025B16E43B04B33A421E1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710" xlink:to="loc_agm_FloatingInterestRateMember_C63D7FAEC0025B16E43B04B33A421E1A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FixedInterestRateMember" xlink:label="loc_agm_FixedInterestRateMember_E709A9F1A9098DF5102504B33A4200B5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_A6204E704DF5193AA30E04B33A335710" xlink:to="loc_agm_FixedInterestRateMember_E709A9F1A9098DF5102504B33A4200B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_078952DE2A8ED3CF3FCD04B33A42E28D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_078952DE2A8ED3CF3FCD04B33A42E28D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_20D538B24DFB4251786704B33A42A227_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_078952DE2A8ED3CF3FCD04B33A42E28D" xlink:to="loc_us-gaap_SegmentDomain_20D538B24DFB4251786704B33A42A227_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_20D538B24DFB4251786704B33A42A227" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_078952DE2A8ED3CF3FCD04B33A42E28D" xlink:to="loc_us-gaap_SegmentDomain_20D538B24DFB4251786704B33A42A227" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_9F11725549B3761B97D504B33A436321" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_20D538B24DFB4251786704B33A42A227" xlink:to="loc_agm_InstitutionalCreditMemberMember_9F11725549B3761B97D504B33A436321" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_C55FEA6706352D3C626F04B33A4326E0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_C55FEA6706352D3C626F04B33A4326E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_C55FEA6706352D3C626F04B33A4326E0" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_C55FEA6706352D3C626F04B33A4326E0" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_E9679D10DD93FAF720F304B33A43927F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_E9679D10DD93FAF720F304B33A43927F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesTradingMember" xlink:label="loc_agm_DebtSecuritiesTradingMember_417E80F0BA55A445402604B33A4419D1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_008E4F7E0EC5131EB7B804B33A439E63" xlink:to="loc_agm_DebtSecuritiesTradingMember_417E80F0BA55A445402604B33A4419D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0F99F91F5C7C8EDF9C4F04B33A44B70B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0F99F91F5C7C8EDF9C4F04B33A44B70B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_64F5991CAA7FF965A3AA04B33A4460D8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0F99F91F5C7C8EDF9C4F04B33A44B70B" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_64F5991CAA7FF965A3AA04B33A4460D8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_64F5991CAA7FF965A3AA04B33A4460D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0F99F91F5C7C8EDF9C4F04B33A44B70B" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_64F5991CAA7FF965A3AA04B33A4460D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_86A9A36998D57371E22C04B33A445ACA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_64F5991CAA7FF965A3AA04B33A4460D8" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_86A9A36998D57371E22C04B33A445ACA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_49121F2A3D5A0D97AAB304B33A44AD58" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_49121F2A3D5A0D97AAB304B33A44AD58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_49121F2A3D5A0D97AAB304B33A44AD58" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_49121F2A3D5A0D97AAB304B33A44AD58" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AuctionRateSecuritiesMember" xlink:label="loc_us-gaap_AuctionRateSecuritiesMember_B43B217246B333096F0D04B33A442F5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:to="loc_us-gaap_AuctionRateSecuritiesMember_B43B217246B333096F0D04B33A442F5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_D2C2538A17B99B6A7D6004B33A444814" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_D2C2538A17B99B6A7D6004B33A444814" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_252291D0E36F3729946004B33A444B62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:to="loc_us-gaap_DebtSecuritiesMember_252291D0E36F3729946004B33A444B62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_62D8E7B90773FE58A01A04B33A44E712" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_62D8E7B90773FE58A01A04B33A44E712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_D0736A31770E3DD05E5B04B33A440998" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_99E8E23BB712325EADCA04B33A4465F1" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_D0736A31770E3DD05E5B04B33A440998" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_E893E2AE2BBDAE62075F04B33A4489CA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_E738644B79C2ED19C7A904B33A33D07E" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_E893E2AE2BBDAE62075F04B33A4489CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_2EBA957EA51CC021D19604B33A446332_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_E893E2AE2BBDAE62075F04B33A4489CA" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_2EBA957EA51CC021D19604B33A446332_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_2EBA957EA51CC021D19604B33A446332" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_E893E2AE2BBDAE62075F04B33A4489CA" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_2EBA957EA51CC021D19604B33A446332" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_5ECACCD7E3B37160CF3704B33A44F35B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_2EBA957EA51CC021D19604B33A446332" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_5ECACCD7E3B37160CF3704B33A44F35B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_980FF59DEEEA1AD9FFB504B33A443391" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_C3D0AC0A8176CBF35CC804B33A4422D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_C3D0AC0A8176CBF35CC804B33A4422D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3_03EE477CBFB4E67536BC04B33A442C07" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3_03EE477CBFB4E67536BC04B33A442C07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_8E86D3C400D002122F2F04B33A448932" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_8E86D3C400D002122F2F04B33A448932" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_23D2A056B8AD146BBD7C04B33A44B84B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_23D2A056B8AD146BBD7C04B33A44B84B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_FFF2BE65967FF89DAA3C04B33A4435FC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_FFF2BE65967FF89DAA3C04B33A4435FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_A2C2C7C96DEA71798AAF04B33A44E5C4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_A2C2C7C96DEA71798AAF04B33A44E5C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss_157216873B9C6448BB4604B33A443EB7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_D0FBD3609D157CF0244104B33A448492" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss_157216873B9C6448BB4604B33A443EB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingUnrealizedGain" xlink:label="loc_us-gaap_DebtSecuritiesTradingUnrealizedGain_B95D7C3DB148C77F4F5D04B33A44FCE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_980FF59DEEEA1AD9FFB504B33A443391" xlink:to="loc_us-gaap_DebtSecuritiesTradingUnrealizedGain_B95D7C3DB148C77F4F5D04B33A44FCE1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems" xlink:label="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable" xlink:label="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:to="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_0ECCAAAFA4DE517B900ED32D58A40461" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_0ECCAAAFA4DE517B900ED32D58A40461" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_A9403707D0D611855F2400B74C5A361A_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0ECCAAAFA4DE517B900ED32D58A40461" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_A9403707D0D611855F2400B74C5A361A_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1993D3ED252252DCA8A7AAB4DFBAD744" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0ECCAAAFA4DE517B900ED32D58A40461" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1993D3ED252252DCA8A7AAB4DFBAD744" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_90021A82EEFC5A9C98256553EF884D4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1993D3ED252252DCA8A7AAB4DFBAD744" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_90021A82EEFC5A9C98256553EF884D4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_D9C34CC6694E50229272D6E7C9795D29" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_D9C34CC6694E50229272D6E7C9795D29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D735C82D7057C2E1C43700B74C5B417D_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D9C34CC6694E50229272D6E7C9795D29" xlink:to="loc_us-gaap_SegmentDomain_D735C82D7057C2E1C43700B74C5B417D_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5703A3C31D7B55C6A3B400485C117166" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D9C34CC6694E50229272D6E7C9795D29" xlink:to="loc_us-gaap_SegmentDomain_5703A3C31D7B55C6A3B400485C117166" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_262386AFC46352908BB3868370750063" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5703A3C31D7B55C6A3B400485C117166" xlink:to="loc_agm_InstitutionalCreditMemberMember_262386AFC46352908BB3868370750063" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_E746EF245CF5538AB7FB469FBF8E5FDF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5703A3C31D7B55C6A3B400485C117166" xlink:to="loc_agm_USDAGuaranteesMember_E746EF245CF5538AB7FB469FBF8E5FDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_B77F596B5F415B489AE8D5EFE2843C54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_B77F596B5F415B489AE8D5EFE2843C54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_CB5EA3CCD7BC696A754900B74C5B32DB_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_B77F596B5F415B489AE8D5EFE2843C54" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_CB5EA3CCD7BC696A754900B74C5B32DB_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_5CF70A3AE21F55169F625BFFBBC79AD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_B77F596B5F415B489AE8D5EFE2843C54" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_5CF70A3AE21F55169F625BFFBBC79AD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldtomaturitySecuritiesMember" xlink:label="loc_us-gaap_HeldtomaturitySecuritiesMember_27F7EB489E4B5C6BB316861191917565" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_5CF70A3AE21F55169F625BFFBBC79AD0" xlink:to="loc_us-gaap_HeldtomaturitySecuritiesMember_27F7EB489E4B5C6BB316861191917565" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_9CE65C6859C952E5B02F1E38F4AEB7DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_5CF70A3AE21F55169F625BFFBBC79AD0" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_9CE65C6859C952E5B02F1E38F4AEB7DE" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesTradingMember" xlink:label="loc_agm_DebtSecuritiesTradingMember_B0DDAA6790225DDA8AF94EDBAB593D7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_5CF70A3AE21F55169F625BFFBBC79AD0" xlink:to="loc_agm_DebtSecuritiesTradingMember_B0DDAA6790225DDA8AF94EDBAB593D7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_2F1756DFBFD9577080FE2112EE9C2A89" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable_BA15D4A4663656E9AE8816EDF7E48A06" xlink:to="loc_us-gaap_FinancialInstrumentAxis_2F1756DFBFD9577080FE2112EE9C2A89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C62284729A9964BA800700B74C5B7801_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_2F1756DFBFD9577080FE2112EE9C2A89" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C62284729A9964BA800700B74C5B7801_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7CB2EBA6F6B054C29D8DA673F7A48532" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_2F1756DFBFD9577080FE2112EE9C2A89" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7CB2EBA6F6B054C29D8DA673F7A48532" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_D89331076C8F5A74B5A56ED46E2CAB82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7CB2EBA6F6B054C29D8DA673F7A48532" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_D89331076C8F5A74B5A56ED46E2CAB82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_09FD0733E78C52E3A201EF7D80ABDCAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_USTreasuryAndGovernmentMember_D89331076C8F5A74B5A56ED46E2CAB82" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_09FD0733E78C52E3A201EF7D80ABDCAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_09D2E1E589D4528DBBF47A6A237D6020" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_USTreasuryAndGovernmentMember_D89331076C8F5A74B5A56ED46E2CAB82" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_09D2E1E589D4528DBBF47A6A237D6020" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturityUnpaidPrincipalBalance" xlink:label="loc_agm_HeldtoMaturityUnpaidPrincipalBalance_53FF57D5DBAC5A94A2714A04175AB570" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_agm_HeldtoMaturityUnpaidPrincipalBalance_53FF57D5DBAC5A94A2714A04175AB570" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_84502C6731CF58BDBE509F3C8B859229" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_84502C6731CF58BDBE509F3C8B859229" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AACE1E3CF11850B8A9336C66C67F2573" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AACE1E3CF11850B8A9336C66C67F2573" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_93C4B637BC855A9D936CBB46852F007C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_93C4B637BC855A9D936CBB46852F007C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_C1576D628E59589A9E3B508A0FDFDC8C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_C1576D628E59589A9E3B508A0FDFDC8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_E22BFE8A23565714AA084096A98F25B5" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAbstract_01F711576DCF5488A09A085DB19404FA" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_E22BFE8A23565714AA084096A98F25B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance" xlink:label="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_CE2590D88DAF51D5B3026D11EE829852" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:to="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_CE2590D88DAF51D5B3026D11EE829852" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_95177D5295BA51F7895AFFCE16C5235C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_95177D5295BA51F7895AFFCE16C5235C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8E34A2E75B305E69B0EE68CBED19C1CA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8E34A2E75B305E69B0EE68CBED19C1CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_962B2E957C7355F083E4BB311BF97EFD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_962B2E957C7355F083E4BB311BF97EFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_91C9B2948C905655866ED72F4B7D7256" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_D841C81F099852FA8EA7E285DA552CB6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_91C9B2948C905655866ED72F4B7D7256" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract" xlink:label="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:to="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_TradingSecuritiesUnpaidPrincipalBalance" xlink:label="loc_agm_TradingSecuritiesUnpaidPrincipalBalance_2E3AEBC7518055A591942D65DD9714B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:to="loc_agm_TradingSecuritiesUnpaidPrincipalBalance_2E3AEBC7518055A591942D65DD9714B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebtAmortizedCost" xlink:label="loc_us-gaap_TradingSecuritiesDebtAmortizedCost_D0AC07AB7C3E5C87BB3B537810153997" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:to="loc_us-gaap_TradingSecuritiesDebtAmortizedCost_D0AC07AB7C3E5C87BB3B537810153997" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingUnrealizedGain" xlink:label="loc_us-gaap_DebtSecuritiesTradingUnrealizedGain_FC6D981397A55270BE4A719B1DFA1C2D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:to="loc_us-gaap_DebtSecuritiesTradingUnrealizedGain_FC6D981397A55270BE4A719B1DFA1C2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingUnrealizedLoss" xlink:label="loc_us-gaap_DebtSecuritiesTradingUnrealizedLoss_927CED5B5729532A8FF87FD5627A68B9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:to="loc_us-gaap_DebtSecuritiesTradingUnrealizedLoss_927CED5B5729532A8FF87FD5627A68B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_27E4339449A955BB8CF11B69BE22CB88" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract_A56229BA315F5C98A04B511B2CE990A3" xlink:to="loc_us-gaap_TradingSecurities_27E4339449A955BB8CF11B69BE22CB88" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_TradingSecuritiesWeightedAverageYield" xlink:label="loc_agm_TradingSecuritiesWeightedAverageYield_5A76447BD4DF5D378BE709A5F6A906F6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems_26E722480B495A5AB8081C035A360FBC" xlink:to="loc_agm_TradingSecuritiesWeightedAverageYield_5A76447BD4DF5D378BE709A5F6A906F6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C8A1FB3701475F8FA16051E01A955132" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D9A011DAC1CE5ED49CD5DA9A9BB41BC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C8A1FB3701475F8FA16051E01A955132" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D9A011DAC1CE5ED49CD5DA9A9BB41BC4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5707E39A174656BB8EB3A0A7822B9F14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D9A011DAC1CE5ED49CD5DA9A9BB41BC4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5707E39A174656BB8EB3A0A7822B9F14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_79EE6585A89293BDE39EE218CBC9F472_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5707E39A174656BB8EB3A0A7822B9F14" xlink:to="loc_us-gaap_SegmentDomain_79EE6585A89293BDE39EE218CBC9F472_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_697A24191A0C5495BB45835E557990E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5707E39A174656BB8EB3A0A7822B9F14" xlink:to="loc_us-gaap_SegmentDomain_697A24191A0C5495BB45835E557990E2" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_C85CF0AA76A15A01B60F154A9240D9B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_697A24191A0C5495BB45835E557990E2" xlink:to="loc_agm_InstitutionalCreditMemberMember_C85CF0AA76A15A01B60F154A9240D9B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_9F8B09A0AC8B56D5A02158BAE9F80480" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D9A011DAC1CE5ED49CD5DA9A9BB41BC4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_9F8B09A0AC8B56D5A02158BAE9F80480" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_FB89AC7F8D3F74644AB6E218CBC932DF_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9F8B09A0AC8B56D5A02158BAE9F80480" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_FB89AC7F8D3F74644AB6E218CBC932DF_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_14C9126305DE54BE93735D818E8FFAC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9F8B09A0AC8B56D5A02158BAE9F80480" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_14C9126305DE54BE93735D818E8FFAC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0A2A9D4F101152798FE3995BE9B55C42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_14C9126305DE54BE93735D818E8FFAC9" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0A2A9D4F101152798FE3995BE9B55C42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_A114877F6CD1581BADB504B842289981" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C8A1FB3701475F8FA16051E01A955132" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_A114877F6CD1581BADB504B842289981" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_C6DCE3D805595E4EAE682CFFD6FB4576" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C8A1FB3701475F8FA16051E01A955132" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_C6DCE3D805595E4EAE682CFFD6FB4576" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_3BB249DE21F451FD9DD754DA74BED1E0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C8A1FB3701475F8FA16051E01A955132" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_3BB249DE21F451FD9DD754DA74BED1E0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A17CCC2FEE585DDC9FCCD418D0E128E0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5CA91B6DEEDF50CABD23BB6EEC081FB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A17CCC2FEE585DDC9FCCD418D0E128E0" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5CA91B6DEEDF50CABD23BB6EEC081FB4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_416135AA733B506F82CBACD783B1F544" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5CA91B6DEEDF50CABD23BB6EEC081FB4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_416135AA733B506F82CBACD783B1F544" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_84A1AE41C6896C4F5461017E7F1E21C1_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_416135AA733B506F82CBACD783B1F544" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_84A1AE41C6896C4F5461017E7F1E21C1_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9DEB7009302B540EAEAEAB018817FE46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_416135AA733B506F82CBACD783B1F544" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9DEB7009302B540EAEAEAB018817FE46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_C95A6173AB6D525A9E3DBBD0205803F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9DEB7009302B540EAEAEAB018817FE46" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_C95A6173AB6D525A9E3DBBD0205803F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_364423D66E6E5283BEAB0F31703FC113" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A17CCC2FEE585DDC9FCCD418D0E128E0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_364423D66E6E5283BEAB0F31703FC113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_364423D66E6E5283BEAB0F31703FC113" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_F8967DB55BFA58EBB53695665099A837" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_F8967DB55BFA58EBB53695665099A837" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_642A7A7C78DC5B469D5CABA6512BF2DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_642A7A7C78DC5B469D5CABA6512BF2DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_FD61CD31674459D88AE7377EA36CC66B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_FD61CD31674459D88AE7377EA36CC66B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_93E82ED641BD51ADAD277A9779ED2602" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_93E82ED641BD51ADAD277A9779ED2602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1AD06963C23D57A0B78C130A34A525F0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_16E56B9CED815B47967E47223C57ECCD" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1AD06963C23D57A0B78C130A34A525F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_364423D66E6E5283BEAB0F31703FC113" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_AA1FF5587AE25E1D85409E11EB3B5351" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_AA1FF5587AE25E1D85409E11EB3B5351" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_5097EF61C4F85C558F16573D2ACA9183" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_5097EF61C4F85C558F16573D2ACA9183" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_638371F87AEA52ED814590A9293CF9B8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_638371F87AEA52ED814590A9293CF9B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_103448C4E0B553FD8BAE28C42F8896D6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_103448C4E0B553FD8BAE28C42F8896D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0B697FCBA8F45ED6911AB46403F4D313" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_D76CF335A8EB5B9AB7CA0D678B203911" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0B697FCBA8F45ED6911AB46403F4D313" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" xlink:label="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_364423D66E6E5283BEAB0F31703FC113" xlink:to="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_0B205D0CB7185ABCB3E60377E4DC5E94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_0B205D0CB7185ABCB3E60377E4DC5E94" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_A3598D9743A05B54A6D713D67E20481A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_A3598D9743A05B54A6D713D67E20481A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield_6A85A8EC2B805AF3966969EF2D34D1F3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield_6A85A8EC2B805AF3966969EF2D34D1F3" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_5A92123589BC56D18C6E697B1C4FD3FA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_5A92123589BC56D18C6E697B1C4FD3FA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield_FE028866124D5533AE064AE232747401" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_BCDD21A1AE8D59BBA3838B23A879D108" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield_FE028866124D5533AE064AE232747401" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems_A9A451570F99568BA842EA94FB446645" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfHeldToMaturitySecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesTable_1A88F557D40E51C49FD24F0EB87508E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems_A9A451570F99568BA842EA94FB446645" xlink:to="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesTable_1A88F557D40E51C49FD24F0EB87508E9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_BC46EE4477865037AF740EFB3C526EE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesTable_1A88F557D40E51C49FD24F0EB87508E9" xlink:to="loc_us-gaap_FinancialInstrumentAxis_BC46EE4477865037AF740EFB3C526EE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F87314CB139F0EDE0C64E218D022EE9A_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_BC46EE4477865037AF740EFB3C526EE7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F87314CB139F0EDE0C64E218D022EE9A_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_25B8C3856911595A82F4BC6836EA053B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_BC46EE4477865037AF740EFB3C526EE7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_25B8C3856911595A82F4BC6836EA053B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_5193C0B0AF7C58B5B9FB9C96AA96AE9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_25B8C3856911595A82F4BC6836EA053B" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_5193C0B0AF7C58B5B9FB9C96AA96AE9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract_64EF92739D76576BB940565E48F95C32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems_A9A451570F99568BA842EA94FB446645" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract_64EF92739D76576BB940565E48F95C32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract_64EF92739D76576BB940565E48F95C32" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_DFAF329AA7F5599EBD099531CF9D9AD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_DFAF329AA7F5599EBD099531CF9D9AD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_8B70158EE4C15D0CAA66190D3125CFF6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_8B70158EE4C15D0CAA66190D3125CFF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_B3DDC6DBCE6950CABD6A4331FA5249ED" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_B3DDC6DBCE6950CABD6A4331FA5249ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_298921A1A3465903A5858B2C82165CBB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_298921A1A3465903A5858B2C82165CBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AC8DA75DFAC253F3BF00428E62E70595" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_1634AA029D5C5B3B816D795610A363D1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AC8DA75DFAC253F3BF00428E62E70595" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract_64EF92739D76576BB940565E48F95C32" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_2CFDD1C3B63A577F9EB4CB2319724C52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_2CFDD1C3B63A577F9EB4CB2319724C52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_7EBD5B733B7D5E9DB4F77E80455F0C93" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_7EBD5B733B7D5E9DB4F77E80455F0C93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_D04AE8C54BAF5DBA9A9573654D7B0410" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_D04AE8C54BAF5DBA9A9573654D7B0410" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7357CB5FD47650179416B82F93784BD1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7357CB5FD47650179416B82F93784BD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_BE5DDF5844ED5D9994BBB1179CF7CE66" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract_CEB509ADAB9E57F498D4746206CFC09E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_BE5DDF5844ED5D9994BBB1179CF7CE66" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract_64EF92739D76576BB940565E48F95C32" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_C08F63A5FE5A54E28B93480D59C16DEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_C08F63A5FE5A54E28B93480D59C16DEF" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_A43FFB87138F5652A1E4A0C8CD437EDD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_A43FFB87138F5652A1E4A0C8CD437EDD" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtomaturitySecuritiesDebtMaturitiesafterFiveThroughTenYearsWeightedAverageYield" xlink:label="loc_agm_HeldtomaturitySecuritiesDebtMaturitiesafterFiveThroughTenYearsWeightedAverageYield_54AD28039F9455CD8AD7070331B8BF9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:to="loc_agm_HeldtomaturitySecuritiesDebtMaturitiesafterFiveThroughTenYearsWeightedAverageYield_54AD28039F9455CD8AD7070331B8BF9C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_07858B777BC357909E5D9E0A443D12C9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_07858B777BC357909E5D9E0A443D12C9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield_636829CB49E8578D9E606FDDF577AC4B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_27E331013CD4539CBDA5CEC04BACC8A7" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield_636829CB49E8578D9E606FDDF577AC4B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_90C6DEA8B2171653C784EEBA3B0D965F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_446B4F695922D226E8E9EEBA3B0AB66F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_90C6DEA8B2171653C784EEBA3B0D965F" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_446B4F695922D226E8E9EEBA3B0AB66F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_356EC4C1551A2E10335AEEBA3B0AB022" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_446B4F695922D226E8E9EEBA3B0AB66F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_356EC4C1551A2E10335AEEBA3B0AB022" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_356EC4C1551A2E10335AEEBA3B0AB022" xlink:to="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_356EC4C1551A2E10335AEEBA3B0AB022" xlink:to="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_A68D581430A7E776F21EEEBA3B0A4DE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0" xlink:to="loc_agm_InstitutionalCreditMemberMember_A68D581430A7E776F21EEEBA3B0A4DE3" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_3F18FBC42EB4764DF9CDEEBA3B0ABB3E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_939B3FB8A568ED08D074EEBA3B0A4CA0" xlink:to="loc_agm_USDAGuaranteesMember_3F18FBC42EB4764DF9CDEEBA3B0ABB3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_B29285F2B7F22818ADAEEEBA3B0AA6C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_446B4F695922D226E8E9EEBA3B0AB66F" xlink:to="loc_us-gaap_FinancialInstrumentAxis_B29285F2B7F22818ADAEEEBA3B0AA6C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_B29285F2B7F22818ADAEEEBA3B0AA6C2" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_B29285F2B7F22818ADAEEEBA3B0AA6C2" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_B96AA00A26ADE983B87CEEBA3B0C6019" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_B96AA00A26ADE983B87CEEBA3B0C6019" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_5A51F3BC1000BB8B6B04EEBA3B0C812A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_5A51F3BC1000BB8B6B04EEBA3B0C812A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_F4B73BB438F4A8F87051EEBA3B0C2EDC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11FE48C939EAEF129166EEBA3B0C9A63" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_F4B73BB438F4A8F87051EEBA3B0C2EDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesClassifiedAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_271861CEFD261188026FEEBA3B0D52A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_90C6DEA8B2171653C784EEBA3B0D965F" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_271861CEFD261188026FEEBA3B0D52A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_7B99BB842C7D01F0F0AAEEBA3B0DEFD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_271861CEFD261188026FEEBA3B0D52A8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_7B99BB842C7D01F0F0AAEEBA3B0DEFD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_0CE3E8C7832722DC2681EEBA3B0D8531" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_7B99BB842C7D01F0F0AAEEBA3B0DEFD4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_0CE3E8C7832722DC2681EEBA3B0D8531" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_29B9BA87938C53659706EEBA3B0D4113" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_7B99BB842C7D01F0F0AAEEBA3B0DEFD4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_29B9BA87938C53659706EEBA3B0D4113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_5EE34978010B8E2D39C6EEBA3B0D2D7B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_271861CEFD261188026FEEBA3B0D52A8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_5EE34978010B8E2D39C6EEBA3B0D2D7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_C545604974C2DF33BB10EEBA3B0DF8CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_5EE34978010B8E2D39C6EEBA3B0D2D7B" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_C545604974C2DF33BB10EEBA3B0DF8CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_0E6622C9AE8157CA1AF8EEBA3B0D82AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_5EE34978010B8E2D39C6EEBA3B0D2D7B" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_0E6622C9AE8157CA1AF8EEBA3B0D82AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BEB224B0B3F1ABAFAF21EEBA3B0DB4F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_90C6DEA8B2171653C784EEBA3B0D965F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BEB224B0B3F1ABAFAF21EEBA3B0DB4F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_969B4776DC2CCD3298BCEEBA3B0F9BCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BEB224B0B3F1ABAFAF21EEBA3B0DB4F5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_969B4776DC2CCD3298BCEEBA3B0F9BCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_B5E7F7EE6EBC491455CBEEBA3B0FBAC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_969B4776DC2CCD3298BCEEBA3B0F9BCF" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_B5E7F7EE6EBC491455CBEEBA3B0FBAC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_53F27E6147F6255E6EF5EEBA3B0FB063" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_969B4776DC2CCD3298BCEEBA3B0F9BCF" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_53F27E6147F6255E6EF5EEBA3B0FB063" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_3F4CC239C9E95A2A3652EEBA3B0F22FF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_BEB224B0B3F1ABAFAF21EEBA3B0DB4F5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_3F4CC239C9E95A2A3652EEBA3B0F22FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2BF1898E40CB1E1FF699EEBA3B0F30AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_3F4CC239C9E95A2A3652EEBA3B0F22FF" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2BF1898E40CB1E1FF699EEBA3B0F30AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_83465D272982D4C8CF82EEBA3B0F996F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_3F4CC239C9E95A2A3652EEBA3B0F22FF" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_83465D272982D4C8CF82EEBA3B0F996F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivatives" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedItemsinFairValueHedgingRelationshipLineItems" xlink:label="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedItemsinFairValueHedgingRelationshipTable" xlink:label="loc_agm_HedgedItemsinFairValueHedgingRelationshipTable_642ACD8FFB9CF88382ECD181DD1D1046" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_agm_HedgedItemsinFairValueHedgingRelationshipTable_642ACD8FFB9CF88382ECD181DD1D1046" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_A6398C8C3ED38D643395D181DD1E47E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipTable_642ACD8FFB9CF88382ECD181DD1D1046" xlink:to="loc_us-gaap_FinancialInstrumentAxis_A6398C8C3ED38D643395D181DD1E47E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_E1E59A78491E799ED027D181DD1E88BD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_A6398C8C3ED38D643395D181DD1E47E1" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_E1E59A78491E799ED027D181DD1E88BD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_E1E59A78491E799ED027D181DD1E88BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_A6398C8C3ED38D643395D181DD1E47E1" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_E1E59A78491E799ED027D181DD1E88BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_D35C7A6C2F539A29B274D181DD1F0C5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_E1E59A78491E799ED027D181DD1E88BD" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_D35C7A6C2F539A29B274D181DD1F0C5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_4ED77E9F2FE6D2AF4677D181DD1F43FF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipTable_642ACD8FFB9CF88382ECD181DD1D1046" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_4ED77E9F2FE6D2AF4677D181DD1F43FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_4ED77E9F2FE6D2AF4677D181DD1F43FF" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_4ED77E9F2FE6D2AF4677D181DD1F43FF" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansMember" xlink:label="loc_us-gaap_LoansMember_15233FB0222C0D25E67ED181DD206D15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C" xlink:to="loc_us-gaap_LoansMember_15233FB0222C0D25E67ED181DD206D15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_4D9599828221C8B316EDD1822CE22AC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C" xlink:to="loc_us-gaap_OtherAssetsMember_4D9599828221C8B316EDD1822CE22AC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMember" xlink:label="loc_us-gaap_LongTermDebtMember_91449335C34248E7931FD181DD205BD0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_B1EF609200D6F244B959D181DD1FF62C" xlink:to="loc_us-gaap_LongTermDebtMember_91449335C34248E7931FD181DD205BD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAmountOfHedgedItem" xlink:label="loc_us-gaap_DerivativeAmountOfHedgedItem_11B07F7A3FF0A9B50D72D181DD200986" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_us-gaap_DerivativeAmountOfHedgedItem_11B07F7A3FF0A9B50D72D181DD200986" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease" xlink:label="loc_us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease_0D5110DD4E540CD038D8D181DD22172A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease_0D5110DD4E540CD038D8D181DD22172A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgedLiabilityFairValueHedgeCumulativeIncreaseDecrease" xlink:label="loc_us-gaap_HedgedLiabilityFairValueHedgeCumulativeIncreaseDecrease_B8CC1794FEC2B1F25FF5D181DD23D376" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_us-gaap_HedgedLiabilityFairValueHedgeCumulativeIncreaseDecrease_B8CC1794FEC2B1F25FF5D181DD23D376" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedAssetDiscontinuedFairValueCumulativeIncreaseDecrease" xlink:label="loc_agm_HedgedAssetDiscontinuedFairValueCumulativeIncreaseDecrease_D2B910D7B847E1E7DCD8D181DD23E5D6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_agm_HedgedAssetDiscontinuedFairValueCumulativeIncreaseDecrease_D2B910D7B847E1E7DCD8D181DD23E5D6" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedLiabilityDiscontinuedFairValueCumulativeIncreaseDecrease" xlink:label="loc_agm_HedgedLiabilityDiscontinuedFairValueCumulativeIncreaseDecrease_435233EF98535DD76C52D181DD233F53" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_HedgedItemsinFairValueHedgingRelationshipLineItems_54BDE04B3343282CC293D181DD208F99" xlink:to="loc_agm_HedgedLiabilityDiscontinuedFairValueCumulativeIncreaseDecrease_435233EF98535DD76C52D181DD233F53" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_AD54EC1A11D7A4457F6BCAC8EE9069A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_AD54EC1A11D7A4457F6BCAC8EE9069A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_38E3B95A00C7338C4029CAC8EE9178F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_AD54EC1A11D7A4457F6BCAC8EE9069A9" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_38E3B95A00C7338C4029CAC8EE9178F6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_38E3B95A00C7338C4029CAC8EE9178F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_AD54EC1A11D7A4457F6BCAC8EE9069A9" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_38E3B95A00C7338C4029CAC8EE9178F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_FE41730C0E983BA14098CAC8EE91C93D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_38E3B95A00C7338C4029CAC8EE9178F6" xlink:to="loc_us-gaap_InterestRateSwapMember_FE41730C0E983BA14098CAC8EE91C93D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaap_TransactionTypeAxis_CF232DA3A93CA8897866CAC8EE9167F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:to="loc_us-gaap_TransactionTypeAxis_CF232DA3A93CA8897866CAC8EE9167F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaap_TransactionDomain_6111EF368614AED56028CAC8EE91F3A4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TransactionTypeAxis_CF232DA3A93CA8897866CAC8EE9167F7" xlink:to="loc_us-gaap_TransactionDomain_6111EF368614AED56028CAC8EE91F3A4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaap_TransactionDomain_6111EF368614AED56028CAC8EE91F3A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TransactionTypeAxis_CF232DA3A93CA8897866CAC8EE9167F7" xlink:to="loc_us-gaap_TransactionDomain_6111EF368614AED56028CAC8EE91F3A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ExchangeClearedMember" xlink:label="loc_us-gaap_ExchangeClearedMember_C0A86AC0CF4D85631835CAC8EE92F05D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransactionDomain_6111EF368614AED56028CAC8EE91F3A4" xlink:to="loc_us-gaap_ExchangeClearedMember_C0A86AC0CF4D85631835CAC8EE92F05D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_F238BF0CE1705BF53FCFCAC8EE926CFD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:to="loc_us-gaap_FinancialInstrumentAxis_F238BF0CE1705BF53FCFCAC8EE926CFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_F238BF0CE1705BF53FCFCAC8EE926CFD" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_F238BF0CE1705BF53FCFCAC8EE926CFD" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashMember" xlink:label="loc_us-gaap_CashMember_398BE0A052CAA2DC7EC7CAC8EE9270E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E" xlink:to="loc_us-gaap_CashMember_398BE0A052CAA2DC7EC7CAC8EE9270E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_FEBDAF641505A917E1C7CAC8EE939E89" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_CB53999AF26A4F9A15A8CAC8EE92290E" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_FEBDAF641505A917E1C7CAC8EE939E89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_B9F2C909B0ED4E6468F4CAC8EE930F84" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0FC70027AA32A8583C0ACAC8EE90FB20" xlink:to="loc_us-gaap_TypeOfArrangementAxis_B9F2C909B0ED4E6468F4CAC8EE930F84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_57072EBB65360634D681CAC8EE9388BA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_B9F2C909B0ED4E6468F4CAC8EE930F84" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_57072EBB65360634D681CAC8EE9388BA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_57072EBB65360634D681CAC8EE9388BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_B9F2C909B0ED4E6468F4CAC8EE930F84" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_57072EBB65360634D681CAC8EE9388BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UncollateralizedMember" xlink:label="loc_us-gaap_UncollateralizedMember_756F09C49D933F540F33CAC8EE93AA3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_57072EBB65360634D681CAC8EE9388BA" xlink:to="loc_us-gaap_UncollateralizedMember_756F09C49D933F540F33CAC8EE93AA3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet" xlink:label="loc_us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet_EC414BFE261AB585EAD1CAC8EE94A11C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet_EC414BFE261AB585EAD1CAC8EE94A11C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnDiscontinuationOfInterestRateCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurringNet" xlink:label="loc_us-gaap_GainLossOnDiscontinuationOfInterestRateCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurringNet_0F96BDDDD8AFA0B2746DCAC8EE943068" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_GainLossOnDiscontinuationOfInterestRateCashFlowHedgeDueToForecastedTransactionProbableOfNotOccurringNet_0F96BDDDD8AFA0B2746DCAC8EE943068" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnCash" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_F7870DE892CC1874131BCAC8EE942F5E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_F7870DE892CC1874131BCAC8EE942F5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ObligationToReturnSecuritiesReceivedAsCollateral" xlink:label="loc_us-gaap_ObligationToReturnSecuritiesReceivedAsCollateral_2D8EF8735E81C8312520CAC8EE94A928" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_ObligationToReturnSecuritiesReceivedAsCollateral_2D8EF8735E81C8312520CAC8EE94A928" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CreditExposureToInterestRateSwapCounterparties" xlink:label="loc_agm_CreditExposureToInterestRateSwapCounterparties_DE85B7A92BD532A1414ACAC8EE94D9F4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_agm_CreditExposureToInterestRateSwapCounterparties_DE85B7A92BD532A1414ACAC8EE94D9F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CollateralAlreadyPostedAggregateFairValue" xlink:label="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_950415EA263BB06FCEF1CAC8EE956E63" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_950415EA263BB06FCEF1CAC8EE956E63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_63FCEFE7A00135C435F9CAC8EE953D93" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_63FCEFE7A00135C435F9CAC8EE953D93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetNotionalAmount" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_42D31B7F69E2B2408E33CB3914F548BF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_59FBD3A00B631B9B0201CAC8EE93CE72" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_42D31B7F69E2B2408E33CB3914F548BF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_7B211A22A6205FA489E21FB7D52C7132" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_C6BE6FA9070258D0A53B494D835D8D27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_7B211A22A6205FA489E21FB7D52C7132" xlink:to="loc_us-gaap_DerivativeTable_C6BE6FA9070258D0A53B494D835D8D27" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_816A36E655405BB2A9F93B819C54CEE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_C6BE6FA9070258D0A53B494D835D8D27" xlink:to="loc_us-gaap_TypeOfArrangementAxis_816A36E655405BB2A9F93B819C54CEE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_9C19D65505404D5D758AE218D001C0F0_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_816A36E655405BB2A9F93B819C54CEE3" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_9C19D65505404D5D758AE218D001C0F0_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0C35C1D44C9B5A158333FCFBABA06E54" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_816A36E655405BB2A9F93B819C54CEE3" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0C35C1D44C9B5A158333FCFBABA06E54" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ExcludingNettingMember" xlink:label="loc_agm_ExcludingNettingMember_4507F2637F4E5736A8EAD833FFE21898" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0C35C1D44C9B5A158333FCFBABA06E54" xlink:to="loc_agm_ExcludingNettingMember_4507F2637F4E5736A8EAD833FFE21898" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CounterpartyNettingMember" xlink:label="loc_agm_CounterpartyNettingMember_BBEBFF2EDFB25CC7923421CD6F4C21DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0C35C1D44C9B5A158333FCFBABA06E54" xlink:to="loc_agm_CounterpartyNettingMember_BBEBFF2EDFB25CC7923421CD6F4C21DC" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NettingMember" xlink:label="loc_agm_NettingMember_846DF097CD8254339EC237076B090416" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0C35C1D44C9B5A158333FCFBABA06E54" xlink:to="loc_agm_NettingMember_846DF097CD8254339EC237076B090416" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_F90A30BBAF895258914607156271B85A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_C6BE6FA9070258D0A53B494D835D8D27" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_F90A30BBAF895258914607156271B85A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8CDEA3CB00F1264C6914E218D0025588_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F90A30BBAF895258914607156271B85A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8CDEA3CB00F1264C6914E218D0025588_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4259E099564455438FF34FC2B7A2B7E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F90A30BBAF895258914607156271B85A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4259E099564455438FF34FC2B7A2B7E9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_IncludingAccruedInterestMember" xlink:label="loc_agm_IncludingAccruedInterestMember_6A19163A54615ED09784398E7F623C6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4259E099564455438FF34FC2B7A2B7E9" xlink:to="loc_agm_IncludingAccruedInterestMember_6A19163A54615ED09784398E7F623C6A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CreditExposureToInterestRateSwapCounterparties" xlink:label="loc_agm_CreditExposureToInterestRateSwapCounterparties_C7D160D8FFEF51D8ABCEEA8529E85F7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_7B211A22A6205FA489E21FB7D52C7132" xlink:to="loc_agm_CreditExposureToInterestRateSwapCounterparties_C7D160D8FFEF51D8ABCEEA8529E85F7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_EFE2916B6A6B5836867E5405ACFEAE8F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_7B211A22A6205FA489E21FB7D52C7132" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_EFE2916B6A6B5836867E5405ACFEAE8F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_6B97CD7004FEDF8C73D7CAC8EE9C6993" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_DerivativeTable_6B97CD7004FEDF8C73D7CAC8EE9C6993" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_D0972B04EC7FB0F445C3CAC8EE9C2AC7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6B97CD7004FEDF8C73D7CAC8EE9C6993" xlink:to="loc_us-gaap_HedgingDesignationAxis_D0972B04EC7FB0F445C3CAC8EE9C2AC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_D0972B04EC7FB0F445C3CAC8EE9C2AC7" xlink:to="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_D0972B04EC7FB0F445C3CAC8EE9C2AC7" xlink:to="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_23D7621F361C1C180368CAC8EE9DB216" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_23D7621F361C1C180368CAC8EE9DB216" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_A19E584DC5627C23F4B8CAC8EE9D7993" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F99F23184477C1E955AECAC8EE9C5DA8" xlink:to="loc_us-gaap_NondesignatedMember_A19E584DC5627C23F4B8CAC8EE9D7993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_D7730AE1D489346736A3CAC8EE9DEE0C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6B97CD7004FEDF8C73D7CAC8EE9C6993" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_D7730AE1D489346736A3CAC8EE9DEE0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_D7730AE1D489346736A3CAC8EE9DEE0C" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_D7730AE1D489346736A3CAC8EE9DEE0C" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_732E14DE95F5C3438DF5CAC8EE9E4A31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D" xlink:to="loc_us-gaap_FairValueHedgingMember_732E14DE95F5C3438DF5CAC8EE9E4A31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_FC1DE70AE34F666255AACAC8EE9EC7CC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9809FFCC7A849DCB1C40CAC8EE9D2F8D" xlink:to="loc_us-gaap_CashFlowHedgingMember_FC1DE70AE34F666255AACAC8EE9EC7CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_AAD7D61513B9DFCFC077CAC8EE9E7658" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6B97CD7004FEDF8C73D7CAC8EE9C6993" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_AAD7D61513B9DFCFC077CAC8EE9E7658" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_AAD7D61513B9DFCFC077CAC8EE9E7658" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_AAD7D61513B9DFCFC077CAC8EE9E7658" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InterestRateSwapPayFixedNonCallableMember" xlink:label="loc_agm_InterestRateSwapPayFixedNonCallableMember_1E0D858AF5DC28C66562CAC8EE9F65B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:to="loc_agm_InterestRateSwapPayFixedNonCallableMember_1E0D858AF5DC28C66562CAC8EE9F65B4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InterestRateSwapReceiveFixedNonCallableMember" xlink:label="loc_agm_InterestRateSwapReceiveFixedNonCallableMember_4220B6B7AE905682BD01CAC8EE9F9241" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:to="loc_agm_InterestRateSwapReceiveFixedNonCallableMember_4220B6B7AE905682BD01CAC8EE9F9241" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InterestRateSwapReceiveFixedCallableMember" xlink:label="loc_agm_InterestRateSwapReceiveFixedCallableMember_CA05C9FF0FD17D161423CAC8EE9F403C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:to="loc_agm_InterestRateSwapReceiveFixedCallableMember_CA05C9FF0FD17D161423CAC8EE9F403C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BasisSwapMember" xlink:label="loc_us-gaap_BasisSwapMember_8689880CC5395C21F865CAC8EE9FB284" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:to="loc_us-gaap_BasisSwapMember_8689880CC5395C21F865CAC8EE9FB284" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FutureMember" xlink:label="loc_us-gaap_FutureMember_9E8562F1886759B0A4C8CAC8EE9F611B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_396BCA35943D59F26CA5CAC8EE9E72EE" xlink:to="loc_us-gaap_FutureMember_9E8562F1886759B0A4C8CAC8EE9F611B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotionalAmountOfDerivativesAbstract" xlink:label="loc_us-gaap_NotionalAmountOfDerivativesAbstract_F649A622F603A4DB81EECAC8EEA04FF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_NotionalAmountOfDerivativesAbstract_F649A622F603A4DB81EECAC8EEA04FF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetNotionalAmount" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_5C0A0D00C8549D184653CB385F0B1D6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NotionalAmountOfDerivativesAbstract_F649A622F603A4DB81EECAC8EEA04FF2" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_5C0A0D00C8549D184653CB385F0B1D6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueNetAbstract" xlink:label="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_94A24557C0F6A8E495EBCAC8EEA04CAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_94A24557C0F6A8E495EBCAC8EEA04CAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets" xlink:label="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets_CA8D139A385FEDCB9D64CAC8EEA1FF28" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets_CA8D139A385FEDCB9D64CAC8EEA1FF28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueOfCollateral" xlink:label="loc_us-gaap_DerivativeAssetFairValueOfCollateral_18E82735D076B1E6FF80CAC8EEA1DE91" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeAssetFairValueOfCollateral_18E82735D076B1E6FF80CAC8EEA1DE91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_445BF89CDF2E146A9CC1CAC8EEA11DCD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeAssets_445BF89CDF2E146A9CC1CAC8EEA11DCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_97E1201B73100513ED24CAC8EEA1CE1B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_97E1201B73100513ED24CAC8EEA1CE1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeLiabilities_672AA27545C070DD9D03CAC8EEA19620" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeLiabilities_672AA27545C070DD9D03CAC8EEA19620" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CollateralAlreadyPostedAggregateFairValue" xlink:label="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_3AB28F70FE7E00DF5087CAC8EEA20DB7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_3AB28F70FE7E00DF5087CAC8EEA20DB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_A0569D7E75F7719E11FECAC8EEA2B072" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_2AEDAF349E6A29CD0AEFCAC8EEA00BF9" xlink:to="loc_us-gaap_DerivativeLiabilities_A0569D7E75F7719E11FECAC8EEA2B072" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAverageFixedInterestRate" xlink:label="loc_us-gaap_DerivativeAverageFixedInterestRate_F11171779B937CDFFE85CAC8EEA23D7D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_DerivativeAverageFixedInterestRate_F11171779B937CDFFE85CAC8EEA23D7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAverageVariableInterestRate" xlink:label="loc_us-gaap_DerivativeAverageVariableInterestRate_DCABBF408E483F3FAE7DCAC8EEA2A6C9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_DerivativeAverageVariableInterestRate_DCABBF408E483F3FAE7DCAC8EEA2A6C9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DerivativeWeightedAverageForwardPrice" xlink:label="loc_agm_DerivativeWeightedAverageForwardPrice_9B089A538BB6C837D934CAC8EEA26D82" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_agm_DerivativeWeightedAverageForwardPrice_9B089A538BB6C837D934CAC8EEA26D82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAverageRemainingMaturity1" xlink:label="loc_us-gaap_DerivativeAverageRemainingMaturity1_C97CB62D03B583D61959CAC8EEA2546A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_55A4EE8B13C618B62735CAC8EE9F9A0B" xlink:to="loc_us-gaap_DerivativeAverageRemainingMaturity1_C97CB62D03B583D61959CAC8EEA2546A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_E879A27C61F4F6ED0BBA04B33B39463A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_E879A27C61F4F6ED0BBA04B33B39463A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E879A27C61F4F6ED0BBA04B33B39463A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E879A27C61F4F6ED0BBA04B33B39463A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_72BAC49FA2DEBEE0360104B33B3953FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23" xlink:to="loc_us-gaap_InterestRateSwapMember_72BAC49FA2DEBEE0360104B33B3953FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FutureMember" xlink:label="loc_us-gaap_FutureMember_B4B9FFD36A9B910088B004B33B3923F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_B44E2B2AAB93668A4FBC04B33B39FD23" xlink:to="loc_us-gaap_FutureMember_B4B9FFD36A9B910088B004B33B3923F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_BCDC35D86985A36FC3F404B33B391EAA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_BCDC35D86985A36FC3F404B33B391EAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BCDC35D86985A36FC3F404B33B391EAA" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BCDC35D86985A36FC3F404B33B391EAA" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeMember" xlink:label="loc_us-gaap_InterestIncomeMember_E98D993B4DED6D9209EB04B33B39A40D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:to="loc_us-gaap_InterestIncomeMember_E98D993B4DED6D9209EB04B33B39A40D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndFinanceReceivablesMember" xlink:label="loc_us-gaap_LoansAndFinanceReceivablesMember_2D3BEEE2C6C99166CC1B04B33B39E398" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:to="loc_us-gaap_LoansAndFinanceReceivablesMember_2D3BEEE2C6C99166CC1B04B33B39E398" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseMember" xlink:label="loc_us-gaap_InterestExpenseMember_35D7D5F29D0468C3ECE404B33B39301A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:to="loc_us-gaap_InterestExpenseMember_35D7D5F29D0468C3ECE404B33B39301A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsMember" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsMember_4D7EA69BAB05DE161AF604B33B398796" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_31297751529C403A62FE04B33B398370" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsMember_4D7EA69BAB05DE161AF604B33B398796" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_EAEF0E8D538DD392AA2204B33B397BC2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:to="loc_us-gaap_HedgingDesignationAxis_EAEF0E8D538DD392AA2204B33B397BC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_EAEF0E8D538DD392AA2204B33B397BC2" xlink:to="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_EAEF0E8D538DD392AA2204B33B397BC2" xlink:to="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_48460D6DF295C98AE19504B33B39CD44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_48460D6DF295C98AE19504B33B39CD44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_B4C9CC35EC4D2640A45B04B33B39595B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_A890E8946477AC6FE8B804B33B390AC2" xlink:to="loc_us-gaap_NondesignatedMember_B4C9CC35EC4D2640A45B04B33B39595B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_35A08B4CE171DFA4194204B33B39725B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_2E4EBD8C5463E29A385F04B33B3948CE" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_35A08B4CE171DFA4194204B33B39725B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_35A08B4CE171DFA4194204B33B39725B" xlink:to="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_35A08B4CE171DFA4194204B33B39725B" xlink:to="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_20D95FD2796997C7D79E04B33B39DC7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE" xlink:to="loc_us-gaap_FairValueHedgingMember_20D95FD2796997C7D79E04B33B39DC7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_84F9571CC5C0CEDFD67E04B33B399E3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_3C904C31CB750D9BDFB104B33B39F1EE" xlink:to="loc_us-gaap_CashFlowHedgingMember_84F9571CC5C0CEDFD67E04B33B399E3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaap_InterestIncomeOperating_FE668032FCE1B50664BA04B33B39984C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_InterestIncomeOperating_FE668032FCE1B50664BA04B33B39984C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_4C795C6083C954012E6604B33B39F512" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_4C795C6083C954012E6604B33B39F512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_395347C18EEE6ADA107D04B33B397B4F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_InterestExpense_395347C18EEE6ADA107D04B33B397B4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_ADEDB2B0745EACD2203C04B33B39FF66" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_ADEDB2B0745EACD2203C04B33B39FF66" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_TotalAmountsofLineItemsPresentedintheConsolidatedStatementofIncome" xlink:label="loc_agm_TotalAmountsofLineItemsPresentedintheConsolidatedStatementofIncome_ED30B24ED8C2E0F861A504B33B39D970" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_TotalAmountsofLineItemsPresentedintheConsolidatedStatementofIncome_ED30B24ED8C2E0F861A504B33B39D970" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DerivativeNetInterestSettlements" xlink:label="loc_agm_DerivativeNetInterestSettlements_E2DDF1043C856885982304B33B391D7B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_DerivativeNetInterestSettlements_E2DDF1043C856885982304B33B391D7B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedItemNetInterestSettlements" xlink:label="loc_agm_HedgedItemNetInterestSettlements_451A1EB0F39FE7F769EC04B33B399894" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_HedgedItemNetInterestSettlements_451A1EB0F39FE7F769EC04B33B399894" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_Premium_Discountrecognizedonhedgeditem" xlink:label="loc_agm_Premium_Discountrecognizedonhedgeditem_03879A86F8E024D0063A04B33B3994A7" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_Premium_Discountrecognizedonhedgeditem_03879A86F8E024D0063A04B33B3994A7" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges" xlink:label="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_80DC0D1C5836D7D253E804B33B39DFE8" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_80DC0D1C5836D7D253E804B33B39DFE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_ACA2571F00BC4DD5276504B33B399866" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_ACA2571F00BC4DD5276504B33B399866" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_5A316771EB648B163BD904B33B3975A3" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_5A316771EB648B163BD904B33B3975A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_C0A2FC1903185D5E12F004B33B39CA7A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_C0A2FC1903185D5E12F004B33B39CA7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_F6D876249AD14388014A04B33B39E71C" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_F6D876249AD14388014A04B33B39E71C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem" xlink:label="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_42B0F56D8A60ECAAA23B04B33B397C63" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_42B0F56D8A60ECAAA23B04B33B397C63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments" xlink:label="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_2FEB5E15DB946D5AA50204B33B3954B4" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_6D2D0F32580C77243FB204B33B3953BD" xlink:to="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_2FEB5E15DB946D5AA50204B33B3954B4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_47387D48190C5163A0FC6C0DA1EF423B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_47387D48190C5163A0FC6C0DA1EF423B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_AFB3AED94B94560E84032B300FF58855" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_47387D48190C5163A0FC6C0DA1EF423B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AFB3AED94B94560E84032B300FF58855" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_CBCB1D4928A20CA3153A2F911391CB52_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AFB3AED94B94560E84032B300FF58855" xlink:to="loc_us-gaap_SegmentDomain_CBCB1D4928A20CA3153A2F911391CB52_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_86C69BED8139549BA82321E10B9DC462" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AFB3AED94B94560E84032B300FF58855" xlink:to="loc_us-gaap_SegmentDomain_86C69BED8139549BA82321E10B9DC462" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_757AA293F961530F96A9206D77C6E4AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_86C69BED8139549BA82321E10B9DC462" xlink:to="loc_agm_InstitutionalCreditMemberMember_757AA293F961530F96A9206D77C6E4AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_1CE5286DC10B52B18B633F5541564882" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_47387D48190C5163A0FC6C0DA1EF423B" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_1CE5286DC10B52B18B633F5541564882" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_658FA5D8EFB46AB8EE832F91139179E4_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_1CE5286DC10B52B18B633F5541564882" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_658FA5D8EFB46AB8EE832F91139179E4_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_4AA570441A515B6487613C4847425780" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_1CE5286DC10B52B18B633F5541564882" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_4AA570441A515B6487613C4847425780" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmerMacGuaranteedSecuritiesMember" xlink:label="loc_agm_FarmerMacGuaranteedSecuritiesMember_96A6F1E7698857F1AFF1F5C94F7A9F49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_4AA570441A515B6487613C4847425780" xlink:to="loc_agm_FarmerMacGuaranteedSecuritiesMember_96A6F1E7698857F1AFF1F5C94F7A9F49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis" xlink:label="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_272646F467425C26A8279ED7213A74D4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_47387D48190C5163A0FC6C0DA1EF423B" xlink:to="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_272646F467425C26A8279ED7213A74D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_3AD809C23A946A4113272F911391AD8D_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_272646F467425C26A8279ED7213A74D4" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_3AD809C23A946A4113272F911391AD8D_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_0FFD0564781F5F2AA83D6EF623BDDD84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_272646F467425C26A8279ED7213A74D4" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_0FFD0564781F5F2AA83D6EF623BDDD84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_BAB0A3561F025D7ABE571A3640B8C170" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_0FFD0564781F5F2AA83D6EF623BDDD84" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_BAB0A3561F025D7ABE571A3640B8C170" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfOtherInvestments" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_F65B15EED0DA5D6CBEC588833E2267F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_F65B15EED0DA5D6CBEC588833E2267F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromFeesReceived" xlink:label="loc_us-gaap_ProceedsFromFeesReceived_4E9609321320512A8C209E174D31D0CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:to="loc_us-gaap_ProceedsFromFeesReceived_4E9609321320512A8C209E174D31D0CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsCurrentCarryingValue" xlink:label="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_AC3423017D86509CACD5164F239E9C0E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:to="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_AC3423017D86509CACD5164F239E9C0E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor" xlink:label="loc_agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor_E9783B6DCDC158E0B0C5D25ECC60CA02" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_47C24324D9FB5F279494A792338AB599" xlink:to="loc_agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor_E9783B6DCDC158E0B0C5D25ECC60CA02" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_CB56D1CE031B9D0B1638224E4C77989C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_E79996057942916456D1224E4C750627" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_CB56D1CE031B9D0B1638224E4C77989C" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_E79996057942916456D1224E4C750627" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_A854492B75259815F8E4224E4C75D4ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_E79996057942916456D1224E4C750627" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_A854492B75259815F8E4224E4C75D4ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_3C64378958D72293CAF8224E4C7642DA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_A854492B75259815F8E4224E4C75D4ED" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_3C64378958D72293CAF8224E4C7642DA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_3C64378958D72293CAF8224E4C7642DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_A854492B75259815F8E4224E4C75D4ED" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_3C64378958D72293CAF8224E4C7642DA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LongTermStandbyPurchaseCommitmentsMember" xlink:label="loc_agm_LongTermStandbyPurchaseCommitmentsMember_F42B4CC17A94F667F93B224E4C76174D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_3C64378958D72293CAF8224E4C7642DA" xlink:to="loc_agm_LongTermStandbyPurchaseCommitmentsMember_F42B4CC17A94F667F93B224E4C76174D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis" xlink:label="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis_77A52172DBEEC76300AA224E4C761208" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_E79996057942916456D1224E4C750627" xlink:to="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis_77A52172DBEEC76300AA224E4C761208" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain" xlink:label="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain_A885F4111589CCCDE79D224E4C760CAA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis_77A52172DBEEC76300AA224E4C761208" xlink:to="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain_A885F4111589CCCDE79D224E4C760CAA_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain" xlink:label="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain_A885F4111589CCCDE79D224E4C760CAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis_77A52172DBEEC76300AA224E4C761208" xlink:to="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain_A885F4111589CCCDE79D224E4C760CAA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_GuaranteeobligationsissuedafterJanuary12003Member" xlink:label="loc_agm_GuaranteeobligationsissuedafterJanuary12003Member_A1E3B4204D47DE275EC2224E4C775CED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain_A885F4111589CCCDE79D224E4C760CAA" xlink:to="loc_agm_GuaranteeobligationsissuedafterJanuary12003Member_A1E3B4204D47DE275EC2224E4C775CED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_E777D9C7E26B4D184CF5224E4C77A86A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_CB56D1CE031B9D0B1638224E4C77989C" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_E777D9C7E26B4D184CF5224E4C77A86A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor" xlink:label="loc_agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor_C13926FF9B7677D12DF3224E4C78B464" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_CB56D1CE031B9D0B1638224E4C77989C" xlink:to="loc_agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor_C13926FF9B7677D12DF3224E4C78B464" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsCurrentCarryingValue" xlink:label="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_E301DA685DD07FB6A929224E4C7845B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_CB56D1CE031B9D0B1638224E4C77989C" xlink:to="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_E301DA685DD07FB6A929224E4C7845B2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_13D2355EB87F5A97BB751086ECD7BFD2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_B369459D7BB65C2192A71082AC90BD64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_13D2355EB87F5A97BB751086ECD7BFD2" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_B369459D7BB65C2192A71082AC90BD64" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_B88B7899C5865D7A8DE9FD71CC0C40C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_B369459D7BB65C2192A71082AC90BD64" xlink:to="loc_us-gaap_CreditFacilityAxis_B88B7899C5865D7A8DE9FD71CC0C40C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_2F23C6D05B7F33E81D2FE218CE5AEC91_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_B88B7899C5865D7A8DE9FD71CC0C40C6" xlink:to="loc_us-gaap_CreditFacilityDomain_2F23C6D05B7F33E81D2FE218CE5AEC91_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_0F4D25BF63F455AEAE8AC02153B8E805" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_B88B7899C5865D7A8DE9FD71CC0C40C6" xlink:to="loc_us-gaap_CreditFacilityDomain_0F4D25BF63F455AEAE8AC02153B8E805" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_991B70CA499B5B599DBE64C4D3557D19" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0F4D25BF63F455AEAE8AC02153B8E805" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_991B70CA499B5B599DBE64C4D3557D19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_70177DA62E1C53BBB41DACF78214D210" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_B369459D7BB65C2192A71082AC90BD64" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_70177DA62E1C53BBB41DACF78214D210" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_933656F14CC993AA7A88E218CE5A4CBF_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_70177DA62E1C53BBB41DACF78214D210" xlink:to="loc_us-gaap_SegmentDomain_933656F14CC993AA7A88E218CE5A4CBF_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_A1BF50F64E6A5900AB29902BAC5FC7B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_70177DA62E1C53BBB41DACF78214D210" xlink:to="loc_us-gaap_SegmentDomain_A1BF50F64E6A5900AB29902BAC5FC7B5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmRanchMember" xlink:label="loc_agm_FarmRanchMember_FF15E235483E511F986635A30591E15E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_A1BF50F64E6A5900AB29902BAC5FC7B5" xlink:to="loc_agm_FarmRanchMember_FF15E235483E511F986635A30591E15E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_DCE6F82F42EA58DF8BBD3B4708EB6BBD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_A1BF50F64E6A5900AB29902BAC5FC7B5" xlink:to="loc_agm_USDAGuaranteesMember_DCE6F82F42EA58DF8BBD3B4708EB6BBD" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_B142093D007658C8BF41AEFA7429A949" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_A1BF50F64E6A5900AB29902BAC5FC7B5" xlink:to="loc_agm_InstitutionalCreditMemberMember_B142093D007658C8BF41AEFA7429A949" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis" xlink:label="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_0A3FD83A9EC45F3BB634233867EA63A5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_B369459D7BB65C2192A71082AC90BD64" xlink:to="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_0A3FD83A9EC45F3BB634233867EA63A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_1E76063D4FC8A18A5906E218CE5C6A36_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_0A3FD83A9EC45F3BB634233867EA63A5" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_1E76063D4FC8A18A5906E218CE5C6A36_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_97103F6505125383B9E2577B104EA693" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_0A3FD83A9EC45F3BB634233867EA63A5" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_97103F6505125383B9E2577B104EA693" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_917EB90A2E415C04A40ED1D267D8CC56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_97103F6505125383B9E2577B104EA693" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_917EB90A2E415C04A40ED1D267D8CC56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_9F79D2B1D7955C339E8EAA76D6BF45BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_13D2355EB87F5A97BB751086ECD7BFD2" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_9F79D2B1D7955C339E8EAA76D6BF45BD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A2DC671F9FDF57FBA4F7DE25AAAA28A4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E09B2900C2D25B4EA5B123E3D1DF826A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A2DC671F9FDF57FBA4F7DE25AAAA28A4" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E09B2900C2D25B4EA5B123E3D1DF826A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_AFB2F094E0065995BAF43FE35E2618A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E09B2900C2D25B4EA5B123E3D1DF826A" xlink:to="loc_us-gaap_FinancialInstrumentAxis_AFB2F094E0065995BAF43FE35E2618A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A003CE1ED282EA3D7D3E218D037C8B6_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_AFB2F094E0065995BAF43FE35E2618A4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A003CE1ED282EA3D7D3E218D037C8B6_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8B8394FCFFB159E09B06EFCACCBEC797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_AFB2F094E0065995BAF43FE35E2618A4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8B8394FCFFB159E09B06EFCACCBEC797" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_26537326EA4B51859F464A6A8F079C3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8B8394FCFFB159E09B06EFCACCBEC797" xlink:to="loc_us-gaap_DebtSecuritiesMember_26537326EA4B51859F464A6A8F079C3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A2DC671F9FDF57FBA4F7DE25AAAA28A4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_B17143C5F4F2598A8E02EC3C5F4892FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_B17143C5F4F2598A8E02EC3C5F4892FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_C6FF37E3AD06586299ADE6B5C7139B37" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_C6FF37E3AD06586299ADE6B5C7139B37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_D11C6598BE8F522FBEF8EEB45DF94771" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_D11C6598BE8F522FBEF8EEB45DF94771" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_E9CCC18B90285724BDD1DC1AC264C03B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_E9CCC18B90285724BDD1DC1AC264C03B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_584C2720A63C5994A592E4FDF3DAC624" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_BE84762713E45DEEB9DF973219D04C40" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_584C2720A63C5994A592E4FDF3DAC624" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A2DC671F9FDF57FBA4F7DE25AAAA28A4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_F16AA33BA3A65656B5A00C1123C25EDD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_F16AA33BA3A65656B5A00C1123C25EDD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_53CEC49FC084578CB293B7B910FBF235" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_53CEC49FC084578CB293B7B910FBF235" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_5B1A7FEA9B7B510DB44E099B078DE557" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_5B1A7FEA9B7B510DB44E099B078DE557" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_874325E031D25C7890028A2B95E4F249" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_874325E031D25C7890028A2B95E4F249" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_A9E8E11E16DD5C7DB08401B80EC2E72A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_2BFD11A9A0235113B7FE490B2CF5BC8F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_A9E8E11E16DD5C7DB08401B80EC2E72A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" xlink:label="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A2DC671F9FDF57FBA4F7DE25AAAA28A4" xlink:to="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_6C1BE02E0D265442ACEDF4FA1353E60A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield_6C1BE02E0D265442ACEDF4FA1353E60A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_FD5C9FCE2C665E1A8A4F5A45C7272240" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield_FD5C9FCE2C665E1A8A4F5A45C7272240" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield_0FC0D3198EFD59658F5941CC3B5D528B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield_0FC0D3198EFD59658F5941CC3B5D528B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_42A6439AAE22547EBBFDE3A09DD31B51" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield_42A6439AAE22547EBBFDE3A09DD31B51" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield" xlink:label="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield_0F3D1E196F785E9AB61F5B33C7BCFB17" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract_24BE19BA63745746AA353958DA9E28BC" xlink:to="loc_agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield_0F3D1E196F785E9AB61F5B33C7BCFB17" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_72430EE5C6F45202902A33F02154DDD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_72430EE5C6F45202902A33F02154DDD4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_A66C93DCD90755E383A93A863324B80C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_72430EE5C6F45202902A33F02154DDD4" xlink:to="loc_srt_ProductOrServiceAxis_A66C93DCD90755E383A93A863324B80C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_C4ED7E9C3503BB45693C2F6420F50BFE_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_A66C93DCD90755E383A93A863324B80C" xlink:to="loc_srt_ProductsAndServicesDomain_C4ED7E9C3503BB45693C2F6420F50BFE_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_DF2DBCBA7BC25EA1B5E7A05D66E4D09F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_A66C93DCD90755E383A93A863324B80C" xlink:to="loc_srt_ProductsAndServicesDomain_DF2DBCBA7BC25EA1B5E7A05D66E4D09F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FloatingInterestRateMember" xlink:label="loc_agm_FloatingInterestRateMember_DF3907273C2157CDBE8A02A794951437" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_DF2DBCBA7BC25EA1B5E7A05D66E4D09F" xlink:to="loc_agm_FloatingInterestRateMember_DF3907273C2157CDBE8A02A794951437" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_AC36290D44ED58EEB216778D3CCFEF58" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_72430EE5C6F45202902A33F02154DDD4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_AC36290D44ED58EEB216778D3CCFEF58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_BEEDAA618514EA3B43802F61CCC313D4_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_AC36290D44ED58EEB216778D3CCFEF58" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_BEEDAA618514EA3B43802F61CCC313D4_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0A32C796E9735DDD975433F3763F55F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_AC36290D44ED58EEB216778D3CCFEF58" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0A32C796E9735DDD975433F3763F55F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_052A6CA1C9A45CF39D24709C5D0B3023" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0A32C796E9735DDD975433F3763F55F3" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_052A6CA1C9A45CF39D24709C5D0B3023" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_8160E91D9BDB5099838B6942D76261C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0A32C796E9735DDD975433F3763F55F3" xlink:to="loc_us-gaap_DebtSecuritiesMember_8160E91D9BDB5099838B6942D76261C4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance" xlink:label="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_D56C54D1230457268058AD929A67EBC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:to="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_D56C54D1230457268058AD929A67EBC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_77CF0884DF7B579487576E694D57183E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_77CF0884DF7B579487576E694D57183E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AvailableForSaleSecuritiesInLossPositionForMoreThan12MonthsQualitativeDisclosurePercentOfAmortizedCost" xlink:label="loc_agm_AvailableForSaleSecuritiesInLossPositionForMoreThan12MonthsQualitativeDisclosurePercentOfAmortizedCost_A547AA37C1A25C108BFC6546CB18B3B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:to="loc_agm_AvailableForSaleSecuritiesInLossPositionForMoreThan12MonthsQualitativeDisclosurePercentOfAmortizedCost_A547AA37C1A25C108BFC6546CB18B3B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_2A7D6613014A5C4F98D59266E1FE77F1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C47913F58DFE57B58EC3FDDDB40B16B8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_2A7D6613014A5C4F98D59266E1FE77F1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems" xlink:label="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable" xlink:label="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable_C0A1B5C6C7E35969AF4DFFF491C083FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:to="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable_C0A1B5C6C7E35969AF4DFFF491C083FD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_BED966B2148E57EB99E2C60A3D6D5F16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable_C0A1B5C6C7E35969AF4DFFF491C083FD" xlink:to="loc_srt_ProductOrServiceAxis_BED966B2148E57EB99E2C60A3D6D5F16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_563DC505BCBEB2F6626E2F61CCD7F8C9_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_BED966B2148E57EB99E2C60A3D6D5F16" xlink:to="loc_srt_ProductsAndServicesDomain_563DC505BCBEB2F6626E2F61CCD7F8C9_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_A66225A8F64E55A4A77C36804268F5C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_BED966B2148E57EB99E2C60A3D6D5F16" xlink:to="loc_srt_ProductsAndServicesDomain_A66225A8F64E55A4A77C36804268F5C7" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FloatingInterestRateMember" xlink:label="loc_agm_FloatingInterestRateMember_48F7EA7C387D5173A298E71477AFE4D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_A66225A8F64E55A4A77C36804268F5C7" xlink:to="loc_agm_FloatingInterestRateMember_48F7EA7C387D5173A298E71477AFE4D5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FixedInterestRateMember" xlink:label="loc_agm_FixedInterestRateMember_AAB102516BCC5944A9218BCE1D81AA99" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_A66225A8F64E55A4A77C36804268F5C7" xlink:to="loc_agm_FixedInterestRateMember_AAB102516BCC5944A9218BCE1D81AA99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_BD0F35E0325258DF8037610084F98B1E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable_C0A1B5C6C7E35969AF4DFFF491C083FD" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_BD0F35E0325258DF8037610084F98B1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_31DCAB23F09D778801EC2F61CCD7F0B7_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_BD0F35E0325258DF8037610084F98B1E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_31DCAB23F09D778801EC2F61CCD7F0B7_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_ABA1F01324AB5C5B98604B88C7DA69C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_BD0F35E0325258DF8037610084F98B1E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_ABA1F01324AB5C5B98604B88C7DA69C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_4DB79B6DB0035E3AA0C70E79E4133D35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_ABA1F01324AB5C5B98604B88C7DA69C9" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_4DB79B6DB0035E3AA0C70E79E4133D35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldtomaturitySecuritiesMember" xlink:label="loc_us-gaap_HeldtomaturitySecuritiesMember_DCA867D3E46A5CC795B2AB28404AA942" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_ABA1F01324AB5C5B98604B88C7DA69C9" xlink:to="loc_us-gaap_HeldtomaturitySecuritiesMember_DCA867D3E46A5CC795B2AB28404AA942" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_B225A3C1686952CC924B9F1CBC93FE77" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable_C0A1B5C6C7E35969AF4DFFF491C083FD" xlink:to="loc_us-gaap_FinancialInstrumentAxis_B225A3C1686952CC924B9F1CBC93FE77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_ED3636C5D69659215EF62F61CCD72D13_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_B225A3C1686952CC924B9F1CBC93FE77" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_ED3636C5D69659215EF62F61CCD72D13_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_26F2DAC0EEC25D3499CABAED85E0B83C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_B225A3C1686952CC924B9F1CBC93FE77" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_26F2DAC0EEC25D3499CABAED85E0B83C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_26F2DAC0EEC25D3499CABAED85E0B83C" xlink:to="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AuctionRateSecuritiesMember" xlink:label="loc_us-gaap_AuctionRateSecuritiesMember_728BBB60BFDE54E2A2427DBF8542EF42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:to="loc_us-gaap_AuctionRateSecuritiesMember_728BBB60BFDE54E2A2427DBF8542EF42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_EF4311B05619587AAB3C94FBE9453559" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_EF4311B05619587AAB3C94FBE9453559" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_71C4065A45165B749D112280201274E6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_71C4065A45165B749D112280201274E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_4847EE1A72B4577E9BD3F81C0C82F340" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_8B95F7A959D7597985BAE0B20AAFE9CB" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_4847EE1A72B4577E9BD3F81C0C82F340" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance" xlink:label="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_9157B7E0C5CA505385A3AF8AC4A0166B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance_9157B7E0C5CA505385A3AF8AC4A0166B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_B6DF87A7BBFD5BBFB9E1BC014433ECA5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_B6DF87A7BBFD5BBFB9E1BC014433ECA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_09B9F590CAF158EB81C4FE8253ED3B91" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_09B9F590CAF158EB81C4FE8253ED3B91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_34AEF5A8D9995EFABC73E2CDA8BCC439" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_34AEF5A8D9995EFABC73E2CDA8BCC439" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_A309372CD2F85A9D8D5CA2EC21CBF151" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_A309372CD2F85A9D8D5CA2EC21CBF151" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_93B60F8D6AEC59CE84036D01F8D86C13" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_1FA481909AE2526B96C1FA59D9BA0F90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_93B60F8D6AEC59CE84036D01F8D86C13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesClassifiedAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturityUnpaidPrincipalBalance" xlink:label="loc_agm_HeldtoMaturityUnpaidPrincipalBalance_9F24B56E37BE5AB498DFCE692499F5F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:to="loc_agm_HeldtoMaturityUnpaidPrincipalBalance_9F24B56E37BE5AB498DFCE692499F5F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_38B0939689375413A87692ADBFAEE6FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_38B0939689375413A87692ADBFAEE6FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_FE9B97521F1E5C95BC183295E102DDC8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_FE9B97521F1E5C95BC183295E102DDC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_61BE9A051F9C5B4AB02C8E8031731643" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_61BE9A051F9C5B4AB02C8E8031731643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_6D69A841305C57D8B8552396F09F9F59" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesClassifiedAbstract_EA0FEBA765EF52B49AFDE98863C860B5" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_6D69A841305C57D8B8552396F09F9F59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesAbstract" xlink:label="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:to="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesUnpaidPrincipalBalance" xlink:label="loc_agm_MarketableSecuritiesUnpaidPrincipalBalance_60359720CDB8533BB2B62ECB512FD67D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:to="loc_agm_MarketableSecuritiesUnpaidPrincipalBalance_60359720CDB8533BB2B62ECB512FD67D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesAmortizedCostBasis" xlink:label="loc_agm_MarketableSecuritiesAmortizedCostBasis_7AED7709D1A354DBB9657979323E6E49" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:to="loc_agm_MarketableSecuritiesAmortizedCostBasis_7AED7709D1A354DBB9657979323E6E49" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesGrossUnrealizedGains" xlink:label="loc_agm_MarketableSecuritiesGrossUnrealizedGains_1FCEC332A23F50888E3E3164ED9231E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:to="loc_agm_MarketableSecuritiesGrossUnrealizedGains_1FCEC332A23F50888E3E3164ED9231E1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesGrossUnrealizedLosses" xlink:label="loc_agm_MarketableSecuritiesGrossUnrealizedLosses_839D19072FE951629ECFA1430984EF9C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:to="loc_agm_MarketableSecuritiesGrossUnrealizedLosses_839D19072FE951629ECFA1430984EF9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity_56B0F1DC9DDA524ABC4F2E942D36D167" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_E146E843FD545DCEAF267E15037414AB" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity_56B0F1DC9DDA524ABC4F2E942D36D167" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield" xlink:label="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield_E5877D59127850289E1990EC767436F2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems_83918E707447586A97087CF7A3C2498F" xlink:to="loc_agm_HeldtoMaturitySecuritiesDebtMaturitiesWeightedAverageYield_E5877D59127850289E1990EC767436F2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_6C1DDD6084BF53CFAC69E181FD3F04AE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D5D46A997CCD5265903F0F439053E7DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_6C1DDD6084BF53CFAC69E181FD3F04AE" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D5D46A997CCD5265903F0F439053E7DF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_FF9329A3C13E5CE0AA6E3DAB2D78E428" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D5D46A997CCD5265903F0F439053E7DF" xlink:to="loc_srt_ProductOrServiceAxis_FF9329A3C13E5CE0AA6E3DAB2D78E428" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_565EB9FB22209DF5E81900B74C9F4CE1_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_FF9329A3C13E5CE0AA6E3DAB2D78E428" xlink:to="loc_srt_ProductsAndServicesDomain_565EB9FB22209DF5E81900B74C9F4CE1_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_C4B77E06BC0C5FA0B95EF2A99BF07670" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_FF9329A3C13E5CE0AA6E3DAB2D78E428" xlink:to="loc_srt_ProductsAndServicesDomain_C4B77E06BC0C5FA0B95EF2A99BF07670" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FloatingInterestRateMember" xlink:label="loc_agm_FloatingInterestRateMember_7B59B5DD98265F819E7D9FD5A39AE9CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_C4B77E06BC0C5FA0B95EF2A99BF07670" xlink:to="loc_agm_FloatingInterestRateMember_7B59B5DD98265F819E7D9FD5A39AE9CB" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FixedInterestRateMember" xlink:label="loc_agm_FixedInterestRateMember_BCB0E6F73DB9521083A64EBD8ED265BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_C4B77E06BC0C5FA0B95EF2A99BF07670" xlink:to="loc_agm_FixedInterestRateMember_BCB0E6F73DB9521083A64EBD8ED265BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_6BF5B1C5D54E5687AD892FCADD28B7C8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_D5D46A997CCD5265903F0F439053E7DF" xlink:to="loc_us-gaap_FinancialInstrumentAxis_6BF5B1C5D54E5687AD892FCADD28B7C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1FD28090E5BCF5D6F7EF00B74C9FD70F_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_6BF5B1C5D54E5687AD892FCADD28B7C8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1FD28090E5BCF5D6F7EF00B74C9FD70F_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_DC02EF9769885849B515B3143301C73A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_6BF5B1C5D54E5687AD892FCADD28B7C8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_DC02EF9769885849B515B3143301C73A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_DC02EF9769885849B515B3143301C73A" xlink:to="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AuctionRateSecuritiesMember" xlink:label="loc_us-gaap_AuctionRateSecuritiesMember_5B6F99BC52B65BAD8B3DD94A01EDCC0A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:to="loc_us-gaap_AuctionRateSecuritiesMember_5B6F99BC52B65BAD8B3DD94A01EDCC0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_1B51F6359CD35D109B365A1A0A1678A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_1B51F6359CD35D109B365A1A0A1678A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_9B47178478E45F2EB693E7D64FE030E9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_9B47178478E45F2EB693E7D64FE030E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_28A49237C37750208015D59BAADCACAA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0AAB814090175F2EAB70E6F5A6ADB21C" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_28A49237C37750208015D59BAADCACAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract_10675C1DB36C5322A19A56FF3579B766" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_6C1DDD6084BF53CFAC69E181FD3F04AE" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract_10675C1DB36C5322A19A56FF3579B766" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_E24E7528E6E15842A6CAD60AC79F6F97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract_10675C1DB36C5322A19A56FF3579B766" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_E24E7528E6E15842A6CAD60AC79F6F97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_43CED15542875FDFAA4DDCCEB6993EDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_E24E7528E6E15842A6CAD60AC79F6F97" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_43CED15542875FDFAA4DDCCEB6993EDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_19D850FB5FF45E4D94BA0C33C03EACF7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_E24E7528E6E15842A6CAD60AC79F6F97" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_19D850FB5FF45E4D94BA0C33C03EACF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_9D972C89EF49531A8C6E2E1E4CFBE699" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_E24E7528E6E15842A6CAD60AC79F6F97" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_9D972C89EF49531A8C6E2E1E4CFBE699" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_A14E413043C6514BB47191FDAFC62F82" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract_10675C1DB36C5322A19A56FF3579B766" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_A14E413043C6514BB47191FDAFC62F82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2B732EB8FA0B58E5AFD06FB4BE4E28AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_A14E413043C6514BB47191FDAFC62F82" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2B732EB8FA0B58E5AFD06FB4BE4E28AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C046CE495A5C5C3BB8C22030E34DAEFF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_A14E413043C6514BB47191FDAFC62F82" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C046CE495A5C5C3BB8C22030E34DAEFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_C9AB43F9533E5C3781B46918B9DEF972" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_A14E413043C6514BB47191FDAFC62F82" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_C9AB43F9533E5C3781B46918B9DEF972" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLosses" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0D1AD5F659E299631302224D01D54105" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0D1AD5F659E299631302224D01D54105" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_0FB6D4E739BE418C07EF224D01D607D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0D1AD5F659E299631302224D01D54105" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_0FB6D4E739BE418C07EF224D01D607D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_67E5DB94B02674521DCF224D01D6F992_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_0FB6D4E739BE418C07EF224D01D607D1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_67E5DB94B02674521DCF224D01D6F992_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_67E5DB94B02674521DCF224D01D6F992" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_0FB6D4E739BE418C07EF224D01D607D1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_67E5DB94B02674521DCF224D01D6F992" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnBalanceSheetMember" xlink:label="loc_agm_OnBalanceSheetMember_A71907083A338BE76B8E224D01D7E545" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_67E5DB94B02674521DCF224D01D6F992" xlink:to="loc_agm_OnBalanceSheetMember_A71907083A338BE76B8E224D01D7E545" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_29E17C7C4B3CA40D47CA224D01D72652" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0D1AD5F659E299631302224D01D54105" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_29E17C7C4B3CA40D47CA224D01D72652" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_29E17C7C4B3CA40D47CA224D01D72652" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_29E17C7C4B3CA40D47CA224D01D72652" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesMember" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesMember_AC0D82E5E94887320C17224D01D77355" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesMember_AC0D82E5E94887320C17224D01D77355" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReserveForOffBalanceSheetActivitiesMember" xlink:label="loc_us-gaap_ReserveForOffBalanceSheetActivitiesMember_8F5E2BD95E0789E4DC5D224D01D8227E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_A2B19CFD0869A56F2519224D01D70BD7" xlink:to="loc_us-gaap_ReserveForOffBalanceSheetActivitiesMember_8F5E2BD95E0789E4DC5D224D01D8227E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_B0CC33FBC1932285FB0C224D01D82818" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_B0CC33FBC1932285FB0C224D01D82818" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_FE2E33B5E530353ED57F224D01D9796C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_FE2E33B5E530353ED57F224D01D9796C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_C00D558D9F0C541FA66C224D01D96E4F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_C00D558D9F0C541FA66C224D01D96E4F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased" xlink:label="loc_agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased_B1DED554A73B90232A10224D01D93C96" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased_B1DED554A73B90232A10224D01D93C96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsRecordedInvestment" xlink:label="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_1BF075579F53369F74DD224E112644AA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_198D7E55126449F0048E224D01D8C3F5" xlink:to="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_1BF075579F53369F74DD224E112644AA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_B5189181C336EA1796A6CAC8EE5B2C57" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_B0C802DC9E6823126913CAC8EE58261B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_B5189181C336EA1796A6CAC8EE5B2C57" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_B0C802DC9E6823126913CAC8EE58261B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeAxis" xlink:label="loc_agm_CommodityByTypeAxis_BA0777E4AEF112839CD0CAC8EE59AADA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_B0C802DC9E6823126913CAC8EE58261B" xlink:to="loc_agm_CommodityByTypeAxis_BA0777E4AEF112839CD0CAC8EE59AADA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_CommodityByTypeAxis_BA0777E4AEF112839CD0CAC8EE59AADA" xlink:to="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_CommodityByTypeAxis_BA0777E4AEF112839CD0CAC8EE59AADA" xlink:to="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CropsMember" xlink:label="loc_agm_CropsMember_F29B5AD0F2E83BD854B0CAC8EE5A884B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_CropsMember_F29B5AD0F2E83BD854B0CAC8EE5A884B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PermanentPlantingsMember" xlink:label="loc_agm_PermanentPlantingsMember_8081F5F29802A30ED599CAC8EE5A9FC4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_PermanentPlantingsMember_8081F5F29802A30ED599CAC8EE5A9FC4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LivestockMember" xlink:label="loc_agm_LivestockMember_65FF17EE5A4A49324795CAC8EE5AC4BF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_LivestockMember_65FF17EE5A4A49324795CAC8EE5AC4BF" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PartTimeFarmMember" xlink:label="loc_agm_PartTimeFarmMember_5E4AF54C5346E2A57045CAC8EE5A8D7B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_PartTimeFarmMember_5E4AF54C5346E2A57045CAC8EE5A8D7B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AgricultureStorageAndProcessingMember" xlink:label="loc_agm_AgricultureStorageAndProcessingMember_AF0CD9AB7B9D0E44725ACAC8EE5BAFF5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_AgricultureStorageAndProcessingMember_AF0CD9AB7B9D0E44725ACAC8EE5BAFF5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherCommodityMember" xlink:label="loc_agm_OtherCommodityMember_7AF6BB307D615EAA03F2CAC8EE5B0E0B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_06CD55310AA0FD3CD305CAC8EE5AB4D2" xlink:to="loc_agm_OtherCommodityMember_7AF6BB307D615EAA03F2CAC8EE5B0E0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_336A8D423AC0E36BFDB2CAC8EE59FD01" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_B0C802DC9E6823126913CAC8EE58261B" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_336A8D423AC0E36BFDB2CAC8EE59FD01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_336A8D423AC0E36BFDB2CAC8EE59FD01" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_336A8D423AC0E36BFDB2CAC8EE59FD01" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesMember" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesMember_7542D5F932AA84488635CAC8EE594B66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesMember_7542D5F932AA84488635CAC8EE594B66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReserveForOffBalanceSheetActivitiesMember" xlink:label="loc_us-gaap_ReserveForOffBalanceSheetActivitiesMember_D43A4F25698D4918C234CAC8EE59779C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_76C1962EE74574DABB77CAC8EE59058D" xlink:to="loc_us-gaap_ReserveForOffBalanceSheetActivitiesMember_D43A4F25698D4918C234CAC8EE59779C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_B5189181C336EA1796A6CAC8EE5B2C57" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_A37B253F856C4FF6DB66CAC8EE5B6A9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_A37B253F856C4FF6DB66CAC8EE5B6A9F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ReserveForLosses" xlink:label="loc_agm_ReserveForLosses_6B4AD8C45C12BAA93348CAC8EE5C6554" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_agm_ReserveForLosses_6B4AD8C45C12BAA93348CAC8EE5C6554" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_F8D23A3CEBC5F2C76D0CCAC8EE5C6046" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_F8D23A3CEBC5F2C76D0CCAC8EE5C6046" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_D8C94B906B1E7D2B09DECAC8EE5C1060" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_D8C94B906B1E7D2B09DECAC8EE5C1060" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_D30A2AAFB8C16161CBBBCAC8EE5CFBCE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_D30A2AAFB8C16161CBBBCAC8EE5CFBCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_A5A523C2B248EFEF7F7ACAC8EE5C8E9C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_6D84EB788E15342798BFCAC8EE5B5769" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_A5A523C2B248EFEF7F7ACAC8EE5C8E9C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_BE80D33E8F43DF875A47BD83AA4ACC40" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_D874FFA4B67E0B53D181BD83AA422483" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_BE80D33E8F43DF875A47BD83AA4ACC40" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_D874FFA4B67E0B53D181BD83AA422483" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_DC9FD0328B441151BC59BD83AA4200B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_D874FFA4B67E0B53D181BD83AA422483" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_DC9FD0328B441151BC59BD83AA4200B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_DC9FD0328B441151BC59BD83AA4200B3" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_DC9FD0328B441151BC59BD83AA4200B3" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnBalanceSheetMember" xlink:label="loc_agm_OnBalanceSheetMember_98AFB2EBA04D2D7ABF38BD83AA482F2C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B" xlink:to="loc_agm_OnBalanceSheetMember_98AFB2EBA04D2D7ABF38BD83AA482F2C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OffBalanceSheetMember" xlink:label="loc_agm_OffBalanceSheetMember_13DAB4A057D575F67F07BD83AA48229D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9DF2EB03B8C2F98D12FFBD83AA481C3B" xlink:to="loc_agm_OffBalanceSheetMember_13DAB4A057D575F67F07BD83AA48229D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeAxis" xlink:label="loc_agm_CommodityByTypeAxis_580F9F221404117019A9BD83AA4809D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_D874FFA4B67E0B53D181BD83AA422483" xlink:to="loc_agm_CommodityByTypeAxis_580F9F221404117019A9BD83AA4809D8" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_CommodityByTypeAxis_580F9F221404117019A9BD83AA4809D8" xlink:to="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_CommodityByTypeAxis_580F9F221404117019A9BD83AA4809D8" xlink:to="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CropsMember" xlink:label="loc_agm_CropsMember_86502A6BD246804898AEBD83AA495C15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_CropsMember_86502A6BD246804898AEBD83AA495C15" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PermanentPlantingsMember" xlink:label="loc_agm_PermanentPlantingsMember_B62AEE22F1EC2B8C0682BD83AA49DE19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_PermanentPlantingsMember_B62AEE22F1EC2B8C0682BD83AA49DE19" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LivestockMember" xlink:label="loc_agm_LivestockMember_A4C2969167F7336C34CFBD83AA49F2B6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_LivestockMember_A4C2969167F7336C34CFBD83AA49F2B6" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PartTimeFarmMember" xlink:label="loc_agm_PartTimeFarmMember_023107B4A448D8617B74BD83AA499326" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_PartTimeFarmMember_023107B4A448D8617B74BD83AA499326" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AgricultureStorageAndProcessingMember" xlink:label="loc_agm_AgricultureStorageAndProcessingMember_E3E56D5E4C4DBABBAB98BD83AA4A1747" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_AgricultureStorageAndProcessingMember_E3E56D5E4C4DBABBAB98BD83AA4A1747" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherCommodityMember" xlink:label="loc_agm_OtherCommodityMember_03975D4A81884FB0D34EBD83AA4A8893" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_5FB44622B23434C3BB41BD83AA491445" xlink:to="loc_agm_OtherCommodityMember_03975D4A81884FB0D34EBD83AA4A8893" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_BE80D33E8F43DF875A47BD83AA4ACC40" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_FA639ABFFD03B979DE12BD83AA4A2BB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_FA639ABFFD03B979DE12BD83AA4A2BB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_E910627DAF89133103B1BD83AA4B19FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_E910627DAF89133103B1BD83AA4B19FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_EB8F64687B95353621D3BD83AA4B7FBA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:to="loc_us-gaap_NotesReceivableGross_EB8F64687B95353621D3BD83AA4B7FBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract_5524A22319DDBFFFC09FBD83AA4B50C0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossAdditionalInformationAbstract_0052397A06A9D2646A94BD83AA4A691E" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract_5524A22319DDBFFFC09FBD83AA4B50C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_88C9B612B4700AB7A68ABD83AA4B1CF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract_5524A22319DDBFFFC09FBD83AA4B50C0" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_88C9B612B4700AB7A68ABD83AA4B1CF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_664124AD4960449DF65ABD83AA4B4ED5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract_5524A22319DDBFFFC09FBD83AA4B50C0" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_664124AD4960449DF65ABD83AA4B4ED5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_E3FBCA9E1EC53C4D253DBD83AA4C0086" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract_5524A22319DDBFFFC09FBD83AA4B50C0" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_E3FBCA9E1EC53C4D253DBD83AA4C0086" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_62F43848A4008250348ECAC8EE6325AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_62F43848A4008250348ECAC8EE6325AF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_CFD75DA4B585686AABE2CAC8EE63DC51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_62F43848A4008250348ECAC8EE6325AF" xlink:to="loc_srt_ProductOrServiceAxis_CFD75DA4B585686AABE2CAC8EE63DC51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_CFD75DA4B585686AABE2CAC8EE63DC51" xlink:to="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_CFD75DA4B585686AABE2CAC8EE63DC51" xlink:to="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_UnsecuritizedMember" xlink:label="loc_agm_UnsecuritizedMember_D40AADAB4489EF7FDCD3CAC8EE634C7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4" xlink:to="loc_agm_UnsecuritizedMember_D40AADAB4489EF7FDCD3CAC8EE634C7D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InConsolidatedTrustsMember" xlink:label="loc_agm_InConsolidatedTrustsMember_7C4DCEA1D8FA62513335CAC8EE64BD7E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8EBAC13814573DA1FC86CAC8EE63E9D4" xlink:to="loc_agm_InConsolidatedTrustsMember_7C4DCEA1D8FA62513335CAC8EE64BD7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_E86E4A056F1E222BA043CAC8EE65039A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_62F43848A4008250348ECAC8EE6325AF" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_E86E4A056F1E222BA043CAC8EE65039A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E86E4A056F1E222BA043CAC8EE65039A" xlink:to="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E86E4A056F1E222BA043CAC8EE65039A" xlink:to="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmRanchMember" xlink:label="loc_agm_FarmRanchMember_F35EA8F9AE576FD4F20ACAC8EE651676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4" xlink:to="loc_agm_FarmRanchMember_F35EA8F9AE576FD4F20ACAC8EE651676" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_RuralUtilitiesMember" xlink:label="loc_agm_RuralUtilitiesMember_4B0AFCB7EDFC72DD3C02CAC8EE65C890" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19E135C2D0F90BAA649FCAC8EE65AED4" xlink:to="loc_agm_RuralUtilitiesMember_4B0AFCB7EDFC72DD3C02CAC8EE65C890" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_67D082956F7F7ED5D927CAC8EE64E217" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_62F43848A4008250348ECAC8EE6325AF" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_67D082956F7F7ED5D927CAC8EE64E217" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_67EDAD3597F4438D2939CAC8EE64F436_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_67D082956F7F7ED5D927CAC8EE64E217" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_67EDAD3597F4438D2939CAC8EE64F436_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_67EDAD3597F4438D2939CAC8EE64F436" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_67D082956F7F7ED5D927CAC8EE64E217" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_67EDAD3597F4438D2939CAC8EE64F436" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_DD947DEECCEA2228DD8DCAC8EE64522C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_67EDAD3597F4438D2939CAC8EE64F436" xlink:to="loc_us-gaap_RealEstateLoanMember_DD947DEECCEA2228DD8DCAC8EE64522C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LoansandLeaseReceivableUnpaidPrincipalBalance" xlink:label="loc_agm_LoansandLeaseReceivableUnpaidPrincipalBalance_77DEEDAD5F3F487599ADCAC8EE660691" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_agm_LoansandLeaseReceivableUnpaidPrincipalBalance_77DEEDAD5F3F487599ADCAC8EE660691" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums" xlink:label="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_FB58A9ED9AD8D3A1B091CAC8EE66AA18" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_FB58A9ED9AD8D3A1B091CAC8EE66AA18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_0D6921917726266C4948CAC8EE663FCE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_0D6921917726266C4948CAC8EE663FCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_28B40E427D42846A082ACAC8EE66932F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_28B40E427D42846A082ACAC8EE66932F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_51F25C01D7EA83FC9BD9CAC8EE6648B2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_9E567978E9C203415EDBCAC8EE65FF51" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_51F25C01D7EA83FC9BD9CAC8EE6648B2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_89E6C7A7F48574D30FD6CAC8EE2A9D99" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_89E6C7A7F48574D30FD6CAC8EE2A9D99" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_F336ACD3C77E0F5FC819CAC8EE2694AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:to="loc_srt_StatementGeographicalAxis_F336ACD3C77E0F5FC819CAC8EE2694AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_F336ACD3C77E0F5FC819CAC8EE2694AC" xlink:to="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_F336ACD3C77E0F5FC819CAC8EE2694AC" xlink:to="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NorthwestMember" xlink:label="loc_agm_NorthwestMember_8CDDBC9D66C7CE73AEB6CAC8EE279245" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_NorthwestMember_8CDDBC9D66C7CE73AEB6CAC8EE279245" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SouthwestMember" xlink:label="loc_agm_SouthwestMember_FF6355E303F7359CAC18CAC8EE2770D6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_SouthwestMember_FF6355E303F7359CAC18CAC8EE2770D6" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MidNorthMember" xlink:label="loc_agm_MidNorthMember_1A402C4EB0641BF8F3BDCAC8EE27BEE0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_MidNorthMember_1A402C4EB0641BF8F3BDCAC8EE27BEE0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MidSouthMember" xlink:label="loc_agm_MidSouthMember_FF45F6412479F52AD465CAC8EE272685" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_MidSouthMember_FF45F6412479F52AD465CAC8EE272685" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NortheastMember" xlink:label="loc_agm_NortheastMember_CB5F4D4741B443917F7BCAC8EE276950" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_NortheastMember_CB5F4D4741B443917F7BCAC8EE276950" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SoutheastMember" xlink:label="loc_agm_SoutheastMember_D4E15E11CC97DB399B2BCAC8EE27871D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_71DC7098BB0712281610CAC8EE26023D" xlink:to="loc_agm_SoutheastMember_D4E15E11CC97DB399B2BCAC8EE27871D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeAxis" xlink:label="loc_agm_CommodityByTypeAxis_FA2C88572A9A1723A022CAC8EE249EFD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:to="loc_agm_CommodityByTypeAxis_FA2C88572A9A1723A022CAC8EE249EFD" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_CommodityByTypeAxis_FA2C88572A9A1723A022CAC8EE249EFD" xlink:to="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_CommodityByTypeAxis_FA2C88572A9A1723A022CAC8EE249EFD" xlink:to="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CropsMember" xlink:label="loc_agm_CropsMember_0BBC42D5F75720823308CAC8EE257672" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_CropsMember_0BBC42D5F75720823308CAC8EE257672" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PermanentPlantingsMember" xlink:label="loc_agm_PermanentPlantingsMember_91E7B13B9CDB84783757CAC8EE258BAA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_PermanentPlantingsMember_91E7B13B9CDB84783757CAC8EE258BAA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LivestockMember" xlink:label="loc_agm_LivestockMember_30C16A9376612C0F666ECAC8EE25C9E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_LivestockMember_30C16A9376612C0F666ECAC8EE25C9E2" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PartTimeFarmMember" xlink:label="loc_agm_PartTimeFarmMember_4073AA6401077CA733AECAC8EE26DCA1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_PartTimeFarmMember_4073AA6401077CA733AECAC8EE26DCA1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AgricultureStorageAndProcessingMember" xlink:label="loc_agm_AgricultureStorageAndProcessingMember_9D66787802CA24615ED1CAC8EE26130C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_AgricultureStorageAndProcessingMember_9D66787802CA24615ED1CAC8EE26130C" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherCommodityMember" xlink:label="loc_agm_OtherCommodityMember_DEF7B021E439414EF3C9CAC8EE261DD5" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_E80098ABF553699794C1CAC8EE25FD91" xlink:to="loc_agm_OtherCommodityMember_DEF7B021E439414EF3C9CAC8EE261DD5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OriginalLoanToValueRatioRangeAxis" xlink:label="loc_agm_OriginalLoanToValueRatioRangeAxis_5C71D92D8D0027D77BECCAC8EE281854" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:to="loc_agm_OriginalLoanToValueRatioRangeAxis_5C71D92D8D0027D77BECCAC8EE281854" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_OriginalLoanToValueRatioRangeAxis_5C71D92D8D0027D77BECCAC8EE281854" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_OriginalLoanToValueRatioRangeAxis_5C71D92D8D0027D77BECCAC8EE281854" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeOneMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeOneMember_EE7F5C3012F2EB3C2EB8CAC8EE28A6A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeOneMember_EE7F5C3012F2EB3C2EB8CAC8EE28A6A6" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeTwoMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeTwoMember_AD06FF0B5F811E3919F8CAC8EE285397" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeTwoMember_AD06FF0B5F811E3919F8CAC8EE285397" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeThreeMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeThreeMember_4EA5A29A058EB58959B5CAC8EE286D51" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeThreeMember_4EA5A29A058EB58959B5CAC8EE286D51" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeFourMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeFourMember_F34C007AEC1677903594CAC8EE29F397" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeFourMember_F34C007AEC1677903594CAC8EE29F397" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeFiveMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeFiveMember_F5D232018B41BF180646CAC8EE29A284" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeFiveMember_F5D232018B41BF180646CAC8EE29A284" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesOriginalLoanToValueRatioRangeSixMember" xlink:label="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeSixMember_F08B5E803B86E35038E4CAC8EE294981" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeDomain_441FA3C8A388AC3A70F0CAC8EE285125" xlink:to="loc_agm_FinancingReceivablesOriginalLoanToValueRatioRangeSixMember_F08B5E803B86E35038E4CAC8EE294981" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_BorrowerExposureRangeAxisAxis" xlink:label="loc_agm_BorrowerExposureRangeAxisAxis_EB76E33EB3CC364F949BCAC8EE293D0A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_14C8036E531454F02BD9CAC8EE240E17" xlink:to="loc_agm_BorrowerExposureRangeAxisAxis_EB76E33EB3CC364F949BCAC8EE293D0A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_BorrowerExposureRangeAxisDomain" xlink:label="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_BorrowerExposureRangeAxisAxis_EB76E33EB3CC364F949BCAC8EE293D0A" xlink:to="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_BorrowerExposureRangeAxisDomain" xlink:label="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_BorrowerExposureRangeAxisAxis_EB76E33EB3CC364F949BCAC8EE293D0A" xlink:to="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesBorrowerExposureRangeOneMemberMember" xlink:label="loc_agm_FinancingReceivablesBorrowerExposureRangeOneMemberMember_999563B5944F6DCE8DA7CAC8EE29F64A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:to="loc_agm_FinancingReceivablesBorrowerExposureRangeOneMemberMember_999563B5944F6DCE8DA7CAC8EE29F64A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesBorrowerExposureRangeTwoMemberMember" xlink:label="loc_agm_FinancingReceivablesBorrowerExposureRangeTwoMemberMember_E6189B22601B9F244817CAC8EE2AC06A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:to="loc_agm_FinancingReceivablesBorrowerExposureRangeTwoMemberMember_E6189B22601B9F244817CAC8EE2AC06A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesBorrowerExposureRangeThreeMember" xlink:label="loc_agm_FinancingReceivablesBorrowerExposureRangeThreeMember_AF4C3156F7666AAA0E4ACAC8EE2A0452" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:to="loc_agm_FinancingReceivablesBorrowerExposureRangeThreeMember_AF4C3156F7666AAA0E4ACAC8EE2A0452" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesBorrowerExposureRangeFourMember" xlink:label="loc_agm_FinancingReceivablesBorrowerExposureRangeFourMember_AFC5F32E857212B5D6EBCAC8EE2AFF2D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:to="loc_agm_FinancingReceivablesBorrowerExposureRangeFourMember_AFC5F32E857212B5D6EBCAC8EE2AFF2D" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesBorrowerExposureRangeFiveMember" xlink:label="loc_agm_FinancingReceivablesBorrowerExposureRangeFiveMember_4CD9C317ED1ACBF5360ECAC8EE2A2937" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_BorrowerExposureRangeAxisDomain_456FEBEAA9E3B0023443CAC8EE298A3D" xlink:to="loc_agm_FinancingReceivablesBorrowerExposureRangeFiveMember_4CD9C317ED1ACBF5360ECAC8EE2A2937" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_0256B12FAE4CC1B3D0EECAC8EE2A78C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_89E6C7A7F48574D30FD6CAC8EE2A9D99" xlink:to="loc_us-gaap_NotesReceivableGross_0256B12FAE4CC1B3D0EECAC8EE2A78C0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesLoanToValueRatioRangeLowerRangeLimit" xlink:label="loc_agm_FinancingReceivablesLoanToValueRatioRangeLowerRangeLimit_796909CFE68A9CFB3EEDCAC8EE2BB1B0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_89E6C7A7F48574D30FD6CAC8EE2A9D99" xlink:to="loc_agm_FinancingReceivablesLoanToValueRatioRangeLowerRangeLimit_796909CFE68A9CFB3EEDCAC8EE2BB1B0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FinancingReceivablesLoanToValueRatioRangeUpperRangeLimit" xlink:label="loc_agm_FinancingReceivablesLoanToValueRatioRangeUpperRangeLimit_F08D597F7176CC5FFC98CAC8EE2B6CB3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_89E6C7A7F48574D30FD6CAC8EE2A9D99" xlink:to="loc_agm_FinancingReceivablesLoanToValueRatioRangeUpperRangeLimit_F08D597F7176CC5FFC98CAC8EE2B6CB3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_1AA48FB24D3C50E28FDD5EB76B77E596" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_CEBBDE2BED5E525B9706209D718F2555" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_1AA48FB24D3C50E28FDD5EB76B77E596" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_CEBBDE2BED5E525B9706209D718F2555" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_EEEB1691053A52728776B0E286ED711E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_CEBBDE2BED5E525B9706209D718F2555" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_EEEB1691053A52728776B0E286ED711E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_0AC314417806BEA7F729E218CEB84A5A_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_EEEB1691053A52728776B0E286ED711E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_0AC314417806BEA7F729E218CEB84A5A_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F35B7AAE4B3C5DD6A90AAB03CE00303A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_EEEB1691053A52728776B0E286ED711E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F35B7AAE4B3C5DD6A90AAB03CE00303A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnBalanceSheetMember" xlink:label="loc_agm_OnBalanceSheetMember_63F944B08D665FC19A1DB0464CFB49C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_F35B7AAE4B3C5DD6A90AAB03CE00303A" xlink:to="loc_agm_OnBalanceSheetMember_63F944B08D665FC19A1DB0464CFB49C1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OffBalanceSheetMember" xlink:label="loc_agm_OffBalanceSheetMember_7F2F230C3F9559EEA04E3222AA5612DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_F35B7AAE4B3C5DD6A90AAB03CE00303A" xlink:to="loc_agm_OffBalanceSheetMember_7F2F230C3F9559EEA04E3222AA5612DB" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeAxis" xlink:label="loc_agm_CommodityByTypeAxis_17CED822554B54E5BA8B621FE1D1AC60" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_CEBBDE2BED5E525B9706209D718F2555" xlink:to="loc_agm_CommodityByTypeAxis_17CED822554B54E5BA8B621FE1D1AC60" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_F4316C3AB2E9D44ECAF6E218CEB9F5F9_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_CommodityByTypeAxis_17CED822554B54E5BA8B621FE1D1AC60" xlink:to="loc_agm_CommodityByTypeDomain_F4316C3AB2E9D44ECAF6E218CEB9F5F9_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_CommodityByTypeAxis_17CED822554B54E5BA8B621FE1D1AC60" xlink:to="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CropsMember" xlink:label="loc_agm_CropsMember_39787DB4BF9D5F209D1DFFCD1EED1C86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_CropsMember_39787DB4BF9D5F209D1DFFCD1EED1C86" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PermanentPlantingsMember" xlink:label="loc_agm_PermanentPlantingsMember_C1331264A67D5508B8E77FE3CC4032BE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_PermanentPlantingsMember_C1331264A67D5508B8E77FE3CC4032BE" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LivestockMember" xlink:label="loc_agm_LivestockMember_7155BEBAD6BA5417B8514B73DA259AFE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_LivestockMember_7155BEBAD6BA5417B8514B73DA259AFE" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PartTimeFarmMember" xlink:label="loc_agm_PartTimeFarmMember_782524636EB15A648403EA453B32F28E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_PartTimeFarmMember_782524636EB15A648403EA453B32F28E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AgricultureStorageAndProcessingMember" xlink:label="loc_agm_AgricultureStorageAndProcessingMember_6DA7929638CA52C99C9F1BE48BDCA37F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_AgricultureStorageAndProcessingMember_6DA7929638CA52C99C9F1BE48BDCA37F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherCommodityMember" xlink:label="loc_agm_OtherCommodityMember_AD74805863585480AC104396717EC93A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_F8E7AB149E7D5DA2A1B993CEADB0036E" xlink:to="loc_agm_OtherCommodityMember_AD74805863585480AC104396717EC93A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentAxis" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_CA06AD31DAC65D3E8B249E7AB0118945" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_CEBBDE2BED5E525B9706209D718F2555" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_CA06AD31DAC65D3E8B249E7AB0118945" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_F69BBDEDEBB035328793E218CEBBC51A_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_CA06AD31DAC65D3E8B249E7AB0118945" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_F69BBDEDEBB035328793E218CEBBC51A_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_B48EC4C393CA5678BC93874188009668" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_CA06AD31DAC65D3E8B249E7AB0118945" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_B48EC4C393CA5678BC93874188009668" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PassMember" xlink:label="loc_us-gaap_PassMember_6A44301802C85199804BF1B627B0F4E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_B48EC4C393CA5678BC93874188009668" xlink:to="loc_us-gaap_PassMember_6A44301802C85199804BF1B627B0F4E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SpecialMentionMember" xlink:label="loc_us-gaap_SpecialMentionMember_0C93729337B957108FF3CDFB81A4B9A5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_B48EC4C393CA5678BC93874188009668" xlink:to="loc_us-gaap_SpecialMentionMember_0C93729337B957108FF3CDFB81A4B9A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubstandardMember" xlink:label="loc_us-gaap_SubstandardMember_AA27F562099E5B7BBFA052E6EF90BF07" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_B48EC4C393CA5678BC93874188009668" xlink:to="loc_us-gaap_SubstandardMember_AA27F562099E5B7BBFA052E6EF90BF07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_0E5AE4A4ADFE55589BC13FB0015492BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_1AA48FB24D3C50E28FDD5EB76B77E596" xlink:to="loc_us-gaap_NotesReceivableGross_0E5AE4A4ADFE55589BC13FB0015492BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_AF0A863A752F52FBAB9715FF998E960B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_1AA48FB24D3C50E28FDD5EB76B77E596" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_AF0A863A752F52FBAB9715FF998E960B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableImpairedLineItems" xlink:label="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfImpairedFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_748F32D57AAA384F6A5ECAC8EE4274F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_748F32D57AAA384F6A5ECAC8EE4274F8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ImpairmentAnalysisAxis" xlink:label="loc_agm_ImpairmentAnalysisAxis_CFB1E9ECB9F391E87579CAC8EE42465A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_748F32D57AAA384F6A5ECAC8EE4274F8" xlink:to="loc_agm_ImpairmentAnalysisAxis_CFB1E9ECB9F391E87579CAC8EE42465A" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ImpairmentAnalysisDomain" xlink:label="loc_agm_ImpairmentAnalysisDomain_8E060F0F0A2E2D439343CAC8EE430E64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_ImpairmentAnalysisAxis_CFB1E9ECB9F391E87579CAC8EE42465A" xlink:to="loc_agm_ImpairmentAnalysisDomain_8E060F0F0A2E2D439343CAC8EE430E64_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ImpairmentAnalysisDomain" xlink:label="loc_agm_ImpairmentAnalysisDomain_8E060F0F0A2E2D439343CAC8EE430E64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_ImpairmentAnalysisAxis_CFB1E9ECB9F391E87579CAC8EE42465A" xlink:to="loc_agm_ImpairmentAnalysisDomain_8E060F0F0A2E2D439343CAC8EE430E64" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CollateralDependentNotIndividuallyAnalyzedMember" xlink:label="loc_agm_CollateralDependentNotIndividuallyAnalyzedMember_65D53C595FF8DE0EA108CAC8EE43B452" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_ImpairmentAnalysisDomain_8E060F0F0A2E2D439343CAC8EE430E64" xlink:to="loc_agm_CollateralDependentNotIndividuallyAnalyzedMember_65D53C595FF8DE0EA108CAC8EE43B452" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeAxis" xlink:label="loc_agm_CommodityByTypeAxis_CEA0F07D42390DBEEE24CAC8EE442704" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_748F32D57AAA384F6A5ECAC8EE4274F8" xlink:to="loc_agm_CommodityByTypeAxis_CEA0F07D42390DBEEE24CAC8EE442704" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_CommodityByTypeAxis_CEA0F07D42390DBEEE24CAC8EE442704" xlink:to="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CommodityByTypeDomain" xlink:label="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_CommodityByTypeAxis_CEA0F07D42390DBEEE24CAC8EE442704" xlink:to="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CropsMember" xlink:label="loc_agm_CropsMember_684656DDF618550E3B65CAC8EE4475C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_CropsMember_684656DDF618550E3B65CAC8EE4475C1" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PermanentPlantingsMember" xlink:label="loc_agm_PermanentPlantingsMember_3A3229C86955940C07E5CAC8EE45E050" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_PermanentPlantingsMember_3A3229C86955940C07E5CAC8EE45E050" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LivestockMember" xlink:label="loc_agm_LivestockMember_59805962379D4A21C99FCAC8EE456B45" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_LivestockMember_59805962379D4A21C99FCAC8EE456B45" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PartTimeFarmMember" xlink:label="loc_agm_PartTimeFarmMember_DCB720125EFAAF62356FCAC8EE457C7F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_PartTimeFarmMember_DCB720125EFAAF62356FCAC8EE457C7F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_AgricultureStorageAndProcessingMember" xlink:label="loc_agm_AgricultureStorageAndProcessingMember_1B33A6DB726904034429CAC8EE45F7BA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_AgricultureStorageAndProcessingMember_1B33A6DB726904034429CAC8EE45F7BA" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherCommodityMember" xlink:label="loc_agm_OtherCommodityMember_03ECD817861B04221097CAC8EE454FA9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_CommodityByTypeDomain_94A42181B7B6030A2623CAC8EE44D64B" xlink:to="loc_agm_OtherCommodityMember_03ECD817861B04221097CAC8EE454FA9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesAxis" xlink:label="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesAxis_BD201C4003CA39C25EF1CAC8EE4321EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_748F32D57AAA384F6A5ECAC8EE4274F8" xlink:to="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesAxis_BD201C4003CA39C25EF1CAC8EE4321EF" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain" xlink:label="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain_52AC252AC6EBC3BBDE8DCAC8EE43BC98_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesAxis_BD201C4003CA39C25EF1CAC8EE4321EF" xlink:to="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain_52AC252AC6EBC3BBDE8DCAC8EE43BC98_default" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain" xlink:label="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain_52AC252AC6EBC3BBDE8DCAC8EE43BC98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesAxis_BD201C4003CA39C25EF1CAC8EE4321EF" xlink:to="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain_52AC252AC6EBC3BBDE8DCAC8EE43BC98" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LessThan90DaysPastDueMember" xlink:label="loc_agm_LessThan90DaysPastDueMember_EF5ADD39023C43CDCC33CAC8EE44C75F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_agm_PaymentStatusOfLoanOrLoansHeldInSecuritiesDomain_52AC252AC6EBC3BBDE8DCAC8EE43BC98" xlink:to="loc_agm_LessThan90DaysPastDueMember_EF5ADD39023C43CDCC33CAC8EE44C75F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_8FD4E3DE311D8BCA3A42CAC8EE468AC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_8FD4E3DE311D8BCA3A42CAC8EE468AC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_210551E35708A717730BCAC8EE46C119" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_210551E35708A717730BCAC8EE46C119" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_1245E2591AB36BCAA3F8CAC8EE46D4DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_1245E2591AB36BCAA3F8CAC8EE46D4DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_D8E9BDBEE9BAD79B4E61CAC8EE469A18" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_D8E9BDBEE9BAD79B4E61CAC8EE469A18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRelatedAllowance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_A15E0C412CB54B0637E4CAC8EE463561" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_A15E0C412CB54B0637E4CAC8EE463561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_28B30B0F99FC7D955604CAC8EE46FD9D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_28B30B0F99FC7D955604CAC8EE46FD9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_D9BA78360B34C97EAF78CAC8EE47D341" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_D9BA78360B34C97EAF78CAC8EE47D341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_C219717A18A7EB750059CAC8EE4756E5" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_C219717A18A7EB750059CAC8EE4756E5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ImpairedFinancingReceivableImpairmentAnalysisPerformedPercent" xlink:label="loc_agm_ImpairedFinancingReceivableImpairmentAnalysisPerformedPercent_C0D0766D10539DEC4EF9CAC8EE47700C" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_agm_ImpairedFinancingReceivableImpairmentAnalysisPerformedPercent_C0D0766D10539DEC4EF9CAC8EE47700C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_75D604AE7BA6865AE357CAC8EE474552" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_75D604AE7BA6865AE357CAC8EE474552" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_328F8075632217A8DD27CAC8EE4784FB" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_C5F127AF87FE22EB60C1CAC8EE455C6B" xlink:to="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_328F8075632217A8DD27CAC8EE4784FB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_0E68A661A6A891D68549CAC8EE3B6292" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_2D0E802DFB07F4D606CFCAC8EE3ACFB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_0E68A661A6A891D68549CAC8EE3B6292" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_2D0E802DFB07F4D606CFCAC8EE3ACFB8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3FDE27EB7396C0901DC2CAC8EE3A6140" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_2D0E802DFB07F4D606CFCAC8EE3ACFB8" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3FDE27EB7396C0901DC2CAC8EE3A6140" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3FDE27EB7396C0901DC2CAC8EE3A6140" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3FDE27EB7396C0901DC2CAC8EE3A6140" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnBalanceSheetMember" xlink:label="loc_agm_OnBalanceSheetMember_18527695837BBEB920A2CAC8EE3B469F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47" xlink:to="loc_agm_OnBalanceSheetMember_18527695837BBEB920A2CAC8EE3B469F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OffBalanceSheetMember" xlink:label="loc_agm_OffBalanceSheetMember_8A33882F77B2392D1273CAC8EE3B562E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E7DBB5B41D11B626F3FCAC8EE3A9F47" xlink:to="loc_agm_OffBalanceSheetMember_8A33882F77B2392D1273CAC8EE3B562E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_FD4D2DCB8C14BA95C861CAC8EE3BAAA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_0E68A661A6A891D68549CAC8EE3B6292" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_FD4D2DCB8C14BA95C861CAC8EE3BAAA5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NetCreditLossesRecoveries" xlink:label="loc_agm_NetCreditLossesRecoveries_48C6F59C0A853B775A0CCAC8EE3C194F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_0E68A661A6A891D68549CAC8EE3B6292" xlink:to="loc_agm_NetCreditLossesRecoveries_48C6F59C0A853B775A0CCAC8EE3C194F" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased" xlink:label="loc_agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased_C94FBA661FEAAC6927D8CAC8EE3C5389" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_0E68A661A6A891D68549CAC8EE3B6292" xlink:to="loc_agm_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesSubjectToBePurchased_C94FBA661FEAAC6927D8CAC8EE3C5389" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityLineItems" xlink:label="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:label="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_2D5C3772E29851B03ECBBA365B19E94B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:to="loc_srt_ConsolidationItemsAxis_2D5C3772E29851B03ECBBA365B19E94B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_2D5C3772E29851B03ECBBA365B19E94B" xlink:to="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_2D5C3772E29851B03ECBBA365B19E94B" xlink:to="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_0DE0370EF85C4E60586BBA365B1A8D06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766" xlink:to="loc_us-gaap_OperatingSegmentsMember_0DE0370EF85C4E60586BBA365B1A8D06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_DDE6153DE9F190B89AA8BA365B1A3FD5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8B579B11838A7251AB41BA365B195766" xlink:to="loc_us-gaap_CorporateNonSegmentMember_DDE6153DE9F190B89AA8BA365B1A3FD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_CF0B09AC996E5954147BBA365B1AE87C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:to="loc_us-gaap_FinancialInstrumentAxis_CF0B09AC996E5954147BBA365B1AE87C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CF0B09AC996E5954147BBA365B1AE87C" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CF0B09AC996E5954147BBA365B1AE87C" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_4B7EC56BE635C048679EBA365B1B9081" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_4B7EC56BE635C048679EBA365B1B9081" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_1DD984A32F5215D74A35BA365B1B95FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B7A9FD0D92A8F034BF40BA365B1A002C" xlink:to="loc_us-gaap_DebtSecuritiesMember_1DD984A32F5215D74A35BA365B1B95FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_9CDDF9CFC127AB8A98CFBA365B1BB217" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_9CDDF9CFC127AB8A98CFBA365B1BB217" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_9CDDF9CFC127AB8A98CFBA365B1BB217" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_9CDDF9CFC127AB8A98CFBA365B1BB217" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OnBalanceSheetMember" xlink:label="loc_agm_OnBalanceSheetMember_EE88851ADDAEFAFF7938BA365B1B5423" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393" xlink:to="loc_agm_OnBalanceSheetMember_EE88851ADDAEFAFF7938BA365B1B5423" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OffBalanceSheetMember" xlink:label="loc_agm_OffBalanceSheetMember_6634B64639DD5285EC8FBA365B1C6138" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2332FA1D30A497A909A5BA365B1B9393" xlink:to="loc_agm_OffBalanceSheetMember_6634B64639DD5285EC8FBA365B1C6138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_C9F4DA973BE2F962089BBA365B1CA93B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C9F4DA973BE2F962089BBA365B1CA93B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C9F4DA973BE2F962089BBA365B1CA93B" xlink:to="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C9F4DA973BE2F962089BBA365B1CA93B" xlink:to="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_FarmRanchMember" xlink:label="loc_agm_FarmRanchMember_D8E150EE709F646B06F5BA365B1C2BE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:to="loc_agm_FarmRanchMember_D8E150EE709F646B06F5BA365B1C2BE4" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_USDAGuaranteesMember" xlink:label="loc_agm_USDAGuaranteesMember_272993A029B36C6601AABA365B1C7769" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:to="loc_agm_USDAGuaranteesMember_272993A029B36C6601AABA365B1C7769" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_RuralUtilitiesMember" xlink:label="loc_agm_RuralUtilitiesMember_2F94CBF271DA91DDE69FBA365B1D6459" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:to="loc_agm_RuralUtilitiesMember_2F94CBF271DA91DDE69FBA365B1D6459" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_InstitutionalCreditMemberMember" xlink:label="loc_agm_InstitutionalCreditMemberMember_3B2ED917CB040AF30FB8BA365B1D10F2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_19CCAF380A2DD785A618BA365B1C607E" xlink:to="loc_agm_InstitutionalCreditMemberMember_3B2ED917CB040AF30FB8BA365B1D10F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis" xlink:label="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_A2FF23E7B3876BB1C8C6BA365B1D5AF5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_EF0B870344ADFE309755BA365B199B58" xlink:to="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_A2FF23E7B3876BB1C8C6BA365B1D5AF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_2EB8520666CBDE094328BA365B1D9ADC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_A2FF23E7B3876BB1C8C6BA365B1D5AF5" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_2EB8520666CBDE094328BA365B1D9ADC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassificationOfVariableInterestEntityDomain" xlink:label="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_2EB8520666CBDE094328BA365B1D9ADC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_A2FF23E7B3876BB1C8C6BA365B1D5AF5" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_2EB8520666CBDE094328BA365B1D9ADC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_B12038A1AB331E7800CEBA365B1DC73D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_2EB8520666CBDE094328BA365B1D9ADC" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_B12038A1AB331E7800CEBA365B1DC73D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_932CF991D0F2BEC36360BA365B1E1BB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_932CF991D0F2BEC36360BA365B1E1BB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_AAB33852EF737B36E1C0BA365B1E7B35" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_AAB33852EF737B36E1C0BA365B1E7B35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_2EC7521FFA4164EF23BFBA365B1E603B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_2EC7521FFA4164EF23BFBA365B1E603B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_49C4F65C7D7974B7C578BA365B1EDC59" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_49C4F65C7D7974B7C578BA365B1EDC59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_B1572700938AC5E313C9BA365B1ED8E3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_OtherLiabilities_B1572700938AC5E313C9BA365B1ED8E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_DA1CA40847847B91CC17BA365B1FEA77" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_09253AC234EC9393E289BA365B1EE169" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_DA1CA40847847B91CC17BA365B1FEA77" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_67EF7FF655DD7E753865CF037533497D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_67EF7FF655DD7E753865CF037533497D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_981FAF56C22C39AF6532CF0375337673" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_67EF7FF655DD7E753865CF037533497D" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_981FAF56C22C39AF6532CF0375337673" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_981FAF56C22C39AF6532CF0375337673" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_981FAF56C22C39AF6532CF0375337673" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_FAA8B92167914BB7CAB6CF037534B8E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_FAA8B92167914BB7CAB6CF037534B8E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_C5B525BAC171B37F9293CF037534A445" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76" xlink:to="loc_us-gaap_RestrictedStockMember_C5B525BAC171B37F9293CF037534A445" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_6897AC8FDA87674F5F9ECF037534E2A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_E3D14DC1AFC357FD4D0CCF037533EE76" xlink:to="loc_us-gaap_PerformanceSharesMember_6897AC8FDA87674F5F9ECF037534E2A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_4C4E184E48DA5E02E000CF037534A13A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_4C4E184E48DA5E02E000CF037534A13A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_BDDA1DAD043346F83CDCCF037535A0BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_4C4E184E48DA5E02E000CF037534A13A" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_BDDA1DAD043346F83CDCCF037535A0BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_BECD36F4965199D021BFCF0375359D3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_4C4E184E48DA5E02E000CF037534A13A" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_BECD36F4965199D021BFCF0375359D3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_984FD40582B75323FFEACF0375350F9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_4C4E184E48DA5E02E000CF037534A13A" xlink:to="loc_us-gaap_EarningsPerShareBasic_984FD40582B75323FFEACF0375350F9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_F8602526F6111634C221CF037535C535" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_F8602526F6111634C221CF037535C535" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_AC318EA944972AF277C7CF037535FD01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_F8602526F6111634C221CF037535C535" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_AC318EA944972AF277C7CF037535FD01" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_F7E8F50A5F35DCBCBA69CF037535687F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_F8602526F6111634C221CF037535C535" xlink:to="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_F7E8F50A5F35DCBCBA69CF037535687F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_072F021F83B90844DFFACF037536344B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_072F021F83B90844DFFACF037536344B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8196147F33688DC9C79CCF037536083C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8196147F33688DC9C79CCF037536083C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_8B56B9800E903DAE3550CF0375365F78" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_EarningsPerShareDiluted_8B56B9800E903DAE3550CF0375365F78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_D4CBD7ECBD5EABFA2B5ACF037536235C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_96E40CE2C6A5DD92A282CF037534B623" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_D4CBD7ECBD5EABFA2B5ACF037536235C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_FC1C035ECD1D537084089BA5BD17EFCC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_AB982662E09453E5B40802F9242C17D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_FC1C035ECD1D537084089BA5BD17EFCC" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_AB982662E09453E5B40802F9242C17D4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_285381CEA57D59E1B7CD8B18A2805F28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_AB982662E09453E5B40802F9242C17D4" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_285381CEA57D59E1B7CD8B18A2805F28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_70693994E6A76A9B70B900B74D168357_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_285381CEA57D59E1B7CD8B18A2805F28" xlink:to="loc_us-gaap_EquityComponentDomain_70693994E6A76A9B70B900B74D168357_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_188311DAB4285C65AF9FB20DECB8FC74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_285381CEA57D59E1B7CD8B18A2805F28" xlink:to="loc_us-gaap_EquityComponentDomain_188311DAB4285C65AF9FB20DECB8FC74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember" xlink:label="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_B22307C384545ABABDA8467FBB9B4764" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_188311DAB4285C65AF9FB20DECB8FC74" xlink:to="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_B22307C384545ABABDA8467FBB9B4764" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember" xlink:label="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_41BEC9D695A75F5C848BD945A85D9D1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_B22307C384545ABABDA8467FBB9B4764" xlink:to="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_41BEC9D695A75F5C848BD945A85D9D1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember" xlink:label="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_7A894D3A4366537EA5E37B447E38E3AC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_B22307C384545ABABDA8467FBB9B4764" xlink:to="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_7A894D3A4366537EA5E37B447E38E3AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_35D167BA84095DEF9C8F0EB9FB4B63AE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_AB982662E09453E5B40802F9242C17D4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_35D167BA84095DEF9C8F0EB9FB4B63AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5C8A307544C7C0EF72DB00B74D16CD3A_046B856B160E554C9D2A0C456FBE9404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_35D167BA84095DEF9C8F0EB9FB4B63AE" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5C8A307544C7C0EF72DB00B74D16CD3A_046B856B160E554C9D2A0C456FBE9404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11C0EA0AF9BA5B38A4DB272680E5C4B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_35D167BA84095DEF9C8F0EB9FB4B63AE" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11C0EA0AF9BA5B38A4DB272680E5C4B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_427867055CA05ED9BB932DDC4FA728B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11C0EA0AF9BA5B38A4DB272680E5C4B2" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_427867055CA05ED9BB932DDC4FA728B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldtomaturitySecuritiesMember" xlink:label="loc_us-gaap_HeldtomaturitySecuritiesMember_6412B074102D575887399A0D2C2B8AEA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_11C0EA0AF9BA5B38A4DB272680E5C4B2" xlink:to="loc_us-gaap_HeldtomaturitySecuritiesMember_6412B074102D575887399A0D2C2B8AEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_FC1C035ECD1D537084089BA5BD17EFCC" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_33BA583BEEC95B188658AD277E10D17D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_33BA583BEEC95B188658AD277E10D17D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_4BEE4E1C7ECE53AFA9873C86108FCCE3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_4BEE4E1C7ECE53AFA9873C86108FCCE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1_7C4042DBB1C75B59AEF49E74734BDB92" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAdjustedBalance1_7C4042DBB1C75B59AEF49E74734BDB92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_4C79CDEA74DD531F86D25FADE6CC3CDA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_4C79CDEA74DD531F86D25FADE6CC3CDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_FF35F83478F85D2090CC013AAE0796C7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_FF35F83478F85D2090CC013AAE0796C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_E74C08AC7B375B7DB00E362D725DEF16" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_31E4D089D0EF5BB095B624761F3F62B1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_E74C08AC7B375B7DB00E362D725DEF16" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems" xlink:label="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_395C295CF54FB0D91D67CAC8EF9C56A6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_395C295CF54FB0D91D67CAC8EF9C56A6" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_5C980C53C2CC14E23AC3CAC8EF987162" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_5C980C53C2CC14E23AC3CAC8EF987162" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5C980C53C2CC14E23AC3CAC8EF987162" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5C980C53C2CC14E23AC3CAC8EF987162" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeMember" xlink:label="loc_us-gaap_InterestIncomeMember_7BBEBA742C6E61F69BF5CAC8EF98D65A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10" xlink:to="loc_us-gaap_InterestIncomeMember_7BBEBA742C6E61F69BF5CAC8EF98D65A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherIncomeMember" xlink:label="loc_us-gaap_OtherIncomeMember_2B8AF9A6B11AFD1CF3C7CAC8EF9930C0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10" xlink:to="loc_us-gaap_OtherIncomeMember_2B8AF9A6B11AFD1CF3C7CAC8EF9930C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseMember" xlink:label="loc_us-gaap_InterestExpenseMember_3365F6EC6BB88ACD9262CB323BD72C1A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5128CC35198644A608E2CAC8EF987A10" xlink:to="loc_us-gaap_InterestExpenseMember_3365F6EC6BB88ACD9262CB323BD72C1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_1922C8B7C41FAEEAEC5FCAC8EF993BD7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_1922C8B7C41FAEEAEC5FCAC8EF993BD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_217EE2F8E03AA8F45683CAC8EF998D9A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_1922C8B7C41FAEEAEC5FCAC8EF993BD7" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_217EE2F8E03AA8F45683CAC8EF998D9A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_217EE2F8E03AA8F45683CAC8EF998D9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_1922C8B7C41FAEEAEC5FCAC8EF993BD7" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_217EE2F8E03AA8F45683CAC8EF998D9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_385860C60B69C12D1FE7CAC8EF9A32EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_217EE2F8E03AA8F45683CAC8EF998D9A" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_385860C60B69C12D1FE7CAC8EF9A32EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_D562E88F41E97F5D40AECAC8EF9ABD02" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:to="loc_us-gaap_FinancialInstrumentAxis_D562E88F41E97F5D40AECAC8EF9ABD02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_D562E88F41E97F5D40AECAC8EF9ABD02" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_D562E88F41E97F5D40AECAC8EF9ABD02" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_17545C51DA54F994EADBCAC8EF9AB219" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_17545C51DA54F994EADBCAC8EF9AB219" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldtomaturitySecuritiesMember" xlink:label="loc_us-gaap_HeldtomaturitySecuritiesMember_A2D2164B436B14C515F6CAC8EF9B0A6E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9F5E40FF617F7E3A9A71CAC8EF9A5AC3" xlink:to="loc_us-gaap_HeldtomaturitySecuritiesMember_A2D2164B436B14C515F6CAC8EF9B0A6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_1B30ABEA31FD99E73586CAC8EF9B6664" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4D954005E564321D2F44CAC8EF98F7C1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_1B30ABEA31FD99E73586CAC8EF9B6664" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1B30ABEA31FD99E73586CAC8EF9B6664" xlink:to="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1B30ABEA31FD99E73586CAC8EF9B6664" xlink:to="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember" xlink:label="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_A62388765F9DAEA8718DCAC8EF9B7FF5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA" xlink:to="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_A62388765F9DAEA8718DCAC8EF9B7FF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember" xlink:label="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_010AEB1D39218DE1C489CAC8EF9CC2DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_A83AA2284F04FB01B835CAC8EF9B7BEA" xlink:to="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_010AEB1D39218DE1C489CAC8EF9CC2DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_395C295CF54FB0D91D67CAC8EF9C56A6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_240D32350BDAE7776C38CAC8EF9CEF41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_240D32350BDAE7776C38CAC8EF9CEF41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_9363427EEBD50258CF29CAC8EF9DFEBC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_9363427EEBD50258CF29CAC8EF9DFEBC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_F334FFE189A251310D5CCAC8EF9D5DCC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_F334FFE189A251310D5CCAC8EF9D5DCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_8270090444AAEF0FE511CAC8EF9DAD08" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPeriodIncreaseDecreaseAbstract_F4BF51C86ACF275C4C02CAC8EF9C93F4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_8270090444AAEF0FE511CAC8EF9DAD08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_395C295CF54FB0D91D67CAC8EF9C56A6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_F566D34A444B58A36798CAC8EF9D7BFB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_F566D34A444B58A36798CAC8EF9D7BFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_32693B88D3ED568012E2CAC8EF9E8247" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_32693B88D3ED568012E2CAC8EF9E8247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_6D72800C1D370F7453B6CAC8EF9EE55D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_6D72800C1D370F7453B6CAC8EF9EE55D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_7CCBB10957DCCD4F82C8CAC8EF9E3AFD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxAbstract_702F15A499D812EA0664CAC8EF9D93C0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_7CCBB10957DCCD4F82C8CAC8EF9E3AFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_395C295CF54FB0D91D67CAC8EF9C56A6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_A31C1F990729103601D3CAC8EF9EDF7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_A31C1F990729103601D3CAC8EF9EDF7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_0EB4360B1C2BF4E20C85CAC8EF9FADCC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_0EB4360B1C2BF4E20C85CAC8EF9FADCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_19CC415D1B91E1AA7D0ACAC8EF9F4769" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_19CC415D1B91E1AA7D0ACAC8EF9F4769" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_DC5335B73FCB0FE07B08CAC8EF9FECA3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_BA3A45A00F9189CEC587CAC8EF9ECB9A" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_DC5335B73FCB0FE07B08CAC8EF9FECA3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
</link:linkbase>
