<?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.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactions" xlink:href="amrc-20181231.xsd#BusinessAcquisitionsAndRelatedTransactions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#BusinessAcquisitionsAndRelatedTransactionsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsPurchasePriceAllocationDetails" xlink:href="amrc-20181231.xsd#BusinessAcquisitionsAndRelatedTransactionsPurchasePriceAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsTables" xlink:href="amrc-20181231.xsd#BusinessAcquisitionsAndRelatedTransactionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessSegmentInformation" xlink:href="amrc-20181231.xsd#BusinessSegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessSegmentInformationAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#BusinessSegmentInformationAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessSegmentInformationRevenueDetails" xlink:href="amrc-20181231.xsd#BusinessSegmentInformationRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessSegmentInformationSegmentInformationDetails" xlink:href="amrc-20181231.xsd#BusinessSegmentInformationSegmentInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/BusinessSegmentInformationTables" xlink:href="amrc-20181231.xsd#BusinessSegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/CommitmentsAndContingencies" xlink:href="amrc-20181231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/CommitmentsAndContingenciesAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#CommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/CommitmentsAndContingenciesOperatingLeasesDetails" xlink:href="amrc-20181231.xsd#CommitmentsAndContingenciesOperatingLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/CommitmentsAndContingenciesTables" xlink:href="amrc-20181231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedBalanceSheets" xlink:href="amrc-20181231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="amrc-20181231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementOfComprehensiveIncomeLossParenthetical" xlink:href="amrc-20181231.xsd#ConsolidatedStatementOfComprehensiveIncomeLossParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="amrc-20181231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquity" xlink:href="amrc-20181231.xsd#ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquityParenthetical" xlink:href="amrc-20181231.xsd#ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:href="amrc-20181231.xsd#ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/ConsolidatedStatementsOfIncomeLoss" xlink:href="amrc-20181231.xsd#ConsolidatedStatementsOfIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivities" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesEffectsOfDerivativeInstrumentsInAccumulatedOtherComprehensiveIncomeDetails" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesEffectsOfDerivativeInstrumentsInAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesEffectsOnStatementsOfIncomeAndConsolidatedStatementsOfComprehensiveIncomeDetails" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesEffectsOnStatementsOfIncomeAndConsolidatedStatementsOfComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesFairValueOfDerivativeInstrumentsOnBalanceSheetDetails" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesFairValueOfDerivativeInstrumentsOnBalanceSheetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesSummaryOfActiveDerivativeInstrumentsDetails" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesSummaryOfActiveDerivativeInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesTables" xlink:href="amrc-20181231.xsd#DerivativeInstrumentsAndHedgingActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DescriptionOfBusiness" xlink:href="amrc-20181231.xsd#DescriptionOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/DocumentAndEntityInformation" xlink:href="amrc-20181231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/EmployeeBenefits" xlink:href="amrc-20181231.xsd#EmployeeBenefits" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/EmployeeBenefitsDetails" xlink:href="amrc-20181231.xsd#EmployeeBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/EnergyAssets" xlink:href="amrc-20181231.xsd#EnergyAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/EnergyAssetsAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#EnergyAssetsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/EnergyAssetsTables" xlink:href="amrc-20181231.xsd#EnergyAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurement" xlink:href="amrc-20181231.xsd#FairValueMeasurement" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurementAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#FairValueMeasurementAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurementFairValueAndCarryingValueOfLongTermDebtDetails" xlink:href="amrc-20181231.xsd#FairValueMeasurementFairValueAndCarryingValueOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurementFairValueOfAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" xlink:href="amrc-20181231.xsd#FairValueMeasurementFairValueOfAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurementFairValueOfContingentLiabilitiesDetails" xlink:href="amrc-20181231.xsd#FairValueMeasurementFairValueOfContingentLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/FairValueMeasurementTables" xlink:href="amrc-20181231.xsd#FairValueMeasurementTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GeographicInformation" xlink:href="amrc-20181231.xsd#GeographicInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GeographicInformationDetails" xlink:href="amrc-20181231.xsd#GeographicInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GeographicInformationTables" xlink:href="amrc-20181231.xsd#GeographicInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssets" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsAmortizationDetails" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsFutureAmortizationDetails" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsFutureAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsIntangibleAssetsDetails" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="amrc-20181231.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxes" xlink:href="amrc-20181231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesDomesticAndForeignIncomeTaxesDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesDomesticAndForeignIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesIncomeTaxProvisionDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesIncomeTaxProvisionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesReconciliationOfEffectiveTaxRatesDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesReconciliationOfEffectiveTaxRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesTables" xlink:href="amrc-20181231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="amrc-20181231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/InvestmentFunds" xlink:href="amrc-20181231.xsd#InvestmentFunds" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/InvestmentFundsDetails" xlink:href="amrc-20181231.xsd#InvestmentFundsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/InvestmentFundsTables" xlink:href="amrc-20181231.xsd#InvestmentFundsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebt" xlink:href="amrc-20181231.xsd#LongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebtConstructionAndTermLoansDetails" xlink:href="amrc-20181231.xsd#LongTermDebtConstructionAndTermLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebtScheduleOfLongTermDebtDetails" xlink:href="amrc-20181231.xsd#LongTermDebtScheduleOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebtScheduleOfMaturitiesDetails" xlink:href="amrc-20181231.xsd#LongTermDebtScheduleOfMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebtSeniorSecuredCreditFacilityRevolverAndTermLoanDetails" xlink:href="amrc-20181231.xsd#LongTermDebtSeniorSecuredCreditFacilityRevolverAndTermLoanDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/LongTermDebtTables" xlink:href="amrc-20181231.xsd#LongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/NonControllingInterestsAndEquity" xlink:href="amrc-20181231.xsd#NonControllingInterestsAndEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/NonControllingInterestsAndEquityDetails" xlink:href="amrc-20181231.xsd#NonControllingInterestsAndEquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/OtherExpensesNet" xlink:href="amrc-20181231.xsd#OtherExpensesNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/OtherExpensesNetDeferredFinancingCostsDetails" xlink:href="amrc-20181231.xsd#OtherExpensesNetDeferredFinancingCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/OtherExpensesNetDetails" xlink:href="amrc-20181231.xsd#OtherExpensesNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/OtherExpensesNetTables" xlink:href="amrc-20181231.xsd#OtherExpensesNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/PropertyAndEquipment" xlink:href="amrc-20181231.xsd#PropertyAndEquipment" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/PropertyAndEquipmentDetails" xlink:href="amrc-20181231.xsd#PropertyAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/PropertyAndEquipmentTables" xlink:href="amrc-20181231.xsd#PropertyAndEquipmentTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/QuarterlyInformationUnaudited" xlink:href="amrc-20181231.xsd#QuarterlyInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/QuarterlyInformationUnauditedDetails" xlink:href="amrc-20181231.xsd#QuarterlyInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/QuarterlyInformationUnauditedTables" xlink:href="amrc-20181231.xsd#QuarterlyInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomers" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomers" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomersAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomersAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomersContractBalancesDetails" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomersContractBalancesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomersDisaggregationOfRevenueDetails" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomersDisaggregationOfRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomersSummaryOfImpactOfAdoptionDetails" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomersSummaryOfImpactOfAdoptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/RevenueFromContractsWithCustomersTables" xlink:href="amrc-20181231.xsd#RevenueFromContractsWithCustomersTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/StockIncentivePlan" xlink:href="amrc-20181231.xsd#StockIncentivePlan" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/StockIncentivePlanAdditionalInformationDetails" xlink:href="amrc-20181231.xsd#StockIncentivePlanAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/StockIncentivePlanFairValueAssumptionsDetails" xlink:href="amrc-20181231.xsd#StockIncentivePlanFairValueAssumptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/StockIncentivePlanStockOptionsActivityDetails" xlink:href="amrc-20181231.xsd#StockIncentivePlanStockOptionsActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/StockIncentivePlanTables" xlink:href="amrc-20181231.xsd#StockIncentivePlanTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SubsequentEvents" xlink:href="amrc-20181231.xsd#SubsequentEvents" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesAmountsRelatedToSaleLeasebackDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesAmountsRelatedToSaleLeasebackDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesDerivativeInstrumentsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesDerivativeInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesEnergyAssetsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesEnergyAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndIntangibleAssetsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesGoodwillAndIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPrinciplesOfConsolidationDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesPrinciplesOfConsolidationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesProjectDevelopmentCostsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesProjectDevelopmentCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRedeemableNonControllingInterestDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesRedeemableNonControllingInterestDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRestrictedCashDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesRestrictedCashDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesSalesLeasebackDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesSalesLeasebackDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesShareRepurchaseProgramDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesShareRepurchaseProgramDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationExpenseDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesStockBasedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:href="amrc-20181231.xsd#SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" 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.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3410618DED40F9130B3959725B6B641B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3410618DED40F9130B3959725B6B641B" 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_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_E702A81646AF267DFA4E59725B6BFE67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3410618DED40F9130B3959725B6B641B" xlink:to="loc_us-gaap_StatementScenarioAxis_E702A81646AF267DFA4E59725B6BFE67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_2A146434E6C9D1D3F61659725B6BE456_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_E702A81646AF267DFA4E59725B6BFE67" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_2A146434E6C9D1D3F61659725B6BE456_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_2A146434E6C9D1D3F61659725B6BE456" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_E702A81646AF267DFA4E59725B6BFE67" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_2A146434E6C9D1D3F61659725B6BE456" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioPlanMember" xlink:label="loc_us-gaap_ScenarioPlanMember_857ED3556843F7FBE72459725B6C17F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_2A146434E6C9D1D3F61659725B6BE456" xlink:to="loc_us-gaap_ScenarioPlanMember_857ED3556843F7FBE72459725B6C17F7" 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_534F722DD48D21848A7B59725B6C0475" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3410618DED40F9130B3959725B6B641B" xlink:to="loc_srt_RangeAxis_534F722DD48D21848A7B59725B6C0475" 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_6B4E230C03DFF378CD3959725B6C0330_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_534F722DD48D21848A7B59725B6C0475" xlink:to="loc_srt_RangeMember_6B4E230C03DFF378CD3959725B6C0330_default" 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_6B4E230C03DFF378CD3959725B6C0330" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_534F722DD48D21848A7B59725B6C0475" xlink:to="loc_srt_RangeMember_6B4E230C03DFF378CD3959725B6C0330" 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_E8286AA148E45323604659725B6D5DED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6B4E230C03DFF378CD3959725B6C0330" xlink:to="loc_srt_MinimumMember_E8286AA148E45323604659725B6D5DED" 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_F3D053B505344A60F71159725B6D1820" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6B4E230C03DFF378CD3959725B6C0330" xlink:to="loc_srt_MaximumMember_F3D053B505344A60F71159725B6D1820" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_2F2BE9C85819A5891F0A59725B6D8209" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3410618DED40F9130B3959725B6B641B" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_2F2BE9C85819A5891F0A59725B6D8209" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2F2BE9C85819A5891F0A59725B6D8209" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2F2BE9C85819A5891F0A59725B6D8209" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UndisclosedNameofAcquireeOneMember" xlink:label="loc_amrc_UndisclosedNameofAcquireeOneMember_17F8B44290B5E00A154259725B6D1927" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:to="loc_amrc_UndisclosedNameofAcquireeOneMember_17F8B44290B5E00A154259725B6D1927" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UndisclosedNameofAcquireeTwoMember" xlink:label="loc_amrc_UndisclosedNameofAcquireeTwoMember_0776A7B202193D50A07F59725B6EB75A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:to="loc_amrc_UndisclosedNameofAcquireeTwoMember_0776A7B202193D50A07F59725B6EB75A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarPhotovoltaicProjectsMember" xlink:label="loc_amrc_SolarPhotovoltaicProjectsMember_D71B8EDE46E8D14AE11859725B6EF431" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:to="loc_amrc_SolarPhotovoltaicProjectsMember_D71B8EDE46E8D14AE11859725B6EF431" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarProjects2018Member" xlink:label="loc_amrc_SolarProjects2018Member_828CE477BD43C9F69C9059725B6EF70A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_644D33DB6E5E5E179EFA59725B6DAAE7" xlink:to="loc_amrc_SolarProjects2018Member_828CE477BD43C9F69C9059725B6EF70A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_2EEF7F9917D475615DCA59725B6F2E9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_2EEF7F9917D475615DCA59725B6F2E9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_0B5ABD56D738A9F4869E59725B6F8F64" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_0B5ABD56D738A9F4869E59725B6F8F64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_F0C20CD4483F871B5AF359725B6F50F3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_F0C20CD4483F871B5AF359725B6F50F3" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod_848BC06002BB57CC77A759725B6FB7B2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod_848BC06002BB57CC77A759725B6FB7B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_0961D54656C31F37C47259725B6F8F58" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_0961D54656C31F37C47259725B6F8F58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_59007CFC278CE088636659786D2C422C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_59007CFC278CE088636659786D2C422C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D75E631466E3A58AFA8059725B70EA19" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D75E631466E3A58AFA8059725B70EA19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_523D0717A323A90B19AF59725B706946" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_523D0717A323A90B19AF59725B706946" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationLiabilityRevenueTargetsPeriod" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationLiabilityRevenueTargetsPeriod_1E3B31F78CC7C598FC7459725B705A94" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationLiabilityRevenueTargetsPeriod_1E3B31F78CC7C598FC7459725B705A94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability_CC18094898B8D001283C59725B7075C8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability_CC18094898B8D001283C59725B7075C8" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationNumberOfProjectsAcquired" xlink:label="loc_amrc_BusinessCombinationNumberOfProjectsAcquired_F7EEE1A20A5D47426A6B59725B709666" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_amrc_BusinessCombinationNumberOfProjectsAcquired_F7EEE1A20A5D47426A6B59725B709666" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers" xlink:label="loc_amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers_B28B94581B54FBC1626159725B712168" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_77028C76C8D73493351259725B6E510F" xlink:to="loc_amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers_B28B94581B54FBC1626159725B712168" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsPurchasePriceAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_C0A49262607C98755AF631CD96FAB04B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_C0A49262607C98755AF631CD96FAB04B" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_40A20666EB8AC366B78131CD96FB32AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_C0A49262607C98755AF631CD96FAB04B" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_40A20666EB8AC366B78131CD96FB32AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19D0CC7106D0623C3CAC31CD96FBC1F1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_40A20666EB8AC366B78131CD96FB32AC" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19D0CC7106D0623C3CAC31CD96FBC1F1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19D0CC7106D0623C3CAC31CD96FBC1F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_40A20666EB8AC366B78131CD96FB32AC" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19D0CC7106D0623C3CAC31CD96FBC1F1" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarPhotovoltaicProjectsAndEEXMember" xlink:label="loc_amrc_SolarPhotovoltaicProjectsAndEEXMember_A165F02C0A174B4CF29131CD96FB0F6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_19D0CC7106D0623C3CAC31CD96FBC1F1" xlink:to="loc_amrc_SolarPhotovoltaicProjectsAndEEXMember_A165F02C0A174B4CF29131CD96FB0F6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_C9016EE426719D5CDCCA31CD96FC96F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_C9016EE426719D5CDCCA31CD96FC96F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_7DB8370BD0DF130350E331CD96FCF781" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_7DB8370BD0DF130350E331CD96FCF781" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_92B7B95DC93647DFF67D31CD96FC0FEE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_92B7B95DC93647DFF67D31CD96FC0FEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_F36DF460DE0A2F7609F531CD96FCBAFB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_F36DF460DE0A2F7609F531CD96FCBAFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_7768E01A7ABD9BE2573F31CD96FCCB42" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_Goodwill_7768E01A7ABD9BE2573F31CD96FCCB42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_AD95AA2E07EEDCFC6E2C31CD96FD3A8B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_AD95AA2E07EEDCFC6E2C31CD96FD3A8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A655B5DE88AB6C95F85E31CD96FDA295" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A655B5DE88AB6C95F85E31CD96FDA295" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_4B7D2DD7EF6CBE4BCA6031CD96FD5307" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_4B7D2DD7EF6CBE4BCA6031CD96FD5307" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_17FAB499FCAF3FBD387C31CD96FDAE62" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_17FAB499FCAF3FBD387C31CD96FDAE62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7772F544C04A5FABC77831CD96FD5B5D" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7E0FE4799FA67AAB91E631CD96FB1930" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7772F544C04A5FABC77831CD96FD5B5D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessAcquisitionsAndRelatedTransactionsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessSegmentInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessSegmentInformationAdditionalInformationDetails" 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_230130D54FA4400E8BC8595B3A599ECB" 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_B9D00604551EC1A61F2D595B3A570E82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_230130D54FA4400E8BC8595B3A599ECB" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" 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_A356BA44F919F6659257595B3A58B4ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_A356BA44F919F6659257595B3A58B4ED" 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_E3ABC5FE9634ACCC666A595B3A58A041_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A356BA44F919F6659257595B3A58B4ED" xlink:to="loc_us-gaap_SegmentDomain_E3ABC5FE9634ACCC666A595B3A58A041_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_E3ABC5FE9634ACCC666A595B3A58A041" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A356BA44F919F6659257595B3A58B4ED" xlink:to="loc_us-gaap_SegmentDomain_E3ABC5FE9634ACCC666A595B3A58A041" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaMember" xlink:label="loc_amrc_CanadaMember_B77397786A9F903D71C1595B3A590391" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E3ABC5FE9634ACCC666A595B3A58A041" xlink:to="loc_amrc_CanadaMember_B77397786A9F903D71C1595B3A590391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_F69AD3BE69CC1F61A015595B3A59407B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" xlink:to="loc_srt_ConsolidationItemsAxis_F69AD3BE69CC1F61A015595B3A59407B" 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_A7DAE9E3CD2D53352AF5595B3A593B18_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_F69AD3BE69CC1F61A015595B3A59407B" xlink:to="loc_srt_ConsolidationItemsDomain_A7DAE9E3CD2D53352AF5595B3A593B18_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_A7DAE9E3CD2D53352AF5595B3A593B18" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_F69AD3BE69CC1F61A015595B3A59407B" xlink:to="loc_srt_ConsolidationItemsDomain_A7DAE9E3CD2D53352AF5595B3A593B18" 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_5D6CF56452DBC6B23973595B3A59DFF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_A7DAE9E3CD2D53352AF5595B3A593B18" xlink:to="loc_us-gaap_OperatingSegmentsMember_5D6CF56452DBC6B23973595B3A59DFF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srt_MajorCustomersAxis_6C2437E430BC2AA511BF595B3A5983A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" xlink:to="loc_srt_MajorCustomersAxis_6C2437E430BC2AA511BF595B3A5983A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_6C2437E430BC2AA511BF595B3A5983A1" xlink:to="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_6C2437E430BC2AA511BF595B3A5983A1" xlink:to="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CustomerWhoDeclaredBankruptcyMember" xlink:label="loc_amrc_CustomerWhoDeclaredBankruptcyMember_93DA935E020849ACF4CA595B3A592C34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963" xlink:to="loc_amrc_CustomerWhoDeclaredBankruptcyMember_93DA935E020849ACF4CA595B3A592C34" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariousGovernmentsMember" xlink:label="loc_amrc_VariousGovernmentsMember_36AE309AA70591F98DED595B3A598ECD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963" xlink:to="loc_amrc_VariousGovernmentsMember_36AE309AA70591F98DED595B3A598ECD" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_U.S.FederalGovernmentMember" xlink:label="loc_amrc_U.S.FederalGovernmentMember_8A9FAAD6B1F3942D1402595B3A599A58" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_CA9190BD461A3A6EEB8B595B3A59C963" xlink:to="loc_amrc_U.S.FederalGovernmentMember_8A9FAAD6B1F3942D1402595B3A599A58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_94C6743D9DCDF967A85A595B3A598291" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_94C6743D9DCDF967A85A595B3A598291" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_AEDC0714FBA6049D5DA3595B3A599D55_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_94C6743D9DCDF967A85A595B3A598291" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_AEDC0714FBA6049D5DA3595B3A599D55_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_AEDC0714FBA6049D5DA3595B3A599D55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_94C6743D9DCDF967A85A595B3A598291" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_AEDC0714FBA6049D5DA3595B3A599D55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_F2B79899075527E180D0595B3A596C18" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_AEDC0714FBA6049D5DA3595B3A599D55" xlink:to="loc_us-gaap_SalesRevenueNetMember_F2B79899075527E180D0595B3A596C18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_D1F9D6C5E0C24512C37B595B3A597A78" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B9D00604551EC1A61F2D595B3A570E82" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_D1F9D6C5E0C24512C37B595B3A597A78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_CC53F5E52D2F06E92608595B3A59FEEB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D1F9D6C5E0C24512C37B595B3A597A78" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_CC53F5E52D2F06E92608595B3A59FEEB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_CC53F5E52D2F06E92608595B3A59FEEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D1F9D6C5E0C24512C37B595B3A597A78" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_CC53F5E52D2F06E92608595B3A59FEEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_458DE668E5F0C5097686595B3A59C1C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_CC53F5E52D2F06E92608595B3A59FEEB" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_458DE668E5F0C5097686595B3A59C1C3" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UnallocatedCorporateExpenseSegment" xlink:label="loc_amrc_UnallocatedCorporateExpenseSegment_C1AA5EB81FEA3027E87F595B3A59E735" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_230130D54FA4400E8BC8595B3A599ECB" xlink:to="loc_amrc_UnallocatedCorporateExpenseSegment_C1AA5EB81FEA3027E87F595B3A59E735" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDebtExpense" xlink:label="loc_us-gaap_InterestAndDebtExpense_4B6FEDA4711DB9DFC1E1595B3A5957D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_230130D54FA4400E8BC8595B3A599ECB" xlink:to="loc_us-gaap_InterestAndDebtExpense_4B6FEDA4711DB9DFC1E1595B3A5957D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_81F1468469F59048CF3F595B3A593F68" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_230130D54FA4400E8BC8595B3A599ECB" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_81F1468469F59048CF3F595B3A593F68" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessSegmentInformationRevenueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_E61FE3A9F164DAA206C416C179096202" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_2954DD2A265DE0C8C6D216C17905B232" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_E61FE3A9F164DAA206C416C179096202" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_2954DD2A265DE0C8C6D216C17905B232" 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_9479C44BB2E398027C2916C17906B7C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_2954DD2A265DE0C8C6D216C17905B232" xlink:to="loc_srt_ProductOrServiceAxis_9479C44BB2E398027C2916C17906B7C7" 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_F14898B07631962883ED16C1790698C4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_9479C44BB2E398027C2916C17906B7C7" xlink:to="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4_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_F14898B07631962883ED16C1790698C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_9479C44BB2E398027C2916C17906B7C7" xlink:to="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ProjectsMember" xlink:label="loc_amrc_ProjectsMember_3BAE7542B1C31EA47A8D16C17907F5FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:to="loc_amrc_ProjectsMember_3BAE7542B1C31EA47A8D16C17907F5FD" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_GeneratingAssetsMember" xlink:label="loc_amrc_GeneratingAssetsMember_EBDECA86E2C4EA0F8C4E16C179078D08" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:to="loc_amrc_GeneratingAssetsMember_EBDECA86E2C4EA0F8C4E16C179078D08" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OperationsandMaintenanceMember" xlink:label="loc_amrc_OperationsandMaintenanceMember_6208D8E30494331F1BB816C1790738DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:to="loc_amrc_OperationsandMaintenanceMember_6208D8E30494331F1BB816C1790738DC" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_IntegratedPVMember" xlink:label="loc_amrc_IntegratedPVMember_EF93CC0CCD66B98F76F816C17908D4F4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:to="loc_amrc_IntegratedPVMember_EF93CC0CCD66B98F76F816C17908D4F4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_AllOtherMember" xlink:label="loc_amrc_AllOtherMember_7C0BA7EC4FA0D8B0B28116C179091496" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_F14898B07631962883ED16C1790698C4" xlink:to="loc_amrc_AllOtherMember_7C0BA7EC4FA0D8B0B28116C179091496" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_22F05543342B3FD708E416D366A34145" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_E61FE3A9F164DAA206C416C179096202" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_22F05543342B3FD708E416D366A34145" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessSegmentInformationSegmentInformationDetails" 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_8F71AD4434A087EE1A8416C179229B2D" 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_76F054B1F3611457F3A616C1791ED3B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_76F054B1F3611457F3A616C1791ED3B8" 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_9A55014EA8FEF4064B7F16C1791F660A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_76F054B1F3611457F3A616C1791ED3B8" xlink:to="loc_srt_ConsolidationItemsAxis_9A55014EA8FEF4064B7F16C1791F660A" 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_2D1FE6308122DB4A46BD16C1791F1355_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_9A55014EA8FEF4064B7F16C1791F660A" xlink:to="loc_srt_ConsolidationItemsDomain_2D1FE6308122DB4A46BD16C1791F1355_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_2D1FE6308122DB4A46BD16C1791F1355" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_9A55014EA8FEF4064B7F16C1791F660A" xlink:to="loc_srt_ConsolidationItemsDomain_2D1FE6308122DB4A46BD16C1791F1355" 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_594C2EA252C0221EA20D16C1791F2353" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_2D1FE6308122DB4A46BD16C1791F1355" xlink:to="loc_us-gaap_OperatingSegmentsMember_594C2EA252C0221EA20D16C1791F2353" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationEliminationsMember" xlink:label="loc_srt_ConsolidationEliminationsMember_E7A25A90DCE656C12FE816C1792049EF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_2D1FE6308122DB4A46BD16C1791F1355" xlink:to="loc_srt_ConsolidationEliminationsMember_E7A25A90DCE656C12FE816C1792049EF" 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_D01AA7F7E9FB981CD71716C17920EB6C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_76F054B1F3611457F3A616C1791ED3B8" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_D01AA7F7E9FB981CD71716C17920EB6C" 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_FDC5FE146297BDFCFEBF16C17920DE87_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D01AA7F7E9FB981CD71716C17920EB6C" xlink:to="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87_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_FDC5FE146297BDFCFEBF16C17920DE87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D01AA7F7E9FB981CD71716C17920EB6C" xlink:to="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherUSRegionsMember" xlink:label="loc_amrc_OtherUSRegionsMember_F3866A701D2114F8614916C1792002AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:to="loc_amrc_OtherUSRegionsMember_F3866A701D2114F8614916C1792002AA" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_USFederalMember" xlink:label="loc_amrc_USFederalMember_C88DB3F951C561F1814016C179214671" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:to="loc_amrc_USFederalMember_C88DB3F951C561F1814016C179214671" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaMember" xlink:label="loc_amrc_CanadaMember_6936CF3992D2F2175D4E16C17921AE77" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:to="loc_amrc_CanadaMember_6936CF3992D2F2175D4E16C17921AE77" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SmallScaleInfrastructureMember" xlink:label="loc_amrc_SmallScaleInfrastructureMember_E0A085987CD57423614B16C17921C44F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:to="loc_amrc_SmallScaleInfrastructureMember_E0A085987CD57423614B16C17921C44F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_47749334B38EAC7EB34716C179219BE2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FDC5FE146297BDFCFEBF16C17920DE87" xlink:to="loc_us-gaap_CorporateAndOtherMember_47749334B38EAC7EB34716C179219BE2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8F9724D8B566784C598216D2C267435B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8F9724D8B566784C598216D2C267435B" 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_0FCED1F5F896902585C716C17922EE61" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_us-gaap_InterestIncomeOperating_0FCED1F5F896902585C716C17922EE61" 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_E90FD1973787FCA263A416C17928F5B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_us-gaap_InterestExpense_E90FD1973787FCA263A416C17928F5B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_E8B89DD35FA75E727F9B16C17928CBD7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_E8B89DD35FA75E727F9B16C17928CBD7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UnallocatedCorporateExpenseSegment" xlink:label="loc_amrc_UnallocatedCorporateExpenseSegment_4510D78284B37A6B36A316C179289E21" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_amrc_UnallocatedCorporateExpenseSegment_4510D78284B37A6B36A316C179289E21" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_IncomeBeforeIncomeTaxesAndUnallocatedCorporateExpenses" xlink:label="loc_amrc_IncomeBeforeIncomeTaxesAndUnallocatedCorporateExpenses_B21E212E85B8CC213FF816C179291EE8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8F71AD4434A087EE1A8416C179229B2D" xlink:to="loc_amrc_IncomeBeforeIncomeTaxesAndUnallocatedCorporateExpenses_B21E212E85B8CC213FF816C179291EE8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/BusinessSegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/CommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_2B1D499963B5C7C215885DCCF490C1C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_us-gaap_LossContingenciesTable_2B1D499963B5C7C215885DCCF490C1C0" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1F8A9C2A873E12AD8ABE5DCCF4907532" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2B1D499963B5C7C215885DCCF490C1C0" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1F8A9C2A873E12AD8ABE5DCCF4907532" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1F8A9C2A873E12AD8ABE5DCCF4907532" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1F8A9C2A873E12AD8ABE5DCCF4907532" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UndisclosedNameofAcquireeOneMember" xlink:label="loc_amrc_UndisclosedNameofAcquireeOneMember_51397A48532731E3E3645DCCF490798D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8" xlink:to="loc_amrc_UndisclosedNameofAcquireeOneMember_51397A48532731E3E3645DCCF490798D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UndisclosedNameofAcquireeTwoMember" xlink:label="loc_amrc_UndisclosedNameofAcquireeTwoMember_AF7A217E08296D80D7035DCCF4A0E8E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8" xlink:to="loc_amrc_UndisclosedNameofAcquireeTwoMember_AF7A217E08296D80D7035DCCF4A0E8E1" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UndisclosedNameOfAcquireeThreeMember" xlink:label="loc_amrc_UndisclosedNameOfAcquireeThreeMember_6E1C98F59D8B3179A5255DCCF4A05FEE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D42347696C9C3310DEC25DCCF49087E8" xlink:to="loc_amrc_UndisclosedNameOfAcquireeThreeMember_6E1C98F59D8B3179A5255DCCF4A05FEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesRentExpenseNet" xlink:label="loc_us-gaap_OperatingLeasesRentExpenseNet_9AFEF67BC66D1036DE2C5DCCF4A051FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_us-gaap_OperatingLeasesRentExpenseNet_9AFEF67BC66D1036DE2C5DCCF4A051FF" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivables" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivables_8EBADBE5D9CEEA1160465DCCF4A06A0D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivables_8EBADBE5D9CEEA1160465DCCF4A06A0D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod_5723375E6757CAC17F875DCCF4A0CAE8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationLiabilityAcquiredReceivablesPaymentPeriod_5723375E6757CAC17F875DCCF4A0CAE8" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationLiabilityRevenueEarnOutsPaymentPeriod" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationLiabilityRevenueEarnOutsPaymentPeriod_4C437AE4CF4A95F4F14B5DCCF4A05440" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationLiabilityRevenueEarnOutsPaymentPeriod_4C437AE4CF4A95F4F14B5DCCF4A05440" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability_8D2DC0D7A312C8F907755DCCF4A0F602" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContingentLiability_8D2DC0D7A312C8F907755DCCF4A0F602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_0C8385B34E06CBCAFBF85DCCF4A09DB6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_C499044FD98C13124FF65DCCF4A0A432" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_0C8385B34E06CBCAFBF85DCCF4A09DB6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/CommitmentsAndContingenciesOperatingLeasesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.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_4379CD96EFEB7D8BB2A331CD9799E6D0" 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_1FFEE84F3E892D83693A31CD9798EC0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4379CD96EFEB7D8BB2A331CD9799E6D0" xlink:to="loc_us-gaap_StatementTable_1FFEE84F3E892D83693A31CD9798EC0E" 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_2FB86EF1990B3418CD8531CD9798806C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1FFEE84F3E892D83693A31CD9798EC0E" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2FB86EF1990B3418CD8531CD9798806C" 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_8F197260F3D77551ABE931CD979907C7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2FB86EF1990B3418CD8531CD9798806C" xlink:to="loc_us-gaap_ClassOfStockDomain_8F197260F3D77551ABE931CD979907C7_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_8F197260F3D77551ABE931CD979907C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2FB86EF1990B3418CD8531CD9798806C" xlink:to="loc_us-gaap_ClassOfStockDomain_8F197260F3D77551ABE931CD979907C7" 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_8075A578BF5283C7218D31CD97994B1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_8F197260F3D77551ABE931CD979907C7" xlink:to="loc_us-gaap_CommonClassAMember_8075A578BF5283C7218D31CD97994B1D" 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_6DBB013D0820BC870D8531CD97995BC9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_8F197260F3D77551ABE931CD979907C7" xlink:to="loc_us-gaap_CommonClassBMember_6DBB013D0820BC870D8531CD97995BC9" 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_235AAC12B09669F72C9B31CD979A8C37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4379CD96EFEB7D8BB2A331CD9799E6D0" xlink:to="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" 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_F50C331E9C35F932234B31CD979A8F19" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_F50C331E9C35F932234B31CD979A8F19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_C0466938FF07F13AA06B31CD979AF259" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_C0466938FF07F13AA06B31CD979AF259" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNet" xlink:label="loc_us-gaap_AccountsReceivableNet_C25478D144271415C2C331CD979A9C88" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_AccountsReceivableNet_C25478D144271415C2C331CD979A9C88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractReceivableRetainage" xlink:label="loc_us-gaap_ContractReceivableRetainage_1ECBD9713D99866D90FB31CD979B05C6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_ContractReceivableRetainage_1ECBD9713D99866D90FB31CD979B05C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_6D7FA994924AB3EA839631CD979BE01F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_6D7FA994924AB3EA839631CD979BE01F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_6C06D5A48F5F596DD9BC31CD979B9920" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_InventoryNet_6C06D5A48F5F596DD9BC31CD979B9920" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_EAD36ADEAF6C98E4028331CD979B1AEB" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_EAD36ADEAF6C98E4028331CD979B1AEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxReceivable" xlink:label="loc_us-gaap_IncomeTaxReceivable_172CEA54997C3B0F374431CD979BA1A6" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_IncomeTaxReceivable_172CEA54997C3B0F374431CD979BA1A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="loc_us-gaap_ConstructionInProgressGross_D3BFE09ED4ABC70C191631CD979B09CD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_ConstructionInProgressGross_D3BFE09ED4ABC70C191631CD979B09CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_6C9ECA2F1D65984FE5D231CD979C1A60" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_1E13D342C58EC64A615E31CD979AC8DA" xlink:to="loc_us-gaap_AssetsCurrent_6C9ECA2F1D65984FE5D231CD979C1A60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetNoncurrent" xlink:label="loc_us-gaap_AccountsReceivableNetNoncurrent_2AB4C2DF2BA6A0B34E1831CD979C7010" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_AccountsReceivableNetNoncurrent_2AB4C2DF2BA6A0B34E1831CD979C7010" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_352DAE110442C838F3D131CD979CB859" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_352DAE110442C838F3D131CD979CB859" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_F3E639148A2A7AC9E37931CD979CA81A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_F3E639148A2A7AC9E37931CD979CA81A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_DA99B7F130081B36F9D331CD979C9FD6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_Goodwill_DA99B7F130081B36F9D331CD979C9FD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_7220194288D3D3C7FF3031CD979C92DE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_7220194288D3D3C7FF3031CD979C92DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_F434A2B13AB5978E8A5831CD979D3A4D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_F434A2B13AB5978E8A5831CD979D3A4D" 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_43D4CD348F84DF04067931CD979D41EE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_235AAC12B09669F72C9B31CD979A8C37" xlink:to="loc_us-gaap_Assets_43D4CD348F84DF04067931CD979D41EE" 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_976A787BEDAAFC49030731CD979D68DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4379CD96EFEB7D8BB2A331CD9799E6D0" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_69835F6B8F6E96BA85BB31CD979D9C70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_69835F6B8F6E96BA85BB31CD979D9C70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_CCA465AF08088E03783631CD979EAA95" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_AccountsPayableCurrent_CCA465AF08088E03783631CD979EAA95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_1D4FF4E528814A9084E431CD979EFC1B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_1D4FF4E528814A9084E431CD979EFC1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiabilityCurrent" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_3ADE42F22FF8E7C2963131CD979E357E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_3ADE42F22FF8E7C2963131CD979E357E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TaxesPayableCurrent" xlink:label="loc_us-gaap_TaxesPayableCurrent_5CBC697C66B78CED551D31CD979E38D8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_TaxesPayableCurrent_5CBC697C66B78CED551D31CD979E38D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_EFE8D96F93A1C9AFC76E31CD979E4CCC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_B4038C2D5CB99290310031CD979D2F92" xlink:to="loc_us-gaap_LiabilitiesCurrent_EFE8D96F93A1C9AFC76E31CD979E4CCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_D8157DB8E68EB51F070D31CD979E2822" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_D8157DB8E68EB51F070D31CD979E2822" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesNoncurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesNoncurrent_044CF2B39728CA6FD26C31CD979F74EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesNoncurrent_044CF2B39728CA6FD26C31CD979F74EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_DB2A00D27930C594A78431CD979F1F93" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_DB2A00D27930C594A78431CD979F1F93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherDeferredCreditsNoncurrent" xlink:label="loc_us-gaap_OtherDeferredCreditsNoncurrent_8D2E0C9FB36411851BC131CD979FE0C0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_OtherDeferredCreditsNoncurrent_8D2E0C9FB36411851BC131CD979FE0C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_A9C5975990011ED8346831CD979FF32D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_A9C5975990011ED8346831CD979FF32D" 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_34D6923ABCE49E9D005D31CD979F6BE7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_CommitmentsAndContingencies_34D6923ABCE49E9D005D31CD979F6BE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_A230A22AB8B7B580E96731CD979FA733" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_A230A22AB8B7B580E96731CD979FA733" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityNoteAbstract" xlink:label="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" 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_351E380793D5D05BEB0A31CD97A0B2BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_PreferredStockValueOutstanding_351E380793D5D05BEB0A31CD97A0B2BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValueOutstanding" xlink:label="loc_us-gaap_CommonStockValueOutstanding_5FB062315D8BC22C653331CD97A03C38" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_CommonStockValueOutstanding_5FB062315D8BC22C653331CD97A03C38" 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_757794030961398AF86031CD97A09BE9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_AdditionalPaidInCapital_757794030961398AF86031CD97A09BE9" 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_B5D595FB11AEFCE7B15C31CD97A0716F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_B5D595FB11AEFCE7B15C31CD97A0716F" 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_78BF202A3156CE00D91131CD97A0DECA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_78BF202A3156CE00D91131CD97A0DECA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_55341C09FBC249CB408131CD97A13CDB" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_TreasuryStockValue_55341C09FBC249CB408131CD97A13CDB" 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_3F9FAB61A25156809DA031CD97A18BE2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityNoteAbstract_69DC4AFB5EB379801C2A31CD979F58AD" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_3F9FAB61A25156809DA031CD97A18BE2" 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_A84A459AA9A8ABF739B331CD97A17249" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_976A787BEDAAFC49030731CD979D68DD" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_A84A459AA9A8ABF739B331CD97A17249" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.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_B8B977EB2C17CD1176ED31CD9785D197" 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_9251668594BACF69E34431CD9783A50F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_StatementTable_9251668594BACF69E34431CD9783A50F" 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_3F8F3BDDB34418A5018F31CD9784DFA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_9251668594BACF69E34431CD9783A50F" xlink:to="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_3F8F3BDDB34418A5018F31CD9784DFA4" 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_8DC089E93EA2384097C231CD9784A53D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_3F8F3BDDB34418A5018F31CD9784DFA4" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_8DC089E93EA2384097C231CD9784A53D_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_8DC089E93EA2384097C231CD9784A53D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis_3F8F3BDDB34418A5018F31CD9784DFA4" xlink:to="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_8DC089E93EA2384097C231CD9784A53D" 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_B465A35A96B03C19F81631CD9784B059" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassificationOfVariableInterestEntityDomain_8DC089E93EA2384097C231CD9784A53D" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_B465A35A96B03C19F81631CD9784B059" 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_0C858E4D79DD7422BBB531CD9785C68B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_9251668594BACF69E34431CD9783A50F" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0C858E4D79DD7422BBB531CD9785C68B" 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_FAD460B807145B3D130B31CD9785DECA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0C858E4D79DD7422BBB531CD9785C68B" xlink:to="loc_us-gaap_ClassOfStockDomain_FAD460B807145B3D130B31CD9785DECA_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_FAD460B807145B3D130B31CD9785DECA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0C858E4D79DD7422BBB531CD9785C68B" xlink:to="loc_us-gaap_ClassOfStockDomain_FAD460B807145B3D130B31CD9785DECA" 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_ADE5517945478864E3DF31CD9785D0C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_FAD460B807145B3D130B31CD9785DECA" xlink:to="loc_us-gaap_CommonClassAMember_ADE5517945478864E3DF31CD9785D0C8" 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_9048D73240BCF720227A31CD97854566" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_FAD460B807145B3D130B31CD9785DECA" xlink:to="loc_us-gaap_CommonClassBMember_9048D73240BCF720227A31CD97854566" 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_400A907A09D46665FABE31CD9786D342" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_400A907A09D46665FABE31CD9786D342" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_6CAE5DD73410624060C831CD9786E751" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_6CAE5DD73410624060C831CD9786E751" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNet" xlink:label="loc_us-gaap_AccountsReceivableNet_E9771F3A81E51C250DA931CD9786958C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_AccountsReceivableNet_E9771F3A81E51C250DA931CD9786958C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_D9E56EC2148F178A657831CD97863884" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_D9E56EC2148F178A657831CD97863884" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_EFD89C21A9478BCBE8FA31CD978649D3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_EFD89C21A9478BCBE8FA31CD978649D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_28479B3D0BE5812D506A31CD9786164A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_28479B3D0BE5812D506A31CD9786164A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_C2CE4490D5203402245A31CD97874A42" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_C2CE4490D5203402245A31CD97874A42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_AD100506DC7BAFF0B79A31CD9787CA63" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_AD100506DC7BAFF0B79A31CD9787CA63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_A3A5D8C20E34CAA5FA7E31CD97872600" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_AccountsPayableCurrent_A3A5D8C20E34CAA5FA7E31CD97872600" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_42293CF7332FCB1BF5EB31CD97876AA9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_42293CF7332FCB1BF5EB31CD97876AA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_19A9EC3B083717C58F1A31CD9787640B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_19A9EC3B083717C58F1A31CD9787640B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_4CA3AAAF9F0F87107A1831CD9787E167" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_4CA3AAAF9F0F87107A1831CD9787E167" 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_C257CFBC7765D83AE68E31CD978884E6" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_C257CFBC7765D83AE68E31CD978884E6" 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_A4D1A48A97AC3151184D31CD9788FF25" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_A4D1A48A97AC3151184D31CD9788FF25" 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_EC2481CBFFD655E6E10631CD97888078" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PreferredStockSharesIssued_EC2481CBFFD655E6E10631CD97888078" 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_101F98F3861005A2463931CD9788D63C" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_101F98F3861005A2463931CD9788D63C" 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_B0C4E49C522DDC45A21831CD97883A94" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_B0C4E49C522DDC45A21831CD97883A94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_2D10025450DC7CCEF87231CD97889446" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_2D10025450DC7CCEF87231CD97889446" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_D67D8EEE8ACC86D4897631CD97885189" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_CommonStockSharesIssued_D67D8EEE8ACC86D4897631CD97885189" 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_D6CDEA07CAD792E17D5F31CD9789EF42" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_D6CDEA07CAD792E17D5F31CD9789EF42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_3B727219D23B00F31F6531CD9789D313" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B8B977EB2C17CD1176ED31CD9785D197" xlink:to="loc_us-gaap_TreasuryStockShares_3B727219D23B00F31F6531CD9789D313" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementOfComprehensiveIncomeLossParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquity" 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_256B3CE732EA8C657D925928E12890B1" 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_814B746154AFED7BE82D5928E1239490" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_256B3CE732EA8C657D925928E12890B1" xlink:to="loc_us-gaap_StatementTable_814B746154AFED7BE82D5928E1239490" 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_887C94DF57953D6EDC465928E1230155" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_814B746154AFED7BE82D5928E1239490" xlink:to="loc_us-gaap_StatementClassOfStockAxis_887C94DF57953D6EDC465928E1230155" 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_070905B4F1B883E30C445928E1236C8C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_887C94DF57953D6EDC465928E1230155" xlink:to="loc_us-gaap_ClassOfStockDomain_070905B4F1B883E30C445928E1236C8C_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_070905B4F1B883E30C445928E1236C8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_887C94DF57953D6EDC465928E1230155" xlink:to="loc_us-gaap_ClassOfStockDomain_070905B4F1B883E30C445928E1236C8C" 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_2516D8FEA1558F8EB4715928E12373EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_070905B4F1B883E30C445928E1236C8C" xlink:to="loc_us-gaap_CommonClassAMember_2516D8FEA1558F8EB4715928E12373EE" 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_5A3DDDA794E89D08885C5928E1236E7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_070905B4F1B883E30C445928E1236C8C" xlink:to="loc_us-gaap_CommonClassBMember_5A3DDDA794E89D08885C5928E1236E7A" 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_AE564AD00326EFF272185928E123E94F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_814B746154AFED7BE82D5928E1239490" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_AE564AD00326EFF272185928E123E94F" 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_71033E5AE5E1150E05535928E1239604_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_AE564AD00326EFF272185928E123E94F" xlink:to="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604_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_71033E5AE5E1150E05535928E1239604" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_AE564AD00326EFF272185928E123E94F" xlink:to="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" 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_6F6F40F5A07B506CBE825928E123BE21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" xlink:to="loc_us-gaap_CommonStockMember_6F6F40F5A07B506CBE825928E123BE21" 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_D0E65EC287DB2E25D2DE5928E127180F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_D0E65EC287DB2E25D2DE5928E127180F" 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_854FFD8179CB6C596DB05928E1275364" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" xlink:to="loc_us-gaap_RetainedEarningsMember_854FFD8179CB6C596DB05928E1275364" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_1C80CD6688A66B57B4935928E12789DA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" xlink:to="loc_us-gaap_TreasuryStockMember_1C80CD6688A66B57B4935928E12789DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_EC32AAB6BE7F6161E65E5928E127373B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_71033E5AE5E1150E05535928E1239604" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_EC32AAB6BE7F6161E65E5928E127373B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9B44EC57F33A94CF8F215928E12728AD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_814B746154AFED7BE82D5928E1239490" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9B44EC57F33A94CF8F215928E12728AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9B44EC57F33A94CF8F215928E12728AD" xlink:to="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9B44EC57F33A94CF8F215928E12728AD" xlink:to="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201609Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201609Member_B7F839FC4D76F4342DC05928E12833DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA" xlink:to="loc_us-gaap_AccountingStandardsUpdate201609Member_B7F839FC4D76F4342DC05928E12833DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201712Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201712Member_F71140F337BE23FC5FEA5928E128C8C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_51F724D1E8F594899B835928E1289FFA" xlink:to="loc_us-gaap_AccountingStandardsUpdate201712Member_F71140F337BE23FC5FEA5928E128C8C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInTemporaryEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_256B3CE732EA8C657D925928E12890B1" xlink:to="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_8C05486D03F686AA10D35928E1284B72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_8C05486D03F686AA10D35928E1284B72" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NoncontrollingInterestIncreaseFromContributionsFromNoncontrollingInterestHolders" xlink:label="loc_amrc_NoncontrollingInterestIncreaseFromContributionsFromNoncontrollingInterestHolders_95A1587DB6C303CB04A45928E128D7F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:to="loc_amrc_NoncontrollingInterestIncreaseFromContributionsFromNoncontrollingInterestHolders_95A1587DB6C303CB04A45928E128D7F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_5AB306FE2D17BA19CF6E5928E128D732" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_5AB306FE2D17BA19CF6E5928E128D732" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TemporaryEquityNetIncome" xlink:label="loc_us-gaap_TemporaryEquityNetIncome_DCCDB438B5A8DC7019DE5928E128D81B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_BD0C3A1B7AB5C6A214395928E128DA63" xlink:to="loc_us-gaap_TemporaryEquityNetIncome_DCCDB438B5A8DC7019DE5928E128D81B" 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_66D8B9C12FF22EBF9C835928E128CE7C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_256B3CE732EA8C657D925928E12890B1" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" 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_C18445760C7D2BCD4C2F5928E12881DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_C18445760C7D2BCD4C2F5928E12881DF" 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_3303CA823410136460FF5928E1284029" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_3303CA823410136460FF5928E1284029" 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_6DBC9C3239EEAC7EE9275928E1287F12" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_6DBC9C3239EEAC7EE9275928E1287F12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_F773A7ADAF4CB606F2ED5928E1287D0F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_F773A7ADAF4CB606F2ED5928E1287D0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_A16C2BC1313DEC4E0C225928E1289884" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_A16C2BC1313DEC4E0C225928E1289884" 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_52F8E9CE05560A227E775928E12839BF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_52F8E9CE05560A227E775928E12839BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_0ABB32D7B0578808BBE35928E12887DD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_0ABB32D7B0578808BBE35928E12887DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_038E4515B8860DC7B0CC5928E128C06F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_038E4515B8860DC7B0CC5928E128C06F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_7B3333BFC48E43CA02715928E12C0CBA" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_7B3333BFC48E43CA02715928E12C0CBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_C044394E4619382233C45928E12C6949" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_C044394E4619382233C45928E12C6949" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_C606ECC24E6B27ED18C55928E12C4C9C" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_C606ECC24E6B27ED18C55928E12C4C9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_9A0091D5A90B892ABBA35928E12C828A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_9A0091D5A90B892ABBA35928E12C828A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_E2C940E5486BD935179E5928E12CB302" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_E2C940E5486BD935179E5928E12CB302" 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_548262CB9B8423AEA4BA5928E12C2F86" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66D8B9C12FF22EBF9C835928E128CE7C" xlink:to="loc_us-gaap_NetIncomeLoss_548262CB9B8423AEA4BA5928E12C2F86" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementsOfChangesInRedeemableNonControllingInterestsAndStockholdersEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/ConsolidatedStatementsOfIncomeLoss" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesAdditionalInformationDetails" 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_2C5F6F6E295AA175850059249B120C35" 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_9892055D6892DE61F01B59249B1283AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9892055D6892DE61F01B59249B1283AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DerivativeInstrumentByContractAxis" xlink:label="loc_amrc_DerivativeInstrumentByContractAxis_50CA32A26AE10049EDF459249B12966D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9892055D6892DE61F01B59249B1283AB" xlink:to="loc_amrc_DerivativeInstrumentByContractAxis_50CA32A26AE10049EDF459249B12966D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DerivativeInstrumentContractDomain" xlink:label="loc_amrc_DerivativeInstrumentContractDomain_7F48BF6226630D5C16EC59249B1230F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_amrc_DerivativeInstrumentByContractAxis_50CA32A26AE10049EDF459249B12966D" xlink:to="loc_amrc_DerivativeInstrumentContractDomain_7F48BF6226630D5C16EC59249B1230F6_default" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DerivativeInstrumentContractDomain" xlink:label="loc_amrc_DerivativeInstrumentContractDomain_7F48BF6226630D5C16EC59249B1230F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_amrc_DerivativeInstrumentByContractAxis_50CA32A26AE10049EDF459249B12966D" xlink:to="loc_amrc_DerivativeInstrumentContractDomain_7F48BF6226630D5C16EC59249B1230F6" 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_F47D64F07879E139394C59249B12ECCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_DerivativeInstrumentContractDomain_7F48BF6226630D5C16EC59249B1230F6" xlink:to="loc_us-gaap_InterestRateSwapMember_F47D64F07879E139394C59249B12ECCD" 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_4D3CB93500813322AFC059249B12BAF6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_9892055D6892DE61F01B59249B1283AB" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_4D3CB93500813322AFC059249B12BAF6" 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_03A8CAF752E5A3610B8759249B123EE1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4D3CB93500813322AFC059249B12BAF6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_03A8CAF752E5A3610B8759249B123EE1_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_03A8CAF752E5A3610B8759249B123EE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4D3CB93500813322AFC059249B12BAF6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_03A8CAF752E5A3610B8759249B123EE1" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapContract3Member" xlink:label="loc_amrc_InterestRateSwapContract3Member_40B82FDEA94A9F7D054D59249B126C94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_03A8CAF752E5A3610B8759249B123EE1" xlink:to="loc_amrc_InterestRateSwapContract3Member_40B82FDEA94A9F7D054D59249B126C94" 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_0F41E6692E9BDC220CDB59249B12CF78" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_03A8CAF752E5A3610B8759249B123EE1" xlink:to="loc_us-gaap_InterestRateSwapMember_0F41E6692E9BDC220CDB59249B12CF78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTermOfContract" xlink:label="loc_us-gaap_DerivativeTermOfContract_B6629ACE0B0D77A6569C5926EB57ADF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_DerivativeTermOfContract_B6629ACE0B0D77A6569C5926EB57ADF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:label="loc_invest_DerivativeNotionalAmount_3EA0F7BCE4B04CA8C20459249B124923" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_invest_DerivativeNotionalAmount_3EA0F7BCE4B04CA8C20459249B124923" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeVariableInterestRate" xlink:label="loc_us-gaap_DerivativeVariableInterestRate_B6E9CFDF8DFDBCD49A8659249B1281F5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_DerivativeVariableInterestRate_B6E9CFDF8DFDBCD49A8659249B1281F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossReclassificationBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossReclassificationBeforeTax_0285EAB5AF410AE7D76B59249B12CCA7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossReclassificationBeforeTax_0285EAB5AF410AE7D76B59249B12CCA7" 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_3DA965B3EFD3A98F2B7A59249B12A45D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_OtherLiabilities_3DA965B3EFD3A98F2B7A59249B12A45D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherExpenses" xlink:label="loc_us-gaap_OtherExpenses_4A89DD86CBD282EBB34159249B12E398" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_2C5F6F6E295AA175850059249B120C35" xlink:to="loc_us-gaap_OtherExpenses_4A89DD86CBD282EBB34159249B12E398" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesEffectsOfDerivativeInstrumentsInAccumulatedOtherComprehensiveIncomeDetails" 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_71440AA051AC717A35483B12BA0E10AB" 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_53F45DF99E85421EB4EA3B12BA0E4F00" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71440AA051AC717A35483B12BA0E10AB" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_53F45DF99E85421EB4EA3B12BA0E4F00" 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_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9C630596117E0505CD0B3B12BA0ED514" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_53F45DF99E85421EB4EA3B12BA0E4F00" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9C630596117E0505CD0B3B12BA0ED514" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_AECE32BF79AC2DE1C5F63B12BA0E16A4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9C630596117E0505CD0B3B12BA0ED514" xlink:to="loc_us-gaap_TypeOfAdoptionMember_AECE32BF79AC2DE1C5F63B12BA0E16A4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_AECE32BF79AC2DE1C5F63B12BA0E16A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9C630596117E0505CD0B3B12BA0ED514" xlink:to="loc_us-gaap_TypeOfAdoptionMember_AECE32BF79AC2DE1C5F63B12BA0E16A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201712Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201712Member_CD82099A58AF85F22D623B12BA0E2698" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_AECE32BF79AC2DE1C5F63B12BA0E16A4" xlink:to="loc_us-gaap_AccountingStandardsUpdate201712Member_CD82099A58AF85F22D623B12BA0E2698" 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_9EBAF50DCF31A9A4F82A3B12BA0EA7C6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_53F45DF99E85421EB4EA3B12BA0E4F00" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_9EBAF50DCF31A9A4F82A3B12BA0EA7C6" 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_6E9E70A6DA40461127223B12BA0E97FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9EBAF50DCF31A9A4F82A3B12BA0EA7C6" xlink:to="loc_us-gaap_EquityComponentDomain_6E9E70A6DA40461127223B12BA0E97FA_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_6E9E70A6DA40461127223B12BA0E97FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_9EBAF50DCF31A9A4F82A3B12BA0EA7C6" xlink:to="loc_us-gaap_EquityComponentDomain_6E9E70A6DA40461127223B12BA0E97FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" xlink:label="loc_us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_78D6FDC1E5AE77F0F2B13B12BA0ECDA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6E9E70A6DA40461127223B12BA0E97FA" xlink:to="loc_us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_78D6FDC1E5AE77F0F2B13B12BA0ECDA8" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward" xlink:label="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71440AA051AC717A35483B12BA0E10AB" xlink:to="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" 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_C51629F434B8D297B8AC3B12BA0EBEB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_C51629F434B8D297B8AC3B12BA0EBEB6" 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_5E932DA5ED143864924C3B12BA0ECECA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_5E932DA5ED143864924C3B12BA0ECECA" 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_9D6B95FED3E7B83010053B12BA0E9D19" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_9D6B95FED3E7B83010053B12BA0E9D19" 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_6EB75F2659F0FBEFCE203B12BA0EA426" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_UnrealizedGainLossRecognizedinAccumulatedOtherComprehensiveIncomeLossRollForward_2DBF54CD3B38DA76497A3B12BA0E8EE9" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_6EB75F2659F0FBEFCE203B12BA0EA426" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesEffectsOnStatementsOfIncomeAndConsolidatedStatementsOfComprehensiveIncomeDetails" 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_322862539B52163058193A7328D803E0" 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_5FE84F78C4FA37E0C7803A7328D35453" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_322862539B52163058193A7328D803E0" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_5FE84F78C4FA37E0C7803A7328D35453" 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_BB85C952EA06C9434C313A7328D5E0D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_5FE84F78C4FA37E0C7803A7328D35453" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_BB85C952EA06C9434C313A7328D5E0D5" 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_90930EDD58CFDB230B0E3A7328D5BB3C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BB85C952EA06C9434C313A7328D5E0D5" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_90930EDD58CFDB230B0E3A7328D5BB3C_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_90930EDD58CFDB230B0E3A7328D5BB3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_BB85C952EA06C9434C313A7328D5E0D5" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_90930EDD58CFDB230B0E3A7328D5BB3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonoperatingIncomeExpenseMember" xlink:label="loc_us-gaap_NonoperatingIncomeExpenseMember_E4B0ED34857EA49E3E743A7328D54CFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_90930EDD58CFDB230B0E3A7328D5BB3C" xlink:to="loc_us-gaap_NonoperatingIncomeExpenseMember_E4B0ED34857EA49E3E743A7328D54CFD" 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_321D3C191A41E13D4BE43A7328D6EB3E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_5FE84F78C4FA37E0C7803A7328D35453" xlink:to="loc_us-gaap_HedgingDesignationAxis_321D3C191A41E13D4BE43A7328D6EB3E" 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_5EDFE84AFF1F265C52983A7328D69CCB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_321D3C191A41E13D4BE43A7328D6EB3E" xlink:to="loc_us-gaap_HedgingDesignationDomain_5EDFE84AFF1F265C52983A7328D69CCB_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_5EDFE84AFF1F265C52983A7328D69CCB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_321D3C191A41E13D4BE43A7328D6EB3E" xlink:to="loc_us-gaap_HedgingDesignationDomain_5EDFE84AFF1F265C52983A7328D69CCB" 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_7FBC3ED8508894C4FC5D3A7328D6984E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_5EDFE84AFF1F265C52983A7328D69CCB" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_7FBC3ED8508894C4FC5D3A7328D6984E" 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_2BE1874689F9A56DC4373A7328D786E9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_5EDFE84AFF1F265C52983A7328D69CCB" xlink:to="loc_us-gaap_NondesignatedMember_2BE1874689F9A56DC4373A7328D786E9" 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_B8A2C1371490853DFE133A7328D7E72B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_5FE84F78C4FA37E0C7803A7328D35453" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_B8A2C1371490853DFE133A7328D7E72B" 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_E8B6F82A6812F35549563A7328D76625_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B8A2C1371490853DFE133A7328D7E72B" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_E8B6F82A6812F35549563A7328D76625_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_E8B6F82A6812F35549563A7328D76625" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B8A2C1371490853DFE133A7328D7E72B" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_E8B6F82A6812F35549563A7328D76625" 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_A075BDEC989BF972807C3A7328D78F22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_E8B6F82A6812F35549563A7328D76625" xlink:to="loc_us-gaap_InterestRateSwapMember_A075BDEC989BF972807C3A7328D78F22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_CF2B82FDD619E5344D6D3A7328D728F9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_E8B6F82A6812F35549563A7328D76625" xlink:to="loc_us-gaap_CommodityContractMember_CF2B82FDD619E5344D6D3A7328D728F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HybridInstrumentMember" xlink:label="loc_us-gaap_HybridInstrumentMember_E706DEE9807158C7D68F3A7328D8EA09" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_E8B6F82A6812F35549563A7328D76625" xlink:to="loc_us-gaap_HybridInstrumentMember_E706DEE9807158C7D68F3A7328D8EA09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_5A221D13D6DB7E1159203A7328D885AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_322862539B52163058193A7328D803E0" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_5A221D13D6DB7E1159203A7328D885AA" 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_2A8FF82368CD87F1890C3A7328D89556" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_322862539B52163058193A7328D803E0" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_2A8FF82368CD87F1890C3A7328D89556" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesFairValueOfDerivativeInstrumentsOnBalanceSheetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_B809C60E3CEBC2D9412E3A92F04F1275" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_CB64EE5D60BB1BD6EC333A92F03F9E7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B809C60E3CEBC2D9412E3A92F04F1275" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_CB64EE5D60BB1BD6EC333A92F03F9E7F" 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_D286D3BE2F91319154623A92F03F2D8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_CB64EE5D60BB1BD6EC333A92F03F9E7F" xlink:to="loc_us-gaap_HedgingDesignationAxis_D286D3BE2F91319154623A92F03F2D8A" 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_9273CCEF6BBA1E1AE62A3A92F03FF8B9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_D286D3BE2F91319154623A92F03F2D8A" xlink:to="loc_us-gaap_HedgingDesignationDomain_9273CCEF6BBA1E1AE62A3A92F03FF8B9_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_9273CCEF6BBA1E1AE62A3A92F03FF8B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_D286D3BE2F91319154623A92F03F2D8A" xlink:to="loc_us-gaap_HedgingDesignationDomain_9273CCEF6BBA1E1AE62A3A92F03FF8B9" 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_97EDF03B2AB91FD945F13A92F03F7D32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9273CCEF6BBA1E1AE62A3A92F03FF8B9" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_97EDF03B2AB91FD945F13A92F03F7D32" 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_B5EDD0DA4B0DBCE17A193A92F03FCC60" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9273CCEF6BBA1E1AE62A3A92F03FF8B9" xlink:to="loc_us-gaap_NondesignatedMember_B5EDD0DA4B0DBCE17A193A92F03FCC60" 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_99517EAD2BCECABFCAE33A92F03F67DF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_CB64EE5D60BB1BD6EC333A92F03F9E7F" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_99517EAD2BCECABFCAE33A92F03F67DF" 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_ACBE0557F04EF6DA610A3A92F03FF676_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_99517EAD2BCECABFCAE33A92F03F67DF" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ACBE0557F04EF6DA610A3A92F03FF676_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_ACBE0557F04EF6DA610A3A92F03FF676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_99517EAD2BCECABFCAE33A92F03F67DF" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ACBE0557F04EF6DA610A3A92F03FF676" 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_8DACF168113D3B98A5503A92F04FF07B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ACBE0557F04EF6DA610A3A92F03FF676" xlink:to="loc_us-gaap_InterestRateSwapMember_8DACF168113D3B98A5503A92F04FF07B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_232F8CA74611B33F1B093A92F04F114F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ACBE0557F04EF6DA610A3A92F03FF676" xlink:to="loc_us-gaap_CommodityContractMember_232F8CA74611B33F1B093A92F04F114F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HybridInstrumentMember" xlink:label="loc_us-gaap_HybridInstrumentMember_453A7A09C7F2DB48CAD43A92F04F396E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_ACBE0557F04EF6DA610A3A92F03FF676" xlink:to="loc_us-gaap_HybridInstrumentMember_453A7A09C7F2DB48CAD43A92F04F396E" 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_A9D0F2391C2A36877F423A92F04F420C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_CB64EE5D60BB1BD6EC333A92F03F9E7F" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_A9D0F2391C2A36877F423A92F04F420C" 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_7BF0DCE79412A5DDF4F33A92F04F6488_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_A9D0F2391C2A36877F423A92F04F420C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_7BF0DCE79412A5DDF4F33A92F04F6488_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_7BF0DCE79412A5DDF4F33A92F04F6488" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_A9D0F2391C2A36877F423A92F04F420C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_7BF0DCE79412A5DDF4F33A92F04F6488" 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_B64686BB3EF6A3CFD11C3A92F04F4B9E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_7BF0DCE79412A5DDF4F33A92F04F6488" xlink:to="loc_us-gaap_OtherAssetsMember_B64686BB3EF6A3CFD11C3A92F04F4B9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesMember" xlink:label="loc_us-gaap_OtherLiabilitiesMember_834240D3B7BD0640E50D3A92F04F19BD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_7BF0DCE79412A5DDF4F33A92F04F6488" xlink:to="loc_us-gaap_OtherLiabilitiesMember_834240D3B7BD0640E50D3A92F04F19BD" 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_D5F7FC201C03B0BB3B3F3A92F04F964E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B809C60E3CEBC2D9412E3A92F04F1275" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_D5F7FC201C03B0BB3B3F3A92F04F964E" 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_D202EB4417B2F17864AA3A92F04F9DFE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B809C60E3CEBC2D9412E3A92F04F1275" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_D202EB4417B2F17864AA3A92F04F9DFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeNumberOfInstrumentsHeld" xlink:label="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_3F99A09CE112400E14D43A92F04FC2A9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B809C60E3CEBC2D9412E3A92F04F1275" xlink:to="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_3F99A09CE112400E14D43A92F04FC2A9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesSummaryOfActiveDerivativeInstrumentsDetails" 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_71751C1EBB973A5144274B5475822F79" 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_0FAEAD734AB617C059654B54757CD48D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_0FAEAD734AB617C059654B54757CD48D" 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_25A61FDFF3E20A3279D74B54757C7C2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_0FAEAD734AB617C059654B54757CD48D" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_25A61FDFF3E20A3279D74B54757C7C2D" 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_42F84286836A4FC10BEF4B54757CF21E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_25A61FDFF3E20A3279D74B54757C7C2D" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_42F84286836A4FC10BEF4B54757CF21E_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_42F84286836A4FC10BEF4B54757CF21E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_25A61FDFF3E20A3279D74B54757C7C2D" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_42F84286836A4FC10BEF4B54757CF21E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesMember" xlink:label="loc_us-gaap_OtherLiabilitiesMember_38C2B72BEF94679301874B54757DCCE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_42F84286836A4FC10BEF4B54757CF21E" xlink:to="loc_us-gaap_OtherLiabilitiesMember_38C2B72BEF94679301874B54757DCCE5" 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_B3223EF40171DDE26A5D4B54757D4084" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_0FAEAD734AB617C059654B54757CD48D" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_B3223EF40171DDE26A5D4B54757D4084" 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_771FC1FAFF626260F3DF4B54757D7599_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B3223EF40171DDE26A5D4B54757D4084" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599_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_771FC1FAFF626260F3DF4B54757D7599" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B3223EF40171DDE26A5D4B54757D4084" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CommodityContractApril2019Member" xlink:label="loc_amrc_CommodityContractApril2019Member_82D008442344F2BF3C924B54757E9854" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_CommodityContractApril2019Member_82D008442344F2BF3C924B54757E9854" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapOctober2029MemberMember" xlink:label="loc_amrc_InterestRateSwapOctober2029MemberMember_9EF220F50E739D5788234B54757E25F4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapOctober2029MemberMember_9EF220F50E739D5788234B54757E25F4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapJune2033Member" xlink:label="loc_amrc_InterestRateSwapJune2033Member_ED749ABDEAB85FDB5EDB4B54757E952E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapJune2033Member_ED749ABDEAB85FDB5EDB4B54757E952E" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapDecember2020Member" xlink:label="loc_amrc_InterestRateSwapDecember2020Member_E26ECCEB730E206CD8774B54757E095B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapDecember2020Member_E26ECCEB730E206CD8774B54757E095B" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapDecember2027Member" xlink:label="loc_amrc_InterestRateSwapDecember2027Member_6053AA04C26CB7456F494B54757E9D5A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapDecember2027Member_6053AA04C26CB7456F494B54757E9D5A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapDecember2038Member" xlink:label="loc_amrc_InterestRateSwapDecember2038Member_037B9BFE78B6BA3D08A34B54757FB708" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapDecember2038Member_037B9BFE78B6BA3D08A34B54757FB708" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapFebruary2023Member" xlink:label="loc_amrc_InterestRateSwapFebruary2023Member_E45E275B9421B05F379C4B54757F1014" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapFebruary2023Member_E45E275B9421B05F379C4B54757F1014" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapJune2028Contract1Member" xlink:label="loc_amrc_InterestRateSwapJune2028Contract1Member_DF5E837003FBAC80A6A74B54757FDC9C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapJune2028Contract1Member_DF5E837003FBAC80A6A74B54757FDC9C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapJune2028Contract2Member" xlink:label="loc_amrc_InterestRateSwapJune2028Contract2Member_6EB1130DE20A2D8F0E034B54757FB450" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapJune2028Contract2Member_6EB1130DE20A2D8F0E034B54757FB450" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapMarch2020Contract1Member" xlink:label="loc_amrc_InterestRateSwapMarch2020Contract1Member_9C2B10AD59697F07A70F4B54757F53FB" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapMarch2020Contract1Member_9C2B10AD59697F07A70F4B54757F53FB" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapMarch2020Contract2Member" xlink:label="loc_amrc_InterestRateSwapMarch2020Contract2Member_908F20E5DB250C02A7914B547580854A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapMarch2020Contract2Member_908F20E5DB250C02A7914B547580854A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapFebruary2021Member" xlink:label="loc_amrc_InterestRateSwapFebruary2021Member_B282177C6FC9A9338A694B547580D39A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapFebruary2021Member_B282177C6FC9A9338A694B547580D39A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InterestRateSwapMarch2024Member" xlink:label="loc_amrc_InterestRateSwapMarch2024Member_6E95A7CF94F36FB437644B5475800D7D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_InterestRateSwapMarch2024Member_6E95A7CF94F36FB437644B5475800D7D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CommodityContractApril2020Member" xlink:label="loc_amrc_CommodityContractApril2020Member_120B4E930F1DBBB086654B54758066A6" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_CommodityContractApril2020Member_120B4E930F1DBBB086654B54758066A6" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CommodityContractApril2021Member" xlink:label="loc_amrc_CommodityContractApril2021Member_AF658B346A3BA65E5D614B5475813C46" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_amrc_CommodityContractApril2021Member_AF658B346A3BA65E5D614B5475813C46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HybridInstrumentMember" xlink:label="loc_us-gaap_HybridInstrumentMember_B5D9EB4CA876EFCCA0EB4B5475810A9B" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_771FC1FAFF626260F3DF4B54757D7599" xlink:to="loc_us-gaap_HybridInstrumentMember_B5D9EB4CA876EFCCA0EB4B5475810A9B" 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_7FBD232D49802EE4896C4B54758152D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_0FAEAD734AB617C059654B54757CD48D" xlink:to="loc_us-gaap_HedgingDesignationAxis_7FBD232D49802EE4896C4B54758152D8" 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_F8293C0D122EB900BD844B547581F211_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_7FBD232D49802EE4896C4B54758152D8" xlink:to="loc_us-gaap_HedgingDesignationDomain_F8293C0D122EB900BD844B547581F211_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_F8293C0D122EB900BD844B547581F211" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_7FBD232D49802EE4896C4B54758152D8" xlink:to="loc_us-gaap_HedgingDesignationDomain_F8293C0D122EB900BD844B547581F211" 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_9B83C968CC7194446A714B547582A136" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F8293C0D122EB900BD844B547581F211" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_9B83C968CC7194446A714B547582A136" 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_5014F1EBCE19FF951DD64B5475826A8F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F8293C0D122EB900BD844B547581F211" xlink:to="loc_us-gaap_NondesignatedMember_5014F1EBCE19FF951DD64B5475826A8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:label="loc_invest_DerivativeNotionalAmount_981037A582CE146A0E594B547582F344" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_invest_DerivativeNotionalAmount_981037A582CE146A0E594B547582F344" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFixedInterestRate" xlink:label="loc_us-gaap_DerivativeFixedInterestRate_B2302836667725DFD4D24B5475827F8A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeFixedInterestRate_B2302836667725DFD4D24B5475827F8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTermOfContract" xlink:label="loc_us-gaap_DerivativeTermOfContract_72ADA5A410EF44C630874B5475838766" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeTermOfContract_72ADA5A410EF44C630874B5475838766" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeSwapTypeFixedPrice" xlink:label="loc_us-gaap_DerivativeSwapTypeFixedPrice_12662ECAE57FC333C3954B547583944E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeSwapTypeFixedPrice_12662ECAE57FC333C3954B547583944E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure" xlink:label="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_F5D486810C7BBD4802244B54758339A3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_F5D486810C7BBD4802244B54758339A3" 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_5E743E665EE96A4D4CD74B5475834130" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_71751C1EBB973A5144274B5475822F79" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5E743E665EE96A4D4CD74B5475834130" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DerivativeInstrumentsAndHedgingActivitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DescriptionOfBusiness" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/DocumentAndEntityInformation" xlink:type="extended">
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:type="locator" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntitiesTable" xlink:label="loc_dei_EntitiesTable_4C10B2835ED2DDFF61643A92F47C9F1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntitiesTable_4C10B2835ED2DDFF61643A92F47C9F1C" 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_D7CC028F75AABF9393FA3A92F47C4B4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_4C10B2835ED2DDFF61643A92F47C9F1C" xlink:to="loc_us-gaap_StatementClassOfStockAxis_D7CC028F75AABF9393FA3A92F47C4B4D" 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_29F0A86F9F37AE5AB8B23A92F47CA696_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D7CC028F75AABF9393FA3A92F47C4B4D" xlink:to="loc_us-gaap_ClassOfStockDomain_29F0A86F9F37AE5AB8B23A92F47CA696_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_29F0A86F9F37AE5AB8B23A92F47CA696" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D7CC028F75AABF9393FA3A92F47C4B4D" xlink:to="loc_us-gaap_ClassOfStockDomain_29F0A86F9F37AE5AB8B23A92F47CA696" 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_E3C50B3DE02F700DEE6B3A92F47CD608" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_29F0A86F9F37AE5AB8B23A92F47CA696" xlink:to="loc_us-gaap_CommonClassAMember_E3C50B3DE02F700DEE6B3A92F47CD608" 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_23854F6D7795374CE0743A92F47C4ADD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_29F0A86F9F37AE5AB8B23A92F47CA696" xlink:to="loc_us-gaap_CommonClassBMember_23854F6D7795374CE0743A92F47C4ADD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_98060AFE16450935FEA73A92F47CD064" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityRegistrantName_98060AFE16450935FEA73A92F47CD064" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_15A5C7FFF9F1CB71B1BF3A92F47CC416" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityCentralIndexKey_15A5C7FFF9F1CB71B1BF3A92F47CC416" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_9069404BE16C884595A73A92F47CE8F9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_CurrentFiscalYearEndDate_9069404BE16C884595A73A92F47CE8F9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_A85F47438419C610A0A63A92F47CAADE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityFilerCategory_A85F47438419C610A0A63A92F47CAADE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_8AFB92744C6F932F97733A92F47C0197" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_DocumentType_8AFB92744C6F932F97733A92F47C0197" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_3EA38CBEA6C2E76682FA3A92F47C2250" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_DocumentPeriodEndDate_3EA38CBEA6C2E76682FA3A92F47C2250" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_8CD48EB0048D5D117AB13A92F47CF4CE" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_DocumentFiscalYearFocus_8CD48EB0048D5D117AB13A92F47CF4CE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_335BCC323488FB4DADAC3A92F47C62FF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_DocumentFiscalPeriodFocus_335BCC323488FB4DADAC3A92F47C62FF" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_3690935360A58319F77E3A92F47C61E9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_AmendmentFlag_3690935360A58319F77E3A92F47C61E9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_DECAD091D8847296010B3A92F48CBB5B" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_DECAD091D8847296010B3A92F48CBB5B" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_BB9E9AB6018E4D8CEA283A92F48C2E0B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_BB9E9AB6018E4D8CEA283A92F48C2E0B" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_E45904E4159348B034143A92F48CFF83" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityVoluntaryFilers_E45904E4159348B034143A92F48CFF83" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_B33DE7182AFAE84491EF3A92F48C384A" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityCurrentReportingStatus_B33DE7182AFAE84491EF3A92F48C384A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityPublicFloat" xlink:label="loc_dei_EntityPublicFloat_C2E0678E83FD73094F323A92F48CA9D5" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityPublicFloat_C2E0678E83FD73094F323A92F48CA9D5" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_DEFD185DC377F652BE083AC6895BA2B4" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityShellCompany_DEFD185DC377F652BE083AC6895BA2B4" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_C1CAAB17CB216911F47B3AC6BD920F31" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntitySmallBusiness_C1CAAB17CB216911F47B3AC6BD920F31" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_CC42C3AB5646BAC9598E3AC719730676" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_C66DD0429311201886A63A92F47CFCA3" xlink:to="loc_dei_EntityEmergingGrowthCompany_CC42C3AB5646BAC9598E3AC719730676" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/EmployeeBenefits" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/EmployeeBenefitsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_F9549C3887C67BE11761364800AB7F54" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_7D3FF12569CFFB4C0123364800A9E45D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_F9549C3887C67BE11761364800AB7F54" xlink:to="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_7D3FF12569CFFB4C0123364800A9E45D" 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_RetirementPlanTypeAxis" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_D8D4C98A0F0379C3B50F364800A94497" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_7D3FF12569CFFB4C0123364800A9E45D" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_D8D4C98A0F0379C3B50F364800A94497" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_D8D4C98A0F0379C3B50F364800A94497" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_D8D4C98A0F0379C3B50F364800A94497" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_A401kMember" xlink:label="loc_amrc_A401kMember_9E6382956CA08A0AA0C9364800AA6988" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7" xlink:to="loc_amrc_A401kMember_9E6382956CA08A0AA0C9364800AA6988" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_77C180361AB1A42A6449364800AAB05E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_77C180361AB1A42A6449364800AAB05E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0E3C04F9E47292A37BC3364800AA861B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_82AE352E3AE0BBABD010364800A9FFA7" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0E3C04F9E47292A37BC3364800AA861B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetirementPlanSponsorLocationAxis" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationAxis_CB20E534FE4149B6D7AD364800AA981B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_7D3FF12569CFFB4C0123364800A9E45D" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationAxis_CB20E534FE4149B6D7AD364800AA981B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetirementPlanSponsorLocationDomain" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_CB20E534FE4149B6D7AD364800AA981B" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetirementPlanSponsorLocationDomain" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_CB20E534FE4149B6D7AD364800AA981B" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_country_GB_F72E0D435BCCE996EDAD364800AB4CA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1" xlink:to="loc_country_GB_F72E0D435BCCE996EDAD364800AB4CA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_F65AF96BED4FA9CC64E9364800AB8993" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_AD734252A3FDF83F2C42364800AAE9E1" xlink:to="loc_country_CA_F65AF96BED4FA9CC64E9364800AB8993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_93F14BD5B43ABBB5527F364800AB1094" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_F9549C3887C67BE11761364800AB7F54" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_93F14BD5B43ABBB5527F364800AB1094" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_7508871051938CAB7EA8364800AC546E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_F9549C3887C67BE11761364800AB7F54" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_7508871051938CAB7EA8364800AC546E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DefinedContributionPlanCostRecognized" xlink:label="loc_us-gaap_DefinedContributionPlanCostRecognized_A2A58D90CA41DFDF08DC364800AC9F9F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_F9549C3887C67BE11761364800AB7F54" xlink:to="loc_us-gaap_DefinedContributionPlanCostRecognized_A2A58D90CA41DFDF08DC364800AC9F9F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/EnergyAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/EnergyAssetsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A62A905CFAB2A31CEF775A594E1FD438" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A62A905CFAB2A31CEF775A594E1FD438" 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_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_547E6DB57BF63FD2BD455A594E1F29FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A62A905CFAB2A31CEF775A594E1FD438" xlink:to="loc_us-gaap_StatementScenarioAxis_547E6DB57BF63FD2BD455A594E1F29FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_940AC46313A20E1AF1375A594E20E450_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_547E6DB57BF63FD2BD455A594E1F29FB" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_940AC46313A20E1AF1375A594E20E450_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_940AC46313A20E1AF1375A594E20E450" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_547E6DB57BF63FD2BD455A594E1F29FB" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_940AC46313A20E1AF1375A594E20E450" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioPlanMember" xlink:label="loc_us-gaap_ScenarioPlanMember_CAB12F102EBCDD17DF7E5A594E20A894" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_940AC46313A20E1AF1375A594E20E450" xlink:to="loc_us-gaap_ScenarioPlanMember_CAB12F102EBCDD17DF7E5A594E20A894" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_4FD3EDA4A024142FB1275A594E20BF7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A62A905CFAB2A31CEF775A594E1FD438" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_4FD3EDA4A024142FB1275A594E20BF7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2D0952F1B551E2EB918B5A594E21C79E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4FD3EDA4A024142FB1275A594E20BF7A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2D0952F1B551E2EB918B5A594E21C79E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2D0952F1B551E2EB918B5A594E21C79E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4FD3EDA4A024142FB1275A594E20BF7A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2D0952F1B551E2EB918B5A594E21C79E" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarProjects2018Member" xlink:label="loc_amrc_SolarProjects2018Member_4040029B0C82BADF22A95A594E217049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2D0952F1B551E2EB918B5A594E21C79E" xlink:to="loc_amrc_SolarProjects2018Member_4040029B0C82BADF22A95A594E217049" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RegulatoryAssetAxis" xlink:label="loc_us-gaap_RegulatoryAssetAxis_89A60B6BC52FDD7075915A594E211105" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A62A905CFAB2A31CEF775A594E1FD438" xlink:to="loc_us-gaap_RegulatoryAssetAxis_89A60B6BC52FDD7075915A594E211105" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RegulatoryAssetDomain" xlink:label="loc_us-gaap_RegulatoryAssetDomain_D88D7B454A94840A8C7A5A594E2193CC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryAssetAxis_89A60B6BC52FDD7075915A594E211105" xlink:to="loc_us-gaap_RegulatoryAssetDomain_D88D7B454A94840A8C7A5A594E2193CC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RegulatoryAssetDomain" xlink:label="loc_us-gaap_RegulatoryAssetDomain_D88D7B454A94840A8C7A5A594E2193CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryAssetAxis_89A60B6BC52FDD7075915A594E211105" xlink:to="loc_us-gaap_RegulatoryAssetDomain_D88D7B454A94840A8C7A5A594E2193CC" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_RenewalEnergyProgramMember" xlink:label="loc_amrc_RenewalEnergyProgramMember_4CD6DFDD43ADAD7ACC355A594E22EEEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_D88D7B454A94840A8C7A5A594E2193CC" xlink:to="loc_amrc_RenewalEnergyProgramMember_4CD6DFDD43ADAD7ACC355A594E22EEEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOther" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOther_29A4A809A29526DC8C155A594E226A53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOther_29A4A809A29526DC8C155A594E226A53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation_653C1E01A411A2D8B9665A594E2324A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation_653C1E01A411A2D8B9665A594E2324A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_190036C2F988E37505705A594E23DA09" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherNet_190036C2F988E37505705A594E23DA09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeasedAssetsGross" xlink:label="loc_us-gaap_CapitalLeasedAssetsGross_AC46B59A2B979DA4E99F5A594E234B11" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_CapitalLeasedAssetsGross_AC46B59A2B979DA4E99F5A594E234B11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeasesLesseeBalanceSheetAssetsByMajorClassAccumulatedDeprecation" xlink:label="loc_us-gaap_CapitalLeasesLesseeBalanceSheetAssetsByMajorClassAccumulatedDeprecation_7305E7A0149E7F1A8C195A594E23A799" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_CapitalLeasesLesseeBalanceSheetAssetsByMajorClassAccumulatedDeprecation_7305E7A0149E7F1A8C195A594E23A799" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeasesBalanceSheetAssetsByMajorClassNet" xlink:label="loc_us-gaap_CapitalLeasesBalanceSheetAssetsByMajorClassNet_A0A572F5F09A136138A65A594E236247" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_CapitalLeasesBalanceSheetAssetsByMajorClassNet_A0A572F5F09A136138A65A594E236247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_BB3E337BB2DF10C3FE505A594E237008" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_BB3E337BB2DF10C3FE505A594E237008" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeasesIncomeStatementAmortizationExpense" xlink:label="loc_us-gaap_CapitalLeasesIncomeStatementAmortizationExpense_BC8B447BD538B4E87E6D5A594E237BFD" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_CapitalLeasesIncomeStatementAmortizationExpense_BC8B447BD538B4E87E6D5A594E237BFD" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationNumberOfProjectsAcquired" xlink:label="loc_amrc_BusinessCombinationNumberOfProjectsAcquired_E328CDF3F877BF5B88095A594E24263D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_amrc_BusinessCombinationNumberOfProjectsAcquired_E328CDF3F877BF5B88095A594E24263D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers" xlink:label="loc_amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers_33E7A6C38D8BE92D27E35A594E249C82" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_amrc_BusinessCombinationProjectsAcquiredNumberOfDevelopers_33E7A6C38D8BE92D27E35A594E249C82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_E1C51C04DF8AABF993735A594E24127B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_E1C51C04DF8AABF993735A594E24127B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_815D227B0743322DF3545A594E24A8C3" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_815D227B0743322DF3545A594E24A8C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_BACFAA55066CB631ADBB5A594E25E592" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_BACFAA55066CB631ADBB5A594E25E592" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetRetirementObligationLegallyRestrictedAssetsFairValue" xlink:label="loc_us-gaap_AssetRetirementObligationLegallyRestrictedAssetsFairValue_805D26F383EFE614791F5A594E25D48A" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_AssetRetirementObligationLegallyRestrictedAssetsFairValue_805D26F383EFE614791F5A594E25D48A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetRetirementObligation" xlink:label="loc_us-gaap_AssetRetirementObligation_6D50591950B9FB52E18A5A594E252BB2" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_FE03E8EDC68C57CCFC885A594E22703F" xlink:to="loc_us-gaap_AssetRetirementObligation_6D50591950B9FB52E18A5A594E252BB2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/EnergyAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurement" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurementAdditionalInformationDetails" 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_CA6D1A07C85D083288595EC5C2C6624E" 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_06067D2D08E1D81FB27C5EC5C2C39C9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_06067D2D08E1D81FB27C5EC5C2C39C9C" 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_CBB526F2C428BBFEC2A55EC5C2C38D73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_06067D2D08E1D81FB27C5EC5C2C39C9C" xlink:to="loc_us-gaap_FinancialInstrumentAxis_CBB526F2C428BBFEC2A55EC5C2C38D73" 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_B8F2E1EA96A8EA6A768D5EC5C2C3E512_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CBB526F2C428BBFEC2A55EC5C2C38D73" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B8F2E1EA96A8EA6A768D5EC5C2C3E512_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_B8F2E1EA96A8EA6A768D5EC5C2C3E512" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CBB526F2C428BBFEC2A55EC5C2C38D73" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B8F2E1EA96A8EA6A768D5EC5C2C3E512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HybridInstrumentMember" xlink:label="loc_us-gaap_HybridInstrumentMember_E5A944C493FA7461942F5EC5C2C428D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_B8F2E1EA96A8EA6A768D5EC5C2C3E512" xlink:to="loc_us-gaap_HybridInstrumentMember_E5A944C493FA7461942F5EC5C2C428D7" xlink:type="arc" />
    <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_5A71018402257EDA83145EC5C2C4E9B6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_06067D2D08E1D81FB27C5EC5C2C39C9C" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_5A71018402257EDA83145EC5C2C4E9B6" 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_096F42942C27DD6F7C445EC5C2C45CAF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_5A71018402257EDA83145EC5C2C4E9B6" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_096F42942C27DD6F7C445EC5C2C45CAF_default" 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_096F42942C27DD6F7C445EC5C2C45CAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_5A71018402257EDA83145EC5C2C4E9B6" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_096F42942C27DD6F7C445EC5C2C45CAF" 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_C2C3C06BEBFC57A33E195EC5C2C59C06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_096F42942C27DD6F7C445EC5C2C45CAF" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_C2C3C06BEBFC57A33E195EC5C2C59C06" 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_60654CF48813A586E0D65EC5C2C5A317" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_06067D2D08E1D81FB27C5EC5C2C39C9C" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_60654CF48813A586E0D65EC5C2C5A317" 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_0C8317C630E06CC139145EC5C2C55629_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_60654CF48813A586E0D65EC5C2C5A317" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0C8317C630E06CC139145EC5C2C55629_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_0C8317C630E06CC139145EC5C2C55629" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_60654CF48813A586E0D65EC5C2C5A317" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0C8317C630E06CC139145EC5C2C55629" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_5FE7CB748313F88F866C5EC5C2C6D101" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_0C8317C630E06CC139145EC5C2C55629" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_5FE7CB748313F88F866C5EC5C2C6D101" 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_F8D9B9670780B965D9C85EC5C2C6AD43" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_06067D2D08E1D81FB27C5EC5C2C39C9C" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F8D9B9670780B965D9C85EC5C2C6AD43" 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_7049877D416D99E726A75EC5C2C66A12_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F8D9B9670780B965D9C85EC5C2C6AD43" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7049877D416D99E726A75EC5C2C66A12_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_7049877D416D99E726A75EC5C2C66A12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F8D9B9670780B965D9C85EC5C2C6AD43" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7049877D416D99E726A75EC5C2C66A12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityMeasurementInput" xlink:label="loc_us-gaap_DerivativeLiabilityMeasurementInput_41BBCAE4B9C09E9E8BB55EC5C2C7AF1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_us-gaap_DerivativeLiabilityMeasurementInput_41BBCAE4B9C09E9E8BB55EC5C2C7AF1E" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityLow" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityLow_ABEEDB336042ED1F0E865EC5C2C70223" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityLow_ABEEDB336042ED1F0E865EC5C2C70223" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityBaseCase" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityBaseCase_8225FF3A625A1AC3576E5EC5C2C70070" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesProbabilityBaseCase_8225FF3A625A1AC3576E5EC5C2C70070" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesPercentageHigh" xlink:label="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesPercentageHigh_A7545AA9AC8D7188D93C5EC5C2C8135D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_amrc_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesPercentageHigh_A7545AA9AC8D7188D93C5EC5C2C8135D" 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_77AE9B4DC464CF437F175EC5C2C8A87A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CA6D1A07C85D083288595EC5C2C6624E" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_77AE9B4DC464CF437F175EC5C2C8A87A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurementFairValueAndCarryingValueOfLongTermDebtDetails" 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_8E3C8B105F56A57E2BFF367A7A3C3AB9" 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_DB6AF8B1B7CA80CB9D36367A7A3BDBA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8E3C8B105F56A57E2BFF367A7A3C3AB9" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_DB6AF8B1B7CA80CB9D36367A7A3BDBA1" 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_4530C9AEC450FC3B9DEE367A7A3BF0B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_DB6AF8B1B7CA80CB9D36367A7A3BDBA1" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_4530C9AEC450FC3B9DEE367A7A3BF0B7" 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_EBF9E345A5DD3DDDCC64367A7A3C70C5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_4530C9AEC450FC3B9DEE367A7A3BF0B7" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_EBF9E345A5DD3DDDCC64367A7A3C70C5_default" 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_00C0FB0327CC0099EE72367A7A3CFF12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_4530C9AEC450FC3B9DEE367A7A3BF0B7" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_00C0FB0327CC0099EE72367A7A3CFF12" 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_EBF9E345A5DD3DDDCC64367A7A3C70C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_00C0FB0327CC0099EE72367A7A3CFF12" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_EBF9E345A5DD3DDDCC64367A7A3C70C5" 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_DD2BEB41DF51E37EA9F4367A7A3CBD91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_EBF9E345A5DD3DDDCC64367A7A3C70C5" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_DD2BEB41DF51E37EA9F4367A7A3CBD91" 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_6314D838336CD843F173367A7A3C24FA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_EBF9E345A5DD3DDDCC64367A7A3C70C5" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_6314D838336CD843F173367A7A3C24FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_4BF5E92C317AF164151B367A7A3DA708" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8E3C8B105F56A57E2BFF367A7A3C3AB9" xlink:to="loc_us-gaap_LongTermDebtFairValue_4BF5E92C317AF164151B367A7A3DA708" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurementFairValueOfAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" 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_285A501FFE184486B8A04E81A0B928A5" 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_F3E15AB6DB3B8A1B6B0B4E81A0B68905" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_285A501FFE184486B8A04E81A0B928A5" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3E15AB6DB3B8A1B6B0B4E81A0B68905" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_C1B0CEA7651094867D2B4E81A0B76D5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3E15AB6DB3B8A1B6B0B4E81A0B68905" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_C1B0CEA7651094867D2B4E81A0B76D5C" 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_5EB8826D4B7E7BD441AC4E81A0B7AA55_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_C1B0CEA7651094867D2B4E81A0B76D5C" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_5EB8826D4B7E7BD441AC4E81A0B7AA55_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_5EB8826D4B7E7BD441AC4E81A0B7AA55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_C1B0CEA7651094867D2B4E81A0B76D5C" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_5EB8826D4B7E7BD441AC4E81A0B7AA55" 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_71F142CF01D86B512A8F4E81A0B7DB08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_5EB8826D4B7E7BD441AC4E81A0B7AA55" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_71F142CF01D86B512A8F4E81A0B7DB08" 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_DA530294A9EECDCE9B784E81A0B87AF0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3E15AB6DB3B8A1B6B0B4E81A0B68905" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_DA530294A9EECDCE9B784E81A0B87AF0" 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_3B8BFFD11F0407DA41404E81A0B88CE9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_DA530294A9EECDCE9B784E81A0B87AF0" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3B8BFFD11F0407DA41404E81A0B88CE9_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_3B8BFFD11F0407DA41404E81A0B88CE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_DA530294A9EECDCE9B784E81A0B87AF0" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3B8BFFD11F0407DA41404E81A0B88CE9" 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_63DFA696F303D78B828F4E81A0B8A83D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3B8BFFD11F0407DA41404E81A0B88CE9" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_63DFA696F303D78B828F4E81A0B8A83D" 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_62A9873573F3C1E8072F4E81A0B89A06" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3B8BFFD11F0407DA41404E81A0B88CE9" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_62A9873573F3C1E8072F4E81A0B89A06" 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_873047C6BDFDDE93B3044E81A0B8C2AE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F3E15AB6DB3B8A1B6B0B4E81A0B68905" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_873047C6BDFDDE93B3044E81A0B8C2AE" 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_A5D43516ECAF3EF53CF94E81A0B9CDED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_873047C6BDFDDE93B3044E81A0B8C2AE" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_A5D43516ECAF3EF53CF94E81A0B9CDED_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_A5D43516ECAF3EF53CF94E81A0B9CDED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_873047C6BDFDDE93B3044E81A0B8C2AE" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_A5D43516ECAF3EF53CF94E81A0B9CDED" 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_E0F51529DB7AD904792C4E81A0B9F268" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_A5D43516ECAF3EF53CF94E81A0B9CDED" xlink:to="loc_us-gaap_InterestRateSwapMember_E0F51529DB7AD904792C4E81A0B9F268" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_7D7ED3D3C51EF50C824F4E81A0B9ABD6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_A5D43516ECAF3EF53CF94E81A0B9CDED" xlink:to="loc_us-gaap_CommodityContractMember_7D7ED3D3C51EF50C824F4E81A0B9ABD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HybridInstrumentMember" xlink:label="loc_us-gaap_HybridInstrumentMember_1F54795628CDD23616BD4E81A0B91DCB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_A5D43516ECAF3EF53CF94E81A0B9CDED" xlink:to="loc_us-gaap_HybridInstrumentMember_1F54795628CDD23616BD4E81A0B91DCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_4509F07A2845510889324E81A0BA42ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_285A501FFE184486B8A04E81A0B928A5" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_4509F07A2845510889324E81A0BA42ED" 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_0181543BC1007B6C35D14E81A0BA532C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_4509F07A2845510889324E81A0BA42ED" xlink:to="loc_us-gaap_DerivativeAssets_0181543BC1007B6C35D14E81A0BA532C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B482063EC3BB371D915C4E81A0BADD79" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_285A501FFE184486B8A04E81A0B928A5" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B482063EC3BB371D915C4E81A0BADD79" 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_DFAB75FD9302F85FE2284E81A0BAA847" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B482063EC3BB371D915C4E81A0BADD79" xlink:to="loc_us-gaap_DerivativeLiabilities_DFAB75FD9302F85FE2284E81A0BAA847" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_22413CB3738932F02F2C4E81A0BB7C42" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B482063EC3BB371D915C4E81A0BADD79" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_22413CB3738932F02F2C4E81A0BB7C42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialLiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_C461676CACCE5C8D9F764E81A0BB0D44" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B482063EC3BB371D915C4E81A0BADD79" xlink:to="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_C461676CACCE5C8D9F764E81A0BB0D44" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurementFairValueOfContingentLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/FairValueMeasurementTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GeographicInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GeographicInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_3C9E5B6C4D71E7C11CD616C179BCCC92" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_25F2157560E98085FEA216C179BB3879" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_3C9E5B6C4D71E7C11CD616C179BCCC92" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_25F2157560E98085FEA216C179BB3879" 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_3FD5E7463D6F2F8309AA16C179BB1844" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_25F2157560E98085FEA216C179BB3879" xlink:to="loc_srt_StatementGeographicalAxis_3FD5E7463D6F2F8309AA16C179BB1844" 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_F71AA617C2C8DEDE5F8016C179BB98CE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_3FD5E7463D6F2F8309AA16C179BB1844" xlink:to="loc_srt_SegmentGeographicalDomain_F71AA617C2C8DEDE5F8016C179BB98CE_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_F71AA617C2C8DEDE5F8016C179BB98CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_3FD5E7463D6F2F8309AA16C179BB1844" xlink:to="loc_srt_SegmentGeographicalDomain_F71AA617C2C8DEDE5F8016C179BB98CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_2D0010F650E39353D93316C179BB0834" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_F71AA617C2C8DEDE5F8016C179BB98CE" xlink:to="loc_country_US_2D0010F650E39353D93316C179BB0834" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_519C2812C5C837EF5DFD16C179BC442C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_F71AA617C2C8DEDE5F8016C179BB98CE" xlink:to="loc_country_CA_519C2812C5C837EF5DFD16C179BC442C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherCountriesMember" xlink:label="loc_amrc_OtherCountriesMember_A5977F39C02BFBDD362616C179BC648F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_F71AA617C2C8DEDE5F8016C179BB98CE" xlink:to="loc_amrc_OtherCountriesMember_A5977F39C02BFBDD362616C179BC648F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncurrentAssets" xlink:label="loc_us-gaap_NoncurrentAssets_A1A0FC0F028A32CC25EB16C179BC7FFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_3C9E5B6C4D71E7C11CD616C179BCCC92" xlink:to="loc_us-gaap_NoncurrentAssets_A1A0FC0F028A32CC25EB16C179BC7FFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_47AC48F72294D3EC13FA16D1D25B0409" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_3C9E5B6C4D71E7C11CD616C179BCCC92" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_47AC48F72294D3EC13FA16D1D25B0409" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GeographicInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" 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_855BF8439941B229C6D9324B2D9D4E2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_855BF8439941B229C6D9324B2D9D4E2E" 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_8F205B2BC1A4DB9B225C324B2D9DD1B9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_855BF8439941B229C6D9324B2D9D4E2E" xlink:to="loc_us-gaap_SegmentDomain_8F205B2BC1A4DB9B225C324B2D9DD1B9_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_8F205B2BC1A4DB9B225C324B2D9DD1B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_855BF8439941B229C6D9324B2D9D4E2E" xlink:to="loc_us-gaap_SegmentDomain_8F205B2BC1A4DB9B225C324B2D9DD1B9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaMember" xlink:label="loc_amrc_CanadaMember_8BF8CB126C6D4C5F524E324B2D9D9376" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8F205B2BC1A4DB9B225C324B2D9DD1B9" xlink:to="loc_amrc_CanadaMember_8BF8CB126C6D4C5F524E324B2D9D9376" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherUSRegionsMember" xlink:label="loc_amrc_OtherUSRegionsMember_DB51140ED62E37384FF3324B2D9DE1A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8F205B2BC1A4DB9B225C324B2D9DD1B9" xlink:to="loc_amrc_OtherUSRegionsMember_DB51140ED62E37384FF3324B2D9DE1A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaap_SubsegmentsAxis_C35491B28FEC8A27AA5E324B2D9D6970" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" xlink:to="loc_us-gaap_SubsegmentsAxis_C35491B28FEC8A27AA5E324B2D9D6970" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_EB8A9AF71407C14C03AD324B2D9D77B1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_C35491B28FEC8A27AA5E324B2D9D6970" xlink:to="loc_us-gaap_SubsegmentsDomain_EB8A9AF71407C14C03AD324B2D9D77B1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_EB8A9AF71407C14C03AD324B2D9D77B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_C35491B28FEC8A27AA5E324B2D9D6970" xlink:to="loc_us-gaap_SubsegmentsDomain_EB8A9AF71407C14C03AD324B2D9D77B1" 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_3AE6B3D6E0CB8F7CD2EB324B2D9D7F56" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" xlink:to="loc_srt_RangeAxis_3AE6B3D6E0CB8F7CD2EB324B2D9D7F56" 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_4CFE057D78532D0B404C324B2D9D30EF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3AE6B3D6E0CB8F7CD2EB324B2D9D7F56" xlink:to="loc_srt_RangeMember_4CFE057D78532D0B404C324B2D9D30EF_default" 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_4CFE057D78532D0B404C324B2D9D30EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3AE6B3D6E0CB8F7CD2EB324B2D9D7F56" xlink:to="loc_srt_RangeMember_4CFE057D78532D0B404C324B2D9D30EF" 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_86CDCBC9B018D55ABBE2324B2D9D7FC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4CFE057D78532D0B404C324B2D9D30EF" xlink:to="loc_srt_MinimumMember_86CDCBC9B018D55ABBE2324B2D9D7FC4" 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_6CC08BB1FEC31E0FEA6D324B2DADFBE3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4CFE057D78532D0B404C324B2D9D30EF" xlink:to="loc_srt_MaximumMember_6CC08BB1FEC31E0FEA6D324B2DADFBE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_FB40C0C2C415F2FFDE57324B2DADBBC1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_5B4AC68128E13896D2CE324B2D9DC8FD" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_FB40C0C2C415F2FFDE57324B2DADBBC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_FB40C0C2C415F2FFDE57324B2DADBBC1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_FB40C0C2C415F2FFDE57324B2DADBBC1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerContractsMember" xlink:label="loc_us-gaap_CustomerContractsMember_E7FE9AE9B3317E6C1B12324B2DAD6AC3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5" xlink:to="loc_us-gaap_CustomerContractsMember_E7FE9AE9B3317E6C1B12324B2DAD6AC3" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CustomerRelationshipsNoncompeteAgreementsTechnologyAndTradeNamesMember" xlink:label="loc_amrc_CustomerRelationshipsNoncompeteAgreementsTechnologyAndTradeNamesMember_54FEC9F9B647EFF0599B324B2DAD95B9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1DA2DF444A03F5DBDAF7324B2DAD65D5" xlink:to="loc_amrc_CustomerRelationshipsNoncompeteAgreementsTechnologyAndTradeNamesMember_54FEC9F9B647EFF0599B324B2DAD95B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_9193710C7BE0BD838720324C853E0C2C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_9193710C7BE0BD838720324C853E0C2C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_PercentofGoodwillFairValuethatExceedsCarryingVal" xlink:label="loc_amrc_PercentofGoodwillFairValuethatExceedsCarryingVal_6518E3C73BB6A9058254324B2DAD8D69" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:to="loc_amrc_PercentofGoodwillFairValuethatExceedsCarryingVal_6518E3C73BB6A9058254324B2DAD8D69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_616E2787723D11B40046324B2DADD78D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:to="loc_us-gaap_Goodwill_616E2787723D11B40046324B2DADD78D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_D940DB11010339630ED5324B2DAD42D4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_08AF8A860100B7AE1987324B2DAD3788" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_D940DB11010339630ED5324B2DAD42D4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsAmortizationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6CD0613C1A1C69CF698916BE0EA3AF57" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_56AA5FE6204D8ACD2BCA16BE0EA1588E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6CD0613C1A1C69CF698916BE0EA3AF57" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_56AA5FE6204D8ACD2BCA16BE0EA1588E" 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_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5494EDA9859873DF49A16BE0EA15661" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_56AA5FE6204D8ACD2BCA16BE0EA1588E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5494EDA9859873DF49A16BE0EA15661" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5494EDA9859873DF49A16BE0EA15661" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E5494EDA9859873DF49A16BE0EA15661" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerContractsMember" xlink:label="loc_us-gaap_CustomerContractsMember_E6A756087083C41126F516BE0EA2262D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:to="loc_us-gaap_CustomerContractsMember_E6A756087083C41126F516BE0EA2262D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_47AB12ED10584FDE9EFF16BE0EA25EDE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:to="loc_us-gaap_CustomerRelationshipsMember_47AB12ED10584FDE9EFF16BE0EA25EDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_F403D0CE2914310B5CDB16BE0EA23058" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_F403D0CE2914310B5CDB16BE0EA23058" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TechnologyMember" xlink:label="loc_amrc_TechnologyMember_EAC779503C65D849A3E016BE0EA360B7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:to="loc_amrc_TechnologyMember_EAC779503C65D849A3E016BE0EA360B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_F238D1B2BD43F72E5C5F16BE0EA3470B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E6FE767B531D889AD60316BE0EA2A984" xlink:to="loc_us-gaap_TradeNamesMember_F238D1B2BD43F72E5C5F16BE0EA3470B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_C841DF13ECBF5C9A754016BE0EA368EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6CD0613C1A1C69CF698916BE0EA3AF57" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_C841DF13ECBF5C9A754016BE0EA368EF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsFutureAmortizationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_30D6373264597B6A2E5A4FFBDD6E1E81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_30D6373264597B6A2E5A4FFBDD6E1E81" 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_5F4E026864C4E023F96C4FFBDD6F4741" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_30D6373264597B6A2E5A4FFBDD6E1E81" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_5F4E026864C4E023F96C4FFBDD6F4741" 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_8F4D8056E36C2FC52FB64FFBDD6FD520_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5F4E026864C4E023F96C4FFBDD6F4741" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_8F4D8056E36C2FC52FB64FFBDD6FD520_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_8F4D8056E36C2FC52FB64FFBDD6FD520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5F4E026864C4E023F96C4FFBDD6F4741" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_8F4D8056E36C2FC52FB64FFBDD6FD520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_02D5453196CCE5FDB6A34FFBDD6FA9DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8F4D8056E36C2FC52FB64FFBDD6FD520" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_02D5453196CCE5FDB6A34FFBDD6FA9DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_1AE74EF3DBFC6ED2987E4FFBDD703FC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_1AE74EF3DBFC6ED2987E4FFBDD703FC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_B7FCA0BB4A0AC7D88C9C4FFBDD70384E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_B7FCA0BB4A0AC7D88C9C4FFBDD70384E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_6359864E86B3B3E8A2574FFBDD70216F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_6359864E86B3B3E8A2574FFBDD70216F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_6495DE12866FBF81142A4FFBDD709361" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_6495DE12866FBF81142A4FFBDD709361" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_F5D456FA29C3387929E14FFBDD707BC9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_F5D456FA29C3387929E14FFBDD707BC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_8C1C1256B92D8E1BE2394FFBDD71C1F1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_8C1C1256B92D8E1BE2394FFBDD71C1F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_40DF23B4ABD829EFED634FFBDD71BC3C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_85BABACF716B6E8DF7414FFBDD6F30DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_40DF23B4ABD829EFED634FFBDD71BC3C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_9B4783FF3B811CEF6351324B2DADEAFD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_36A797138CA8A7891231324B2DAD2FC8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_9B4783FF3B811CEF6351324B2DADEAFD" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_36A797138CA8A7891231324B2DAD2FC8" 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_530D197C823DE33FC98F324B2DADC283" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_36A797138CA8A7891231324B2DAD2FC8" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_530D197C823DE33FC98F324B2DADC283" 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_80337529BAF7B179E13E324B2DADAC37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_530D197C823DE33FC98F324B2DADC283" xlink:to="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37_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_80337529BAF7B179E13E324B2DADAC37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_530D197C823DE33FC98F324B2DADC283" xlink:to="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherUSRegionsMember" xlink:label="loc_amrc_OtherUSRegionsMember_A9443449AA022BC1472E324B2DADB04D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37" xlink:to="loc_amrc_OtherUSRegionsMember_A9443449AA022BC1472E324B2DADB04D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_USFederalMember" xlink:label="loc_amrc_USFederalMember_CC1A294E73B47FF6EA50324B2DADA9AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37" xlink:to="loc_amrc_USFederalMember_CC1A294E73B47FF6EA50324B2DADA9AF" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaMember" xlink:label="loc_amrc_CanadaMember_D3B17A5875B114963E9C324B2DAD9935" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37" xlink:to="loc_amrc_CanadaMember_D3B17A5875B114963E9C324B2DAD9935" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_9D52F4287E35F7521279324B2DAD812A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_80337529BAF7B179E13E324B2DADAC37" xlink:to="loc_us-gaap_CorporateAndOtherMember_9D52F4287E35F7521279324B2DAD812A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_9B4783FF3B811CEF6351324B2DADEAFD" xlink:to="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_5CF2D8C42815AF03E129324B2DADDECC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:to="loc_us-gaap_Goodwill_5CF2D8C42815AF03E129324B2DADDECC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_9DA88B1FF4B24A17ECA8324B2DADAB11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_9DA88B1FF4B24A17ECA8324B2DADAB11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_2AE0DD57203B890E64F8324B2DAD3202" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_2AE0DD57203B890E64F8324B2DAD3202" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_26AA8E356A0AF4E44775324B2DAD167E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_3234F995DF4ECEB5BD5A324B2DAD4019" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_26AA8E356A0AF4E44775324B2DAD167E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_43D9A7CE4839EB000120324B2DAD407B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_9B4783FF3B811CEF6351324B2DADEAFD" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_43D9A7CE4839EB000120324B2DAD407B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3B3345BF133FBADF4AE416BE0F6B30A8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_476CF87F13DEFFA02AB416BE0F699EC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3B3345BF133FBADF4AE416BE0F6B30A8" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_476CF87F13DEFFA02AB416BE0F699EC2" 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_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_39E843FA2121A13D8ADC16BE0F6A2297" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_476CF87F13DEFFA02AB416BE0F699EC2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_39E843FA2121A13D8ADC16BE0F6A2297" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_39E843FA2121A13D8ADC16BE0F6A2297" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_39E843FA2121A13D8ADC16BE0F6A2297" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerContractsMember" xlink:label="loc_us-gaap_CustomerContractsMember_F7CD3C464DDBAF2292A516BE0F6ABD55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:to="loc_us-gaap_CustomerContractsMember_F7CD3C464DDBAF2292A516BE0F6ABD55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_D111195423E408D8797016BE0F6B85DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:to="loc_us-gaap_CustomerRelationshipsMember_D111195423E408D8797016BE0F6B85DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_A1BB0EA39763ED194D7D16BE0F6B915A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_A1BB0EA39763ED194D7D16BE0F6B915A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TechnologyMember" xlink:label="loc_amrc_TechnologyMember_8F7ABC5BE0970EEC411A16BE0F6B9291" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:to="loc_amrc_TechnologyMember_8F7ABC5BE0970EEC411A16BE0F6B9291" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_DEA5E1EB645A1EA2A64716BE0F6BC4A5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C7DA08C5151F294ED6FD16BE0F6A7C4F" xlink:to="loc_us-gaap_TradeNamesMember_DEA5E1EB645A1EA2A64716BE0F6BC4A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_198D39492A47D012EC9616BE0F6CC258" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3B3345BF133FBADF4AE416BE0F6B30A8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_198D39492A47D012EC9616BE0F6CC258" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_77FB182947F93AC14B4816BE0F6C1D02" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3B3345BF133FBADF4AE416BE0F6B30A8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_77FB182947F93AC14B4816BE0F6C1D02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_6176F980B90F55AEAC9016BE0F6C8741" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3B3345BF133FBADF4AE416BE0F6B30A8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_6176F980B90F55AEAC9016BE0F6C8741" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/GoodwillAndIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxContingencyLineItems" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxContingencyTable" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_BE5248D0F5913DCB57AF5A2FAFDA7982" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_BE5248D0F5913DCB57AF5A2FAFDA7982" 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_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_A02ADAEAB53999FB93655A2FAFDA4D7C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_BE5248D0F5913DCB57AF5A2FAFDA7982" xlink:to="loc_srt_ConsolidatedEntitiesAxis_A02ADAEAB53999FB93655A2FAFDA4D7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_FD5BDEF7A6DBBB7B534E5A2FAFDA7F84_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_A02ADAEAB53999FB93655A2FAFDA4D7C" xlink:to="loc_srt_ConsolidatedEntitiesDomain_FD5BDEF7A6DBBB7B534E5A2FAFDA7F84_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_FD5BDEF7A6DBBB7B534E5A2FAFDA7F84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_A02ADAEAB53999FB93655A2FAFDA4D7C" xlink:to="loc_srt_ConsolidatedEntitiesDomain_FD5BDEF7A6DBBB7B534E5A2FAFDA7F84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SubsidiariesMember" xlink:label="loc_srt_SubsidiariesMember_F85F7A1DBA56DFE4ED1F5A2FAFDE11BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_FD5BDEF7A6DBBB7B534E5A2FAFDA7F84" xlink:to="loc_srt_SubsidiariesMember_F85F7A1DBA56DFE4ED1F5A2FAFDE11BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_8A0F79393EBD7976F7AE5A2FAFDE283D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_BE5248D0F5913DCB57AF5A2FAFDA7982" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_8A0F79393EBD7976F7AE5A2FAFDE283D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_8A0F79393EBD7976F7AE5A2FAFDE283D" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_8A0F79393EBD7976F7AE5A2FAFDE283D" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCountryMember" xlink:label="loc_us-gaap_ForeignCountryMember_CDE33E223173CF7F07A55A2FAFDE93EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005" xlink:to="loc_us-gaap_ForeignCountryMember_CDE33E223173CF7F07A55A2FAFDE93EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_1D8DC3524585B695B71F5A2FAFDE4436" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_1D8DC3524585B695B71F5A2FAFDE4436" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaap_DomesticCountryMember_E1255A339FC43CC681925A2FAFDEDFC5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_C9E85B967CAFFB4F6C865A2FAFDE9005" xlink:to="loc_us-gaap_DomesticCountryMember_E1255A339FC43CC681925A2FAFDEDFC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_FF53ED173C0105C8D3535A2FAFDEB5AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_FF53ED173C0105C8D3535A2FAFDEB5AF" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxAssetsDerivativeInstrumentsNet" xlink:label="loc_amrc_DeferredTaxAssetsDerivativeInstrumentsNet_69C606794A78879662815A2FAFDE8A11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_amrc_DeferredTaxAssetsDerivativeInstrumentsNet_69C606794A78879662815A2FAFDE8A11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_6D16392EBBAA165A08FB5A2FAFDE69F3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_OperatingLossCarryforwards_6D16392EBBAA165A08FB5A2FAFDE69F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_80690B9866C067520CAC5A2FAFDE80AD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_80690B9866C067520CAC5A2FAFDE80AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_B484396780E6BA3009995A2FAFDE9CAA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_B484396780E6BA3009995A2FAFDE9CAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_3D05048B05F088E337DA5A2FAFDECCEA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_3D05048B05F088E337DA5A2FAFDECCEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_D59D074CBB8B5621D6A65A2FAFDE69C7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_D59D074CBB8B5621D6A65A2FAFDE69C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_F999874ED0DA71BCC8505A2FAFDECEBD" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_F999874ED0DA71BCC8505A2FAFDECEBD" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_EarningswithNoRepatriationTax" xlink:label="loc_amrc_EarningswithNoRepatriationTax_FD26F4FDEADB5033F31F5A2FAFDE6476" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_amrc_EarningswithNoRepatriationTax_FD26F4FDEADB5033F31F5A2FAFDE6476" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_697EDB541AEDDDC4D5F45A2FAFDE7A68" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_697EDB541AEDDDC4D5F45A2FAFDE7A68" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateDeferredTaxLiabilityProvisionalIncomeTaxBenefit" xlink:label="loc_amrc_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateDeferredTaxLiabilityProvisionalIncomeTaxBenefit_AEADF0D3D4DDFC31046D5A2FAFDE4A3D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_120FE3D23D05829F4F3F5A2FAFDECE2D" xlink:to="loc_amrc_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateDeferredTaxLiabilityProvisionalIncomeTaxBenefit_AEADF0D3D4DDFC31046D5A2FAFDE4A3D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_3A313504C942EEACE75D4E81A16208B3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_CD66676AFE90E6ABF6484E81A16042FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_3A313504C942EEACE75D4E81A16208B3" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_CD66676AFE90E6ABF6484E81A16042FA" 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_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_BEA11D3BB1D994B586254E81A1616A5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_CD66676AFE90E6ABF6484E81A16042FA" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_BEA11D3BB1D994B586254E81A1616A5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_BEA11D3BB1D994B586254E81A1616A5D" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_BEA11D3BB1D994B586254E81A1616A5D" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_7959E7E57F255A3B0E644E81A16164E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211" xlink:to="loc_country_CA_7959E7E57F255A3B0E644E81A16164E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB" xlink:label="loc_country_GB_7EB59BBF6BBC610551C44E81A162BC76" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_0AF1EFED991DC061A9224E81A1618211" xlink:to="loc_country_GB_7EB59BBF6BBC610551C44E81A162BC76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNetAbstract" xlink:label="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_3A313504C942EEACE75D4E81A16208B3" xlink:to="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_EC89C448E6AA73BA74094E81A16294B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_EC89C448E6AA73BA74094E81A16294B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_64764634B114856BFF5D4E81A1620B41" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_64764634B114856BFF5D4E81A1620B41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_DE883671561E0FF7E3614E81A1631B64" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsOther_DE883671561E0FF7E3614E81A1631B64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_A620F7322330321ACD494E81A16375F1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_A620F7322330321ACD494E81A16375F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_8C0D153E17447BE6E2974E81A163205F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_8C0D153E17447BE6E2974E81A163205F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_FB7B51CFA790CD87A90C4E81A163CEE0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_FB7B51CFA790CD87A90C4E81A163CEE0" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxAssetsInterestLimitation" xlink:label="loc_amrc_DeferredTaxAssetsInterestLimitation_7408F97EF002343768C94E81A163911B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_amrc_DeferredTaxAssetsInterestLimitation_7408F97EF002343768C94E81A163911B" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxAssetsDeferredRevenue" xlink:label="loc_amrc_DeferredTaxAssetsDeferredRevenue_6A8A95B2E06F27BB3BAF4E81A16327CA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_amrc_DeferredTaxAssetsDeferredRevenue_6A8A95B2E06F27BB3BAF4E81A16327CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_C8D6192273EDBB7AB29C4E81A1630D42" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_C8D6192273EDBB7AB29C4E81A1630D42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_7C299C980605F4F67E3C4E81A1648AEA" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_7C299C980605F4F67E3C4E81A1648AEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_91D834C59ACBB349C2D64E81A164945D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetsNetAbstract_5C04B2D5EDC4F19003634E81A162A707" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_91D834C59ACBB349C2D64E81A164945D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesAbstract" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_3A313504C942EEACE75D4E81A16208B3" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_2F433A10146FE606EBC04E81A164A927" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_2F433A10146FE606EBC04E81A164A927" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxLiabilitiesContractRefinancing" xlink:label="loc_amrc_DeferredTaxLiabilitiesContractRefinancing_95A549EF39B1827A10334E81A16498B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_amrc_DeferredTaxLiabilitiesContractRefinancing_95A549EF39B1827A10334E81A16498B4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxLiabilitiesForeignAuthority" xlink:label="loc_amrc_DeferredTaxLiabilitiesForeignAuthority_FBDF9257D88F94440ED74E81A16510A9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_amrc_DeferredTaxLiabilitiesForeignAuthority_FBDF9257D88F94440ED74E81A16510A9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DeferredTaxLiabilitiesOutsideBasisDifference" xlink:label="loc_amrc_DeferredTaxLiabilitiesOutsideBasisDifference_0D82EE2E89E7A2D56F8F4E81A1655F25" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_amrc_DeferredTaxLiabilitiesOutsideBasisDifference_0D82EE2E89E7A2D56F8F4E81A1655F25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_95F5F4CB8234E1A8F3AA4E81A165925E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_95F5F4CB8234E1A8F3AA4E81A165925E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_FED37194D28F28C9555C4E81A1659580" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_FED37194D28F28C9555C4E81A1659580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_0035FBC735F8BD9D32F34E81A165250C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxLiabilitiesAbstract_A1DD0A55ABC0B96624354E81A16459C7" xlink:to="loc_us-gaap_DeferredTaxLiabilities_0035FBC735F8BD9D32F34E81A165250C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesDomesticAndForeignIncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesIncomeTaxProvisionDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesReconciliationOfEffectiveTaxRatesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/InvestmentFunds" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/InvestmentFundsDetails" 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_D650B16E846FA00EEEDA3A733F25CA80" 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_62C608AD06B73578048A3A733F2284EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_D650B16E846FA00EEEDA3A733F25CA80" xlink:to="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_62C608AD06B73578048A3A733F2284EA" 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_770C8ED819C57CF1728F3A733F226655" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_62C608AD06B73578048A3A733F2284EA" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_770C8ED819C57CF1728F3A733F226655" 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_5AD5D0C196A31478250C3A733F223F8B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_770C8ED819C57CF1728F3A733F226655" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B_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_5AD5D0C196A31478250C3A733F223F8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_770C8ED819C57CF1728F3A733F226655" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_CAEF63E1792FBD9A307B3A733F23BC47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_CAEF63E1792FBD9A307B3A733F23BC47" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_RestrictedCashMember" xlink:label="loc_amrc_RestrictedCashMember_9041419574C431C906973A733F230700" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_amrc_RestrictedCashMember_9041419574C431C906973A733F230700" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_6650C603E1021103F8D93A733F238868" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_AccountsReceivableMember_6650C603E1021103F8D93A733F238868" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CostsandEstimatedEarningsinExcessofBillingsMember" xlink:label="loc_amrc_CostsandEstimatedEarningsinExcessofBillingsMember_9F0467B506296E0977023A733F23FF0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_amrc_CostsandEstimatedEarningsinExcessofBillingsMember_9F0467B506296E0977023A733F23FF0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_DC43766A57E19224B0EE3A733F238B18" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_DC43766A57E19224B0EE3A733F238B18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherTypesMember" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_624969621EF58CFDCC993A733F235BC2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_624969621EF58CFDCC993A733F235BC2" 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_38C071362F439B8629B93A733F246D9D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_OtherAssetsMember_38C071362F439B8629B93A733F246D9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableMember" xlink:label="loc_us-gaap_AccountsPayableMember_F4EF4D528B60215BB0FC3A733F247815" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_AccountsPayableMember_F4EF4D528B60215BB0FC3A733F247815" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedLiabilitiesMember" xlink:label="loc_us-gaap_AccruedLiabilitiesMember_EC6EA0156AC7C21A6D733A733F24F1CC" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_EC6EA0156AC7C21A6D733A733F24F1CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesMember" xlink:label="loc_us-gaap_OtherLiabilitiesMember_9D7334FA4CBE0E67BA1A3A733F24BE17" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_OtherLiabilitiesMember_9D7334FA4CBE0E67BA1A3A733F24BE17" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LongTermDebtCurrentPortionMember" xlink:label="loc_amrc_LongTermDebtCurrentPortionMember_92AF85BF97AD649E08473A733F24A86A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_amrc_LongTermDebtCurrentPortionMember_92AF85BF97AD649E08473A733F24A86A" 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_A8F2309BB80487F011E83A733F25F6A2" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_LongTermDebtMember_A8F2309BB80487F011E83A733F25F6A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_3D68246DF61558C636653A733F254BFA" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5AD5D0C196A31478250C3A733F223F8B" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_3D68246DF61558C636653A733F254BFA" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_InvestmentFundsPurchaseOfSolarEnergySystems" xlink:label="loc_amrc_InvestmentFundsPurchaseOfSolarEnergySystems_01ACD2997741250A5F4B3A733F25052E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_D650B16E846FA00EEEDA3A733F25CA80" xlink:to="loc_amrc_InvestmentFundsPurchaseOfSolarEnergySystems_01ACD2997741250A5F4B3A733F25052E" 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_D111BA4F18EB4E25EF343A733F2533AE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_D650B16E846FA00EEEDA3A733F25CA80" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_D111BA4F18EB4E25EF343A733F2533AE" 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_712F15460C3B5DD169403A733F2627B9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_D650B16E846FA00EEEDA3A733F25CA80" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_712F15460C3B5DD169403A733F2627B9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/InvestmentFundsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebtConstructionAndTermLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_C0174F30ADEAED67F15F5F044757D017" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_DebtInstrumentTable_C0174F30ADEAED67F15F5F044757D017" 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_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_5CBE50AAED9C5CD180545F0447579031" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_C0174F30ADEAED67F15F5F044757D017" xlink:to="loc_us-gaap_VariableRateAxis_5CBE50AAED9C5CD180545F0447579031" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_7BFACF0563CE1A5509FD5F0447574B21_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_5CBE50AAED9C5CD180545F0447579031" xlink:to="loc_us-gaap_VariableRateDomain_7BFACF0563CE1A5509FD5F0447574B21_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_7BFACF0563CE1A5509FD5F0447574B21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_5CBE50AAED9C5CD180545F0447579031" xlink:to="loc_us-gaap_VariableRateDomain_7BFACF0563CE1A5509FD5F0447574B21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_596BE453174770B72D505F0447580335" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_7BFACF0563CE1A5509FD5F0447574B21" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_596BE453174770B72D505F0447580335" 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_3A662B292668855C991D5F044758C8DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_C0174F30ADEAED67F15F5F044757D017" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_3A662B292668855C991D5F044758C8DD" 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_C89162A07686C4783A595F0447583D09_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3A662B292668855C991D5F044758C8DD" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_C89162A07686C4783A595F0447583D09_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_C89162A07686C4783A595F0447583D09" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3A662B292668855C991D5F044758C8DD" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_C89162A07686C4783A595F0447583D09" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TermLoanMember" xlink:label="loc_amrc_TermLoanMember_299C4592CBB1F04E18245F04475800D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_C89162A07686C4783A595F0447583D09" xlink:to="loc_amrc_TermLoanMember_299C4592CBB1F04E18245F04475800D6" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TermLoanJoinderAgreementMember" xlink:label="loc_amrc_TermLoanJoinderAgreementMember_83D12A4B70550CEC82D35F044759B162" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_C89162A07686C4783A595F0447583D09" xlink:to="loc_amrc_TermLoanJoinderAgreementMember_83D12A4B70550CEC82D35F044759B162" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_ABCEB058E6A79DE400BB5F044759D87C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_C0174F30ADEAED67F15F5F044757D017" xlink:to="loc_us-gaap_DebtInstrumentAxis_ABCEB058E6A79DE400BB5F044759D87C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_ABCEB058E6A79DE400BB5F044759D87C" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_ABCEB058E6A79DE400BB5F044759D87C" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NonRecourseConstructionTermLoanSolarPVProjectMember" xlink:label="loc_amrc_NonRecourseConstructionTermLoanSolarPVProjectMember_36E63EF1ED84AD4F48395F0447597F8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:to="loc_amrc_NonRecourseConstructionTermLoanSolarPVProjectMember_36E63EF1ED84AD4F48395F0447597F8C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SevenPointFivePercentTermLoanDueInAugust2022Member" xlink:label="loc_amrc_SevenPointFivePercentTermLoanDueInAugust2022Member_970C6014DEFDA6044F9A5F0447599971" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:to="loc_amrc_SevenPointFivePercentTermLoanDueInAugust2022Member_970C6014DEFDA6044F9A5F0447599971" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_FivePointOneFivePercentTermLoanDueDecember2038Member" xlink:label="loc_amrc_FivePointOneFivePercentTermLoanDueDecember2038Member_8B233BB938D7FF1C69465F044759D416" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:to="loc_amrc_FivePointOneFivePercentTermLoanDueDecember2038Member_8B233BB938D7FF1C69465F044759D416" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDueInJune2033Member" xlink:label="loc_amrc_VariableRateTermLoanDueInJune2033Member_99AFD7420A991557EE545F04475A0EA9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:to="loc_amrc_VariableRateTermLoanDueInJune2033Member_99AFD7420A991557EE545F04475A0EA9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDueInSeptember2029Member" xlink:label="loc_amrc_VariableRateTermLoanDueInSeptember2029Member_A409A85FF2D4A8521F5E5F04475A4BFC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E2DBDF2BEEB1B1732A4A5F04475958AB" xlink:to="loc_amrc_VariableRateTermLoanDueInSeptember2029Member_A409A85FF2D4A8521F5E5F04475A4BFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_438652B4B4AC9507BBE25F04475AF0F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_438652B4B4AC9507BBE25F04475AF0F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_83F74737A5B8A211BC9C5F04475ADC58" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_83F74737A5B8A211BC9C5F04475ADC58" 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_C890B39D5F9F17B295B05F04475A9327" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_LongTermDebt_C890B39D5F9F17B295B05F04475A9327" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_D3F48E009E8E839CFB5A5F04475B2C01" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_D3F48E009E8E839CFB5A5F04475B2C01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_B9CA14D2EDF5A76862A85F04475B893B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_B9CA14D2EDF5A76862A85F04475B893B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_CC8308B11BBA841380925F04475B80B9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_CC8308B11BBA841380925F04475B80B9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineOfCreditCovenantComplianceNumberOfProjectsNotInCompliance" xlink:label="loc_amrc_LineOfCreditCovenantComplianceNumberOfProjectsNotInCompliance_26AC5F50C38B4D31D7F35F07571A1935" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_amrc_LineOfCreditCovenantComplianceNumberOfProjectsNotInCompliance_26AC5F50C38B4D31D7F35F07571A1935" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsWaivingComplianceFailure" xlink:label="loc_amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsWaivingComplianceFailure_53D0D50B0DEFA8EA75D25F094ABF64A5" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsWaivingComplianceFailure_53D0D50B0DEFA8EA75D25F094ABF64A5" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsNotWaivingComplianceFailure" xlink:label="loc_amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsNotWaivingComplianceFailure_5166BA61BEA984883B115F0AD190B1F0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_amrc_LineOfCreditCovenantComplianceNumberOfFinancialInstitutionsNotWaivingComplianceFailure_5166BA61BEA984883B115F0AD190B1F0" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineOfCreditCovenantComplianceCovenantFailureFee" xlink:label="loc_amrc_LineOfCreditCovenantComplianceCovenantFailureFee_CC366709A3E71DC83E8A5F04475BD7C4" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_79E932674B9690B7203D5F04475AB87E" xlink:to="loc_amrc_LineOfCreditCovenantComplianceCovenantFailureFee_CC366709A3E71DC83E8A5F04475BD7C4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebtScheduleOfLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_8BF15D1010AB9D56B7165EE6C849FD82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_DebtInstrumentTable_8BF15D1010AB9D56B7165EE6C849FD82" 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_34578381E651696C38B65EE6C849ABB3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8BF15D1010AB9D56B7165EE6C849FD82" xlink:to="loc_us-gaap_CreditFacilityAxis_34578381E651696C38B65EE6C849ABB3" 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_F92083653F21A01E648B5EE6C84A2D10_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_34578381E651696C38B65EE6C849ABB3" xlink:to="loc_us-gaap_CreditFacilityDomain_F92083653F21A01E648B5EE6C84A2D10_default" 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_F92083653F21A01E648B5EE6C84A2D10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_34578381E651696C38B65EE6C849ABB3" xlink:to="loc_us-gaap_CreditFacilityDomain_F92083653F21A01E648B5EE6C84A2D10" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_RevolvingSeniorSecuredCreditFacilityMember" xlink:label="loc_amrc_RevolvingSeniorSecuredCreditFacilityMember_BBF0E8301CBE718A586E5EE6C84AF219" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_F92083653F21A01E648B5EE6C84A2D10" xlink:to="loc_amrc_RevolvingSeniorSecuredCreditFacilityMember_BBF0E8301CBE718A586E5EE6C84AF219" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_D608415D51CC39E1D3EC5EE6C84A2230" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8BF15D1010AB9D56B7165EE6C849FD82" xlink:to="loc_us-gaap_DebtInstrumentAxis_D608415D51CC39E1D3EC5EE6C84A2230" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_D608415D51CC39E1D3EC5EE6C84A2230" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_D608415D51CC39E1D3EC5EE6C84A2230" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SixPointThreeFourFivePercentTermNoteDueInFebruary2021Member" xlink:label="loc_amrc_SixPointThreeFourFivePercentTermNoteDueInFebruary2021Member_247CEB063589F8F951175EE6C84B47A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_SixPointThreeFourFivePercentTermNoteDueInFebruary2021Member_247CEB063589F8F951175EE6C84B47A7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member" xlink:label="loc_amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member_2648C14C7D3EADD64E815EE6C84B5DFF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member_2648C14C7D3EADD64E815EE6C84B5DFF" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDueInDecember2024Member" xlink:label="loc_amrc_VariableRateTermLoanDueInDecember2024Member_165E5468A5C189EEA46D5EE6C84B3021" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateTermLoanDueInDecember2024Member_165E5468A5C189EEA46D5EE6C84B3021" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member" xlink:label="loc_amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member_991053439518768EC11B5EE6C84B31F9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member_991053439518768EC11B5EE6C84B31F9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SixPointOneOneZeroPercentTermNoteDueinSeptember2028Member" xlink:label="loc_amrc_SixPointOneOneZeroPercentTermNoteDueinSeptember2028Member_45EA071E1AB461EA9AC15EE6C84B5E06" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_SixPointOneOneZeroPercentTermNoteDueinSeptember2028Member_45EA071E1AB461EA9AC15EE6C84B5E06" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateConstructionToTermLoanPayableInQuarterlyInstallmentsThroughMarch2020Member" xlink:label="loc_amrc_VariableRateConstructionToTermLoanPayableInQuarterlyInstallmentsThroughMarch2020Member_BE998325E966C18E7E1A5EE6C84CD612" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateConstructionToTermLoanPayableInQuarterlyInstallmentsThroughMarch2020Member_BE998325E966C18E7E1A5EE6C84CD612" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDuein2023MemberMember" xlink:label="loc_amrc_VariableRateTermLoanDuein2023MemberMember_2D0587B92755DFF796DD5EE6C84C401E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateTermLoanDuein2023MemberMember_2D0587B92755DFF796DD5EE6C84C401E" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_FourPointNineFivePercentTermNotespayableinsemiquarterlyinstallmentsthroughJuly2031Member" xlink:label="loc_amrc_FourPointNineFivePercentTermNotespayableinsemiquarterlyinstallmentsthroughJuly2031Member_F8A293C564D4352847A75EE6C84C4D82" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_FourPointNineFivePercentTermNotespayableinsemiquarterlyinstallmentsthroughJuly2031Member_F8A293C564D4352847A75EE6C84C4D82" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_FixedRateConstructionTermLoan2017TermLoanPhaseMember" xlink:label="loc_amrc_FixedRateConstructionTermLoan2017TermLoanPhaseMember_2A08C7645B0AEAEE713B5EE6C84C4564" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_FixedRateConstructionTermLoan2017TermLoanPhaseMember_2A08C7645B0AEAEE713B5EE6C84C4564" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NonRecourseConstructionTermLoanBiogasFacilityProjectMember" xlink:label="loc_amrc_NonRecourseConstructionTermLoanBiogasFacilityProjectMember_5F9CA9D039D6DCE812425EE6C84C0D16" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_NonRecourseConstructionTermLoanBiogasFacilityProjectMember_5F9CA9D039D6DCE812425EE6C84C0D16" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LimitedRecourseConstructionTermLoanMember" xlink:label="loc_amrc_LimitedRecourseConstructionTermLoanMember_47B55F5C19E451DE961F5EE6C84C82C7" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_LimitedRecourseConstructionTermLoanMember_47B55F5C19E451DE961F5EE6C84C82C7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateConstructionTermLoan2017Member" xlink:label="loc_amrc_VariableRateConstructionTermLoan2017Member_F441F8E3F2157D81CCB15EE6C84CB778" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateConstructionTermLoan2017Member_F441F8E3F2157D81CCB15EE6C84CB778" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NonRecourseConstructionTermLoanSolarPVProjectMember" xlink:label="loc_amrc_NonRecourseConstructionTermLoanSolarPVProjectMember_0E2C99346829332F66DD5EE6C84DFA1C" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_NonRecourseConstructionTermLoanSolarPVProjectMember_0E2C99346829332F66DD5EE6C84DFA1C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_FivePointOneFivePercentTermLoanDueDecember2038Member" xlink:label="loc_amrc_FivePointOneFivePercentTermLoanDueDecember2038Member_E2426444A1804F1DFF965EE6C84D0BF2" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_FivePointOneFivePercentTermLoanDueDecember2038Member_E2426444A1804F1DFF965EE6C84D0BF2" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDueInJune2033Member" xlink:label="loc_amrc_VariableRateTermLoanDueInJune2033Member_A04214034D51263DDD405EE6C84D7B41" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateTermLoanDueInJune2033Member_A04214034D51263DDD405EE6C84D7B41" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateLoanDueJune2018Member" xlink:label="loc_amrc_VariableRateLoanDueJune2018Member_6F67AC22CEFFA4AC5D525EE6C84DA813" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateLoanDueJune2018Member_6F67AC22CEFFA4AC5D525EE6C84DA813" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableRateTermLoanDueInSeptember2029Member" xlink:label="loc_amrc_VariableRateTermLoanDueInSeptember2029Member_AC7AE7B281F0A725A1895EE6C84D4995" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8C905D96925B81A5EAD05EE6C84AD220" xlink:to="loc_amrc_VariableRateTermLoanDueInSeptember2029Member_AC7AE7B281F0A725A1895EE6C84D4995" 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_BED041E6897CB80D6AC15EE6C84D5BCB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8BF15D1010AB9D56B7165EE6C849FD82" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_BED041E6897CB80D6AC15EE6C84D5BCB" 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_1BCDD976AE60248B89875EE6C84E5E51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_BED041E6897CB80D6AC15EE6C84D5BCB" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1BCDD976AE60248B89875EE6C84E5E51_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_1BCDD976AE60248B89875EE6C84E5E51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_BED041E6897CB80D6AC15EE6C84D5BCB" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1BCDD976AE60248B89875EE6C84E5E51" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TermLoanMember" xlink:label="loc_amrc_TermLoanMember_C97581AC4BEFF69B64EA5EE6C84E0193" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1BCDD976AE60248B89875EE6C84E5E51" xlink:to="loc_amrc_TermLoanMember_C97581AC4BEFF69B64EA5EE6C84E0193" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_65516E6BEBE57D2F9D235EE6C84E73AA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1BCDD976AE60248B89875EE6C84E5E51" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_65516E6BEBE57D2F9D235EE6C84E73AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_A166C09D576BED8E0A9B5EE6C84E7677" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_A166C09D576BED8E0A9B5EE6C84E7677" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4F19DB6350C969799F895EE6C84FA01B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4F19DB6350C969799F895EE6C84FA01B" 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_8164CB71E56C9FA856255EE6C84F48F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_LongTermDebt_8164CB71E56C9FA856255EE6C84F48F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_98C3B121FDAEA388B8B15EE6C84F6A6F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_98C3B121FDAEA388B8B15EE6C84F6A6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFinanceCostsNet" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_E99D368C61383AE2E0C05EE6C84F9BD0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_E99D368C61383AE2E0C05EE6C84F9BD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_AA36C5A462DE4397F01E5EE6C84F2843" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_AA36C5A462DE4397F01E5EE6C84F2843" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CapitalLeasesFutureMinimumPaymentsDueAmountAttributableToInterest" xlink:label="loc_amrc_CapitalLeasesFutureMinimumPaymentsDueAmountAttributableToInterest_586B575673BD47C0AD0E5EE6C84F1408" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_amrc_CapitalLeasesFutureMinimumPaymentsDueAmountAttributableToInterest_586B575673BD47C0AD0E5EE6C84F1408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_51650A4320D342AF68595EE6C850E2C0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FA80E2D6AADF9E4D56E5EE6C84EB7A3" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_51650A4320D342AF68595EE6C850E2C0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebtScheduleOfMaturitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebtSeniorSecuredCreditFacilityRevolverAndTermLoanDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" 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_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_38AF3D4AB43FD32408B35A594DCB020B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_38AF3D4AB43FD32408B35A594DCB020B" 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_50E1BE3340DC16A068F75A594DCB466D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_38AF3D4AB43FD32408B35A594DCB020B" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_50E1BE3340DC16A068F75A594DCB466D_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_50E1BE3340DC16A068F75A594DCB466D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_38AF3D4AB43FD32408B35A594DCB020B" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_50E1BE3340DC16A068F75A594DCB466D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TermLoanMember" xlink:label="loc_amrc_TermLoanMember_E1951469D2FD684E9D695A594DCC0B34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_50E1BE3340DC16A068F75A594DCB466D" xlink:to="loc_amrc_TermLoanMember_E1951469D2FD684E9D695A594DCC0B34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_B3D465E52C4DFD8C92845A594DCB182B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_50E1BE3340DC16A068F75A594DCB466D" xlink:to="loc_us-gaap_LineOfCreditMember_B3D465E52C4DFD8C92845A594DCB182B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LetterOfCreditMember" xlink:label="loc_us-gaap_LetterOfCreditMember_697E7B2D677E24F4DC395A6D7FEB787D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_50E1BE3340DC16A068F75A594DCB466D" xlink:to="loc_us-gaap_LetterOfCreditMember_697E7B2D677E24F4DC395A6D7FEB787D" xlink:type="arc" />
    <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_A8AA8E42EBA61FA008E35A594DCCBD03" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_us-gaap_CreditFacilityAxis_A8AA8E42EBA61FA008E35A594DCCBD03" 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_663E8E13DBEBC03B22945A594DCC99BF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_A8AA8E42EBA61FA008E35A594DCCBD03" xlink:to="loc_us-gaap_CreditFacilityDomain_663E8E13DBEBC03B22945A594DCC99BF_default" 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_663E8E13DBEBC03B22945A594DCC99BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_A8AA8E42EBA61FA008E35A594DCCBD03" xlink:to="loc_us-gaap_CreditFacilityDomain_663E8E13DBEBC03B22945A594DCC99BF" 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_5CC2892AC00118FE72EB5A594DCDD1F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_663E8E13DBEBC03B22945A594DCC99BF" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_5CC2892AC00118FE72EB5A594DCDD1F7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_TermLoanMember" xlink:label="loc_amrc_TermLoanMember_0D9F53C918C4C41102A55A594DCD66CF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_663E8E13DBEBC03B22945A594DCC99BF" xlink:to="loc_amrc_TermLoanMember_0D9F53C918C4C41102A55A594DCD66CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_E1598E4E694B0C4002E55A594DCD2502" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_us-gaap_DebtInstrumentAxis_E1598E4E694B0C4002E55A594DCD2502" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_C3FADA7A1C5437B883855A594DCDEC7B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_E1598E4E694B0C4002E55A594DCD2502" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_C3FADA7A1C5437B883855A594DCDEC7B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_C3FADA7A1C5437B883855A594DCDEC7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_E1598E4E694B0C4002E55A594DCD2502" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_C3FADA7A1C5437B883855A594DCDEC7B" 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_E8BADEB4B5A193CFB6A15A594DCD904D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_C3FADA7A1C5437B883855A594DCDEC7B" xlink:to="loc_us-gaap_NotesPayableToBanksMember_E8BADEB4B5A193CFB6A15A594DCD904D" 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_1444F163BD7B6B1C24EE5A594DCEEEF6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_srt_RangeAxis_1444F163BD7B6B1C24EE5A594DCEEEF6" 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_2A6656379A99CC7FFCEE5A594DCE8B86_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1444F163BD7B6B1C24EE5A594DCEEEF6" xlink:to="loc_srt_RangeMember_2A6656379A99CC7FFCEE5A594DCE8B86_default" 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_2A6656379A99CC7FFCEE5A594DCE8B86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1444F163BD7B6B1C24EE5A594DCEEEF6" xlink:to="loc_srt_RangeMember_2A6656379A99CC7FFCEE5A594DCE8B86" 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_A104B901ED40EBD7603C5A594DCE71CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2A6656379A99CC7FFCEE5A594DCE8B86" xlink:to="loc_srt_MinimumMember_A104B901ED40EBD7603C5A594DCE71CA" 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_7BB723A5392F6355F58B5A594DCFA195" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2A6656379A99CC7FFCEE5A594DCE8B86" xlink:to="loc_srt_MaximumMember_7BB723A5392F6355F58B5A594DCFA195" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_20BB1388C65AE53E21FC5A594DCFB6B9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_us-gaap_VariableRateAxis_20BB1388C65AE53E21FC5A594DCFB6B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_20BB1388C65AE53E21FC5A594DCFB6B9" xlink:to="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_20BB1388C65AE53E21FC5A594DCFB6B9" xlink:to="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BaseRateMember" xlink:label="loc_us-gaap_BaseRateMember_B4ACA6DBDE64B5BC3CA55A594DCFD01D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF" xlink:to="loc_us-gaap_BaseRateMember_B4ACA6DBDE64B5BC3CA55A594DCFD01D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsEffectiveSwapRateMember" xlink:label="loc_us-gaap_FederalFundsEffectiveSwapRateMember_053D236855D6F7CAF68C5A594DCFBB15" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF" xlink:to="loc_us-gaap_FederalFundsEffectiveSwapRateMember_053D236855D6F7CAF68C5A594DCFBB15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B884154AA19B503753235A594DD01021" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_47F12E53097FFAA8A7405A594DCFDDAF" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B884154AA19B503753235A594DD01021" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CovenantPeriodAxis" xlink:label="loc_amrc_CovenantPeriodAxis_54D3D98AC52A803853385A594DD0F5F9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8DE662FAD2677433C8645A594DCA6A97" xlink:to="loc_amrc_CovenantPeriodAxis_54D3D98AC52A803853385A594DD0F5F9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CovenantPeriodDomain" xlink:label="loc_amrc_CovenantPeriodDomain_CB849A82C08D68A96C8C5A594DD00E46_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_amrc_CovenantPeriodAxis_54D3D98AC52A803853385A594DD0F5F9" xlink:to="loc_amrc_CovenantPeriodDomain_CB849A82C08D68A96C8C5A594DD00E46_default" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CovenantPeriodDomain" xlink:label="loc_amrc_CovenantPeriodDomain_CB849A82C08D68A96C8C5A594DD00E46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_amrc_CovenantPeriodAxis_54D3D98AC52A803853385A594DD0F5F9" xlink:to="loc_amrc_CovenantPeriodDomain_CB849A82C08D68A96C8C5A594DD00E46" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_AsoftheendofeachfiscalquarterendingSeptember302016December312016March312017andJune302017Member" xlink:label="loc_amrc_AsoftheendofeachfiscalquarterendingSeptember302016December312016March312017andJune302017Member_2053A6478E4873D069285A594DD0C092" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_amrc_CovenantPeriodDomain_CB849A82C08D68A96C8C5A594DD00E46" xlink:to="loc_amrc_AsoftheendofeachfiscalquarterendingSeptember302016December312016March312017andJune302017Member_2053A6478E4873D069285A594DD0C092" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineofCreditFacilityNumberofBanks" xlink:label="loc_amrc_LineofCreditFacilityNumberofBanks_9E07B217A6D60CA686E55A594DD15218" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_LineofCreditFacilityNumberofBanks_9E07B217A6D60CA686E55A594DD15218" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LineOfCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_amrc_LineOfCreditFacilityAdditionalBorrowingCapacity_29D82B4B190EEB5B1A875A594DD18554" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_LineOfCreditFacilityAdditionalBorrowingCapacity_29D82B4B190EEB5B1A875A594DD18554" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_3A231EAE3E0D4166C1B45A594DD10BBC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_3A231EAE3E0D4166C1B45A594DD10BBC" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DebtInstrumentCovenantTotalFundedDebtToEBITDARatioMaximum" xlink:label="loc_amrc_DebtInstrumentCovenantTotalFundedDebtToEBITDARatioMaximum_DC1521C2F87DDC1635405A594DD11F0E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_DebtInstrumentCovenantTotalFundedDebtToEBITDARatioMaximum_DC1521C2F87DDC1635405A594DD11F0E" 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_7528D7822C422008447D5A594DD27CD8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LongTermDebt_7528D7822C422008447D5A594DD27CD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_33677FEE0BE469935B145A594DD2CEEA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_33677FEE0BE469935B145A594DD2CEEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_5DB87177214204F98AF05A594DD2CD3A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCredit_5DB87177214204F98AF05A594DD2CD3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_531DBF4E0732DA6462B35A594DD25BA3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_531DBF4E0732DA6462B35A594DD25BA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_8529620FBE5A90C4514E5A594DD2CBE5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_8529620FBE5A90C4514E5A594DD2CBE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6751689754EEF06782DD5A594DD2C58A" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6751689754EEF06782DD5A594DD2C58A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_2374DE8FBDE2DF7CDD4B5A594DD3BA63" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_2374DE8FBDE2DF7CDD4B5A594DD3BA63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityPeriodicPaymentPrincipal" xlink:label="loc_us-gaap_LineOfCreditFacilityPeriodicPaymentPrincipal_3EBC96DA02548992299F5A594DD3ABCE" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_us-gaap_LineOfCreditFacilityPeriodicPaymentPrincipal_3EBC96DA02548992299F5A594DD3ABCE" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DebtCovenantMaximumPercentageofCompanysConsolidatedStockholdersEquityEligibleforInvestmentInorLoanToNonCoreSubsidiaries" xlink:label="loc_amrc_DebtCovenantMaximumPercentageofCompanysConsolidatedStockholdersEquityEligibleforInvestmentInorLoanToNonCoreSubsidiaries_083A2CA911492CF4E24F5A594DD33C73" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_DebtCovenantMaximumPercentageofCompanysConsolidatedStockholdersEquityEligibleforInvestmentInorLoanToNonCoreSubsidiaries_083A2CA911492CF4E24F5A594DD33C73" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DebtCovenantMaximumEBITDARequirement" xlink:label="loc_amrc_DebtCovenantMaximumEBITDARequirement_4F967FB2124C591FC65F5A594DD37F47" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_DebtCovenantMaximumEBITDARequirement_4F967FB2124C591FC65F5A594DD37F47" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_DebtCovenantMinimumDebtServiceCoverageRatio" xlink:label="loc_amrc_DebtCovenantMinimumDebtServiceCoverageRatio_B35E64A9E38B8904EC4D5A594DD363F2" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_75E52A09B2AAC0DF81D95A594DD14A54" xlink:to="loc_amrc_DebtCovenantMinimumDebtServiceCoverageRatio_B35E64A9E38B8904EC4D5A594DD363F2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/LongTermDebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/NonControllingInterestsAndEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/NonControllingInterestsAndEquityDetails" 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_C8350B2AA486F21A18F55EDC634CB5F2" 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_09580324A0CC654388015EDC634B5517" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_09580324A0CC654388015EDC634B5517" 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_RangeAxis" xlink:label="loc_srt_RangeAxis_42A284839B8568FF111C5EDC634B1D02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_09580324A0CC654388015EDC634B5517" xlink:to="loc_srt_RangeAxis_42A284839B8568FF111C5EDC634B1D02" 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_B5CE12BFD231ECD0EED25EDC634B8D81_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_42A284839B8568FF111C5EDC634B1D02" xlink:to="loc_srt_RangeMember_B5CE12BFD231ECD0EED25EDC634B8D81_default" 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_B5CE12BFD231ECD0EED25EDC634B8D81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_42A284839B8568FF111C5EDC634B1D02" xlink:to="loc_srt_RangeMember_B5CE12BFD231ECD0EED25EDC634B8D81" 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_5C0BAE45FA6BE953A58E5EDC634CF478" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_B5CE12BFD231ECD0EED25EDC634B8D81" xlink:to="loc_srt_MinimumMember_5C0BAE45FA6BE953A58E5EDC634CF478" 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_0234A20775286FA7F0A15EDC634C5C47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_B5CE12BFD231ECD0EED25EDC634B8D81" xlink:to="loc_srt_MaximumMember_0234A20775286FA7F0A15EDC634C5C47" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableInterestEntityTermofExtensionofCallOption" xlink:label="loc_amrc_VariableInterestEntityTermofExtensionofCallOption_821BA98E1C0C8587CB0D5EDC634D1015" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_amrc_VariableInterestEntityTermofExtensionofCallOption_821BA98E1C0C8587CB0D5EDC634D1015" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableInterestEntityTermofExtensionofPutOption" xlink:label="loc_amrc_VariableInterestEntityTermofExtensionofPutOption_9F24D1FBE6C53DE816245EDC634DC442" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_amrc_VariableInterestEntityTermofExtensionofPutOption_9F24D1FBE6C53DE816245EDC634DC442" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableInterestEntityInvestorContributedCapitalBalancePercentage" xlink:label="loc_amrc_VariableInterestEntityInvestorContributedCapitalBalancePercentage_749AF92B98D1FCB71A295EDE196C01EB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_amrc_VariableInterestEntityInvestorContributedCapitalBalancePercentage_749AF92B98D1FCB71A295EDE196C01EB" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_VariableInterestEntityAggregateExercisePriceOfPutOptions" xlink:label="loc_amrc_VariableInterestEntityAggregateExercisePriceOfPutOptions_C39DC2189384B122685E5EDC634DB8E2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_amrc_VariableInterestEntityAggregateExercisePriceOfPutOptions_C39DC2189384B122685E5EDC634DB8E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_D55E2A7C69E461066CB95EDC634D3F5D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_C8350B2AA486F21A18F55EDC634CB5F2" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_D55E2A7C69E461066CB95EDC634D3F5D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/OtherExpensesNet" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/OtherExpensesNetDeferredFinancingCostsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/OtherExpensesNetDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/OtherExpensesNetTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/PropertyAndEquipment" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/PropertyAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_F8260385246E79A2947D16BE0CF1EF0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_F8260385246E79A2947D16BE0CF1EF0E" 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_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1B7FD76F5085F8294BB016BE0CF105DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_F8260385246E79A2947D16BE0CF1EF0E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1B7FD76F5085F8294BB016BE0CF105DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1B7FD76F5085F8294BB016BE0CF105DF" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1B7FD76F5085F8294BB016BE0CF105DF" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_F4AA19423B63E9BA473116BE0CF15D69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_F4AA19423B63E9BA473116BE0CF15D69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaap_ComputerEquipmentMember_D1209FF9AF516512639816BE0CF25241" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:to="loc_us-gaap_ComputerEquipmentMember_D1209FF9AF516512639816BE0CF25241" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_1F99BC0D4133FBD2FEC216BE0CF2FE3E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_1F99BC0D4133FBD2FEC216BE0CF2FE3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaap_AutomobilesMember_25B0884B9DB368F9658B16BE0CF2A9DB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:to="loc_us-gaap_AutomobilesMember_25B0884B9DB368F9658B16BE0CF2A9DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaap_LandMember_3A127FA38B1A4978CDD616BE0CF2E159" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EF8B2ED21CCDC61EE0AE16BE0CF1C2A6" xlink:to="loc_us-gaap_LandMember_3A127FA38B1A4978CDD616BE0CF2E159" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_AFF61444DD5078BFC38316BE0CF3B4D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_AFF61444DD5078BFC38316BE0CF3B4D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_46CD3F02C30B0BF435A116BE0CF34CB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_46CD3F02C30B0BF435A116BE0CF34CB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_85F93A5BBF48101C7D7116BE0CF370B1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_85F93A5BBF48101C7D7116BE0CF370B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_6792E632E5E2EECC104716BE0CF318B0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BD3325BBA15A0BF0E5DB16BE0CF2C6D9" xlink:to="loc_us-gaap_Depreciation_6792E632E5E2EECC104716BE0CF318B0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/PropertyAndEquipmentTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/QuarterlyInformationUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/QuarterlyInformationUnauditedDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/QuarterlyInformationUnauditedTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomers" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomersAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_6322FA96C094FC45EBA05A594F11F137" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_6322FA96C094FC45EBA05A594F11F137" 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_InitialApplicationPeriodCumulativeEffectTransitionAxis" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B0020712EEB7D00C93A25A594F118DE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_6322FA96C094FC45EBA05A594F11F137" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B0020712EEB7D00C93A25A594F118DE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_A2C22EB79651EBFE9A5F5A594F11CCEE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B0020712EEB7D00C93A25A594F118DE9" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_A2C22EB79651EBFE9A5F5A594F11CCEE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_A2C22EB79651EBFE9A5F5A594F11CCEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B0020712EEB7D00C93A25A594F118DE9" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_A2C22EB79651EBFE9A5F5A594F11CCEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member" xlink:label="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_A92E193F065512BAE06C5A594F12C869" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_A2C22EB79651EBFE9A5F5A594F11CCEE" xlink:to="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_A92E193F065512BAE06C5A594F12C869" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_FB88F3FE7CC52EFF8DEC5A594F125EF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_6322FA96C094FC45EBA05A594F11F137" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_FB88F3FE7CC52EFF8DEC5A594F125EF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_5CCD32C1734BF786FAEA5A594F1263F5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_FB88F3FE7CC52EFF8DEC5A594F125EF1" xlink:to="loc_us-gaap_TypeOfAdoptionMember_5CCD32C1734BF786FAEA5A594F1263F5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_5CCD32C1734BF786FAEA5A594F1263F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_FB88F3FE7CC52EFF8DEC5A594F125EF1" xlink:to="loc_us-gaap_TypeOfAdoptionMember_5CCD32C1734BF786FAEA5A594F1263F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_A6F9EE976D16174F8EB75A594F122BA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_5CCD32C1734BF786FAEA5A594F1263F5" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_A6F9EE976D16174F8EB75A594F122BA4" 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_459F070226856E86304D5A594F13331D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_6322FA96C094FC45EBA05A594F11F137" xlink:to="loc_srt_RangeAxis_459F070226856E86304D5A594F13331D" 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_5CCC7681DFAC6B3B931B5A594F138FEE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_459F070226856E86304D5A594F13331D" xlink:to="loc_srt_RangeMember_5CCC7681DFAC6B3B931B5A594F138FEE_default" 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_5CCC7681DFAC6B3B931B5A594F138FEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_459F070226856E86304D5A594F13331D" xlink:to="loc_srt_RangeMember_5CCC7681DFAC6B3B931B5A594F138FEE" 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_8DAED0B6551EAECC2C1E5A594F1370BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5CCC7681DFAC6B3B931B5A594F138FEE" xlink:to="loc_srt_MinimumMember_8DAED0B6551EAECC2C1E5A594F1370BC" 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_50F21F7C6B7B5387C9B85A594F1380C9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5CCC7681DFAC6B3B931B5A594F138FEE" xlink:to="loc_srt_MaximumMember_50F21F7C6B7B5387C9B85A594F1380C9" 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_6E95F9ED45533F5124CE5A594F14D589" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_6E95F9ED45533F5124CE5A594F14D589" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractReceivableRetainagePercentage" xlink:label="loc_amrc_ContractReceivableRetainagePercentage_988E186E59AA398ABD675A594F14D1CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_amrc_ContractReceivableRetainagePercentage_988E186E59AA398ABD675A594F14D1CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_1233C4375BE176CCD6355A594F15F526" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_1233C4375BE176CCD6355A594F15F526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetReclassifiedToReceivable" xlink:label="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_ED9165EE988927FA80965A594F1541D0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_ED9165EE988927FA80965A594F1541D0" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractWithCustomerAssetRevenueRecognized" xlink:label="loc_amrc_ContractWithCustomerAssetRevenueRecognized_DAB8C9BD60B122F8EF185A594F15B920" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_amrc_ContractWithCustomerAssetRevenueRecognized_DAB8C9BD60B122F8EF185A594F15B920" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_6CE21AFF53F85EC6ED525A594F15646D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_6CE21AFF53F85EC6ED525A594F15646D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractWithCustomerLiabilityBillings" xlink:label="loc_amrc_ContractWithCustomerLiabilityBillings_04163A8E9478FE76CB2E5A594F158C50" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_amrc_ContractWithCustomerLiabilityBillings_04163A8E9478FE76CB2E5A594F158C50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_5FB64DB462A70A074DA95A594F15B0D9" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_5FB64DB462A70A074DA95A594F15B0D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_4B3FDC96BD370CED8CFA5A594F1526DD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_4B3FDC96BD370CED8CFA5A594F1526DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalizedContractCostGross" xlink:label="loc_us-gaap_CapitalizedContractCostGross_C386F23879AB5F05A0345A594F1644C2" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_CapitalizedContractCostGross_C386F23879AB5F05A0345A594F1644C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalizedContractCostImpairmentLoss" xlink:label="loc_us-gaap_CapitalizedContractCostImpairmentLoss_F5B59E56485EDDB616A45A594F164D96" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_us-gaap_CapitalizedContractCostImpairmentLoss_F5B59E56485EDDB616A45A594F164D96" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CapitalizedContractCostProjectDevelopmentCosts" xlink:label="loc_amrc_CapitalizedContractCostProjectDevelopmentCosts_7EA085623FE395DA73A55A594F166542" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_0BC4F863B231BFD9957E5A594F14DA09" xlink:to="loc_amrc_CapitalizedContractCostProjectDevelopmentCosts_7EA085623FE395DA73A55A594F166542" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomersContractBalancesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_7D33EEA8C84A1A5E32202FF4F62A1335" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:to="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_7D33EEA8C84A1A5E32202FF4F62A1335" 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_InitialApplicationPeriodCumulativeEffectTransitionAxis" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_93488302E44573990CC72FF4F62B0072" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_7D33EEA8C84A1A5E32202FF4F62A1335" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_93488302E44573990CC72FF4F62B0072" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_5B7F853C750016D859CE2FF4F62B05B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_93488302E44573990CC72FF4F62B0072" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_5B7F853C750016D859CE2FF4F62B05B7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_5B7F853C750016D859CE2FF4F62B05B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_93488302E44573990CC72FF4F62B0072" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_5B7F853C750016D859CE2FF4F62B05B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member" xlink:label="loc_us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member_E8C78C5EB952D1EFCA2F2FF4F62BE1DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_5B7F853C750016D859CE2FF4F62B05B7" xlink:to="loc_us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member_E8C78C5EB952D1EFCA2F2FF4F62BE1DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNet" xlink:label="loc_us-gaap_AccountsReceivableNet_A51B114E37C0ABA8D03F2FF4F62B2E74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:to="loc_us-gaap_AccountsReceivableNet_A51B114E37C0ABA8D03F2FF4F62B2E74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractReceivableRetainage" xlink:label="loc_us-gaap_ContractReceivableRetainage_8374195EDF5EF6C8BDC62FF4F62C10FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:to="loc_us-gaap_ContractReceivableRetainage_8374195EDF5EF6C8BDC62FF4F62C10FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNetAbstract" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetAbstract_8A10D05B8AD47BA598B72FF4F62C7BF0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetAbstract_8A10D05B8AD47BA598B72FF4F62C7BF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_56B870DE954886E284E92FF4F62CE671" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_8A10D05B8AD47BA598B72FF4F62C7BF0" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_56B870DE954886E284E92FF4F62CE671" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiabilityAbstract" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityAbstract_A117125B696890BD700C2FF4F62CDE5E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_7793D2DC6D4663FB03FC2FF4F62B3603" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityAbstract_A117125B696890BD700C2FF4F62CDE5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_33B022F033428B8A87602FF4F62DC6C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_A117125B696890BD700C2FF4F62CDE5E" xlink:to="loc_us-gaap_ContractWithCustomerLiability_33B022F033428B8A87602FF4F62DC6C1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomersDisaggregationOfRevenueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_75F2B7A7508A12F5C38D31CD97194A54" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_B9DFCF8B79A22584BBD631CD97158D8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_75F2B7A7508A12F5C38D31CD97194A54" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_B9DFCF8B79A22584BBD631CD97158D8D" 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_4B3408CBFC1187387F1631CD9715B361" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_B9DFCF8B79A22584BBD631CD97158D8D" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_4B3408CBFC1187387F1631CD9715B361" 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_E9395292130746249FB631CD97162615_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4B3408CBFC1187387F1631CD9715B361" xlink:to="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615_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_E9395292130746249FB631CD97162615" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4B3408CBFC1187387F1631CD9715B361" xlink:to="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherUSRegionsMember" xlink:label="loc_amrc_OtherUSRegionsMember_937DE8430BA3C114639631CD9716F6C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:to="loc_amrc_OtherUSRegionsMember_937DE8430BA3C114639631CD9716F6C7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_USFederalMember" xlink:label="loc_amrc_USFederalMember_D96568B1F425CCCA650D31CD97165529" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:to="loc_amrc_USFederalMember_D96568B1F425CCCA650D31CD97165529" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaSegmentMember" xlink:label="loc_amrc_CanadaSegmentMember_BAED2E2714CA47E2E5D331CD97162EE9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:to="loc_amrc_CanadaSegmentMember_BAED2E2714CA47E2E5D331CD97162EE9" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SmallScaleInfrastructureMember" xlink:label="loc_amrc_SmallScaleInfrastructureMember_E7D59E9A7E0DF587712931CD9716C132" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:to="loc_amrc_SmallScaleInfrastructureMember_E7D59E9A7E0DF587712931CD9716C132" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_334280A6EEAEC74D675331CD9716CAD3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9395292130746249FB631CD97162615" xlink:to="loc_us-gaap_AllOtherSegmentsMember_334280A6EEAEC74D675331CD9716CAD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_3C59EF7AE5799FAC246831CD97179C50" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_B9DFCF8B79A22584BBD631CD97158D8D" xlink:to="loc_srt_ProductOrServiceAxis_3C59EF7AE5799FAC246831CD97179C50" 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_5D209E4B48096FF7F4A231CD9717A413_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_3C59EF7AE5799FAC246831CD97179C50" xlink:to="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413_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_5D209E4B48096FF7F4A231CD9717A413" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_3C59EF7AE5799FAC246831CD97179C50" xlink:to="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ProjectRevenueMember" xlink:label="loc_amrc_ProjectRevenueMember_43BC4FB578609591F9ED31CD9717039C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413" xlink:to="loc_amrc_ProjectRevenueMember_43BC4FB578609591F9ED31CD9717039C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OperationsAndMaintenanceRevenueMember" xlink:label="loc_amrc_OperationsAndMaintenanceRevenueMember_062B100AF8B57BDBE14531CD971707DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413" xlink:to="loc_amrc_OperationsAndMaintenanceRevenueMember_062B100AF8B57BDBE14531CD971707DB" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_EnergyAssetsRevenueMember" xlink:label="loc_amrc_EnergyAssetsRevenueMember_90CF17BB3C6072260D7231CD97171F74" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413" xlink:to="loc_amrc_EnergyAssetsRevenueMember_90CF17BB3C6072260D7231CD97171F74" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_OtherRevenueMember" xlink:label="loc_amrc_OtherRevenueMember_DE5B80BDF0998E7679EA31CD9718662B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5D209E4B48096FF7F4A231CD9717A413" xlink:to="loc_amrc_OtherRevenueMember_DE5B80BDF0998E7679EA31CD9718662B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_4A6ABFA864274EECC55431CD971826F0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_B9DFCF8B79A22584BBD631CD97158D8D" xlink:to="loc_srt_StatementGeographicalAxis_4A6ABFA864274EECC55431CD971826F0" 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_7EF95A7062DDAAEB28F531CD97188D37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_4A6ABFA864274EECC55431CD971826F0" xlink:to="loc_srt_SegmentGeographicalDomain_7EF95A7062DDAAEB28F531CD97188D37_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_7EF95A7062DDAAEB28F531CD97188D37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_4A6ABFA864274EECC55431CD971826F0" xlink:to="loc_srt_SegmentGeographicalDomain_7EF95A7062DDAAEB28F531CD97188D37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_05A0D3D6EDFAB84285D231CD97187B73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_7EF95A7062DDAAEB28F531CD97188D37" xlink:to="loc_country_US_05A0D3D6EDFAB84285D231CD97187B73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_0880BDC8D50EC4DF21C431CD97199C5E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_7EF95A7062DDAAEB28F531CD97188D37" xlink:to="loc_country_CA_0880BDC8D50EC4DF21C431CD97199C5E" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NonUSandCANADAMember" xlink:label="loc_amrc_NonUSandCANADAMember_4D57DBEC914F68F43AC531CD97191526" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_7EF95A7062DDAAEB28F531CD97188D37" xlink:to="loc_amrc_NonUSandCANADAMember_4D57DBEC914F68F43AC531CD97191526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_A117EF01902ED4966EBF31CD97190E74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_75F2B7A7508A12F5C38D31CD97194A54" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_A117EF01902ED4966EBF31CD97190E74" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomersSummaryOfImpactOfAdoptionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_B5A71DDB4E4C81F932F458A9601848CC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_CA870822D0593D12F14958A960187DAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_B5A71DDB4E4C81F932F458A9601848CC" xlink:to="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_CA870822D0593D12F14958A960187DAD" 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_InitialApplicationPeriodCumulativeEffectTransitionAxis" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_9042EFCF709AAC35478058A96018FB41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_CA870822D0593D12F14958A960187DAD" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_9042EFCF709AAC35478058A96018FB41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_9042EFCF709AAC35478058A96018FB41" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_9042EFCF709AAC35478058A96018FB41" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member" xlink:label="loc_us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member_4C60F57A8EBFE8B9291D58A96018C558" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10" xlink:to="loc_us-gaap_CalculatedUnderRevenueGuidanceInEffectBeforeTopic606Member_4C60F57A8EBFE8B9291D58A96018C558" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member" xlink:label="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_6A253B19F3BC3B0F889258A960184734" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_28105B004E9937C3F73458A96018AF10" xlink:to="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_6A253B19F3BC3B0F889258A960184734" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementOfFinancialPositionAbstract" xlink:label="loc_us-gaap_StatementOfFinancialPositionAbstract_7FDC5B9D9C69737577B958A96018CC15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_B5A71DDB4E4C81F932F458A9601848CC" xlink:to="loc_us-gaap_StatementOfFinancialPositionAbstract_7FDC5B9D9C69737577B958A96018CC15" 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_DC5DEB8546C21AB5070858A960188C7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_7FDC5B9D9C69737577B958A96018CC15" xlink:to="loc_us-gaap_AssetsAbstract_DC5DEB8546C21AB5070858A960188C7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_190CFDA5501099A8CFDD58A960188CA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_DC5DEB8546C21AB5070858A960188C7A" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_190CFDA5501099A8CFDD58A960188CA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_925A1BAE1914E71D662058A960185CA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_DC5DEB8546C21AB5070858A960188C7A" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_925A1BAE1914E71D662058A960185CA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_84D6296110E0AEF2777858A96018D4AE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_DC5DEB8546C21AB5070858A960188C7A" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_84D6296110E0AEF2777858A96018D4AE" 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_60B775B05A9F4F5C89E258A960186FD1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_7FDC5B9D9C69737577B958A96018CC15" xlink:to="loc_us-gaap_LiabilitiesAbstract_60B775B05A9F4F5C89E258A960186FD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_98DC1864442EDC96AD3A58A960185A42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_60B775B05A9F4F5C89E258A960186FD1" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_98DC1864442EDC96AD3A58A960185A42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_4A0D44944BDBBAA16E1358A960180EFC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_60B775B05A9F4F5C89E258A960186FD1" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_4A0D44944BDBBAA16E1358A960180EFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityAbstract" xlink:label="loc_us-gaap_EquityAbstract_C670D575CD67CE67864058A96018528B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_7FDC5B9D9C69737577B958A96018CC15" xlink:to="loc_us-gaap_EquityAbstract_C670D575CD67CE67864058A96018528B" 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_E85A86CAF6847A033DC658A9601C1355" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityAbstract_C670D575CD67CE67864058A96018528B" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_E85A86CAF6847A033DC658A9601C1355" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementAbstract" xlink:label="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_B5A71DDB4E4C81F932F458A9601848CC" xlink:to="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_34C8CA81552E970617AF58A9601C921B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_34C8CA81552E970617AF58A9601C921B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_31A9E54130FCDF34514A58A9601CB4ED" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_31A9E54130FCDF34514A58A9601CB4ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_12A5EDEF684A29EA857758A9601CCC14" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_GrossProfit_12A5EDEF684A29EA857758A9601CCC14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_3DA2102CED64039AB65958A9601CEE84" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_OperatingExpensesAbstract_3DA2102CED64039AB65958A9601CEE84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_EB2343F34F9FEB88D3D658A9601CE0D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_3DA2102CED64039AB65958A9601CEE84" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_EB2343F34F9FEB88D3D658A9601CE0D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_F40C0AD8F2DAF1CF275D58A9601C972A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_3DA2102CED64039AB65958A9601CEE84" xlink:to="loc_us-gaap_OperatingIncomeLoss_F40C0AD8F2DAF1CF275D58A9601C972A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_A902B06E2482FD0F9CBC58A9601CFE11" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_3DA2102CED64039AB65958A9601CEE84" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_A902B06E2482FD0F9CBC58A9601CFE11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_54EBD2A967C58F4BE6C758A9601C83A6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_54EBD2A967C58F4BE6C758A9601C83A6" 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_4B84BB8FF20E735BECAB58A9601C9F6B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_4B84BB8FF20E735BECAB58A9601C9F6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_D5F4D060FF69778B4C9A58A9601C0D68" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_ProfitLoss_D5F4D060FF69778B4C9A58A9601C0D68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_F04E50495A124C48EDC258A9601CEFCC" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_F04E50495A124C48EDC258A9601CEFCC" 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_71EDD20D6A7B20F1403558A9601C593B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_NetIncomeLoss_71EDD20D6A7B20F1403558A9601C593B" 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_FC347914CC8E38B8942258A9601C9B2C" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_EarningsPerShareBasic_FC347914CC8E38B8942258A9601C9B2C" 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_95AC9A206FCA67E8F17358A9601CA63F" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_FE92416CC08C06F6AE2358A9601C4CCF" xlink:to="loc_us-gaap_EarningsPerShareDiluted_95AC9A206FCA67E8F17358A9601CA63F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/RevenueFromContractsWithCustomersTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/StockIncentivePlan" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/StockIncentivePlanAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" 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_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_36847ACBF618E8F2745C5980BB5E9F5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" xlink:to="loc_us-gaap_PlanNameAxis_36847ACBF618E8F2745C5980BB5E9F5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_36847ACBF618E8F2745C5980BB5E9F5E" xlink:to="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_36847ACBF618E8F2745C5980BB5E9F5E" xlink:to="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_StockIncentive2000PlanMember" xlink:label="loc_amrc_StockIncentive2000PlanMember_405008E49358E02E092E5980BB5E4732" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4" xlink:to="loc_amrc_StockIncentive2000PlanMember_405008E49358E02E092E5980BB5E4732" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_StockIncentive2010PlanMember" xlink:label="loc_amrc_StockIncentive2010PlanMember_E37B8B19B9C8A48D69CC5980BB5E3D6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4" xlink:to="loc_amrc_StockIncentive2010PlanMember_E37B8B19B9C8A48D69CC5980BB5E3D6D" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_A2017EmployeeStockPurchasePlanMember" xlink:label="loc_amrc_A2017EmployeeStockPurchasePlanMember_4770597B2822ACEF8B805980BB5E1FE2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1218DB636B194A15F75C5980BB5E72E4" xlink:to="loc_amrc_A2017EmployeeStockPurchasePlanMember_4770597B2822ACEF8B805980BB5E1FE2" 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_51406F941F45AE3059485980BB5E8F5A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" xlink:to="loc_us-gaap_StatementClassOfStockAxis_51406F941F45AE3059485980BB5E8F5A" 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_056CF6E56435251D42D35980BB5E7EB8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_51406F941F45AE3059485980BB5E8F5A" xlink:to="loc_us-gaap_ClassOfStockDomain_056CF6E56435251D42D35980BB5E7EB8_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_056CF6E56435251D42D35980BB5E7EB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_51406F941F45AE3059485980BB5E8F5A" xlink:to="loc_us-gaap_ClassOfStockDomain_056CF6E56435251D42D35980BB5E7EB8" 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_2388B1332ABDB3E0EE715980BB5EF63D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_056CF6E56435251D42D35980BB5E7EB8" xlink:to="loc_us-gaap_CommonClassAMember_2388B1332ABDB3E0EE715980BB5EF63D" 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_9A85C88576302589D22F5980BB5E60F9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_056CF6E56435251D42D35980BB5E7EB8" xlink:to="loc_us-gaap_CommonClassBMember_9A85C88576302589D22F5980BB5E60F9" 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_B803712DDEFC9BC01AA65980BB5E9F8B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_056CF6E56435251D42D35980BB5E7EB8" xlink:to="loc_us-gaap_PreferredStockMember_B803712DDEFC9BC01AA65980BB5E9F8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_12AB84B0606905F4BFB75980BB5E1F14" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" xlink:to="loc_us-gaap_AwardTypeAxis_12AB84B0606905F4BFB75980BB5E1F14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA897962E16780A6AAB25980BB5E80BD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_12AB84B0606905F4BFB75980BB5E1F14" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA897962E16780A6AAB25980BB5E80BD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA897962E16780A6AAB25980BB5E80BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_12AB84B0606905F4BFB75980BB5E1F14" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA897962E16780A6AAB25980BB5E80BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_C3B89389256DA3C502855980BB5E3F4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA897962E16780A6AAB25980BB5E80BD" xlink:to="loc_us-gaap_EmployeeStockOptionMember_C3B89389256DA3C502855980BB5E3F4E" 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_132B57F2B6D901C7A4CE5980BB5E330F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8513302C814E29BD2C205980BB5E0256" xlink:to="loc_srt_RangeAxis_132B57F2B6D901C7A4CE5980BB5E330F" 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_A45FCE069E02658A4F365980BB5EBECE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_132B57F2B6D901C7A4CE5980BB5E330F" xlink:to="loc_srt_RangeMember_A45FCE069E02658A4F365980BB5EBECE_default" 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_A45FCE069E02658A4F365980BB5EBECE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_132B57F2B6D901C7A4CE5980BB5E330F" xlink:to="loc_srt_RangeMember_A45FCE069E02658A4F365980BB5EBECE" 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_B9AE134939366124A1DF5980BB5EED06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A45FCE069E02658A4F365980BB5EBECE" xlink:to="loc_srt_MaximumMember_B9AE134939366124A1DF5980BB5EED06" 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_7859F8B16E138894531A5980BB5EE66F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A45FCE069E02658A4F365980BB5EBECE" xlink:to="loc_srt_MinimumMember_7859F8B16E138894531A5980BB5EE66F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_E3CD3098552D8E0E2CE45980BB5EEB99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_E3CD3098552D8E0E2CE45980BB5EEB99" 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_C86D98F03EA4C82892925980BB5EBA75" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_C86D98F03EA4C82892925980BB5EBA75" 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_02659742384BD13E19555980BB5E2AD2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_02659742384BD13E19555980BB5E2AD2" 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_EA3DF90CC96EF36CEF3F5980BB5E2718" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_EA3DF90CC96EF36CEF3F5980BB5E2718" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_NumberofVotesPerShare" xlink:label="loc_amrc_NumberofVotesPerShare_8006A3FC37E1CF0135E65980BB5EEE99" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_amrc_NumberofVotesPerShare_8006A3FC37E1CF0135E65980BB5EEE99" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CommonStockConversionBasisNumberOfShares" xlink:label="loc_amrc_CommonStockConversionBasisNumberOfShares_08024828640F750B2C8D5980BB5E76FE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_amrc_CommonStockConversionBasisNumberOfShares_08024828640F750B2C8D5980BB5E76FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_A60957D219D4CC5DC6045980BB5EFD4A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_A60957D219D4CC5DC6045980BB5EFD4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_438E665444E9FC3D7B1D5980BB5ED24B" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_438E665444E9FC3D7B1D5980BB5ED24B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_290F5F207CDABF68C1C15980BB5E26D9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_290F5F207CDABF68C1C15980BB5E26D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate_83CEBC1472723834B2625980BB5EBFA0" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate_83CEBC1472723834B2625980BB5EBFA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_03FD7C75E60AA1506DCA5980BB5ED99B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_03FD7C75E60AA1506DCA5980BB5ED99B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_2CB9F73E044D78FFE5D75980BB5EC0D6" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_2CB9F73E044D78FFE5D75980BB5EC0D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_AF6A31C25E68A21788E05980BB5EF3BE" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_AF6A31C25E68A21788E05980BB5EF3BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_987141012C6FA45D2EC55980BB5E4D47" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_987141012C6FA45D2EC55980BB5E4D47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_203C1BC44272D8ADD2F15980BB5E2B41" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_203C1BC44272D8ADD2F15980BB5E2B41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_1A7289F2F3FE56A037EE5980BB5E893E" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_1A7289F2F3FE56A037EE5980BB5E893E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_9E57ED8B67B1F79CF37A5980BB5E6D26" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_9E57ED8B67B1F79CF37A5980BB5E6D26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_20611967D060CDF4911C5980BB5E48FB" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_20611967D060CDF4911C5980BB5E48FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_132E121CA64885D2622E5980BB5EB0A4" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_132E121CA64885D2622E5980BB5EB0A4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ShareBasedCompensationArrangementByShareBasedPaymentAwardExerciseTermUponTermination" xlink:label="loc_amrc_ShareBasedCompensationArrangementByShareBasedPaymentAwardExerciseTermUponTermination_5E3B71FB2AE37761456A5980BB5EE875" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_amrc_ShareBasedCompensationArrangementByShareBasedPaymentAwardExerciseTermUponTermination_5E3B71FB2AE37761456A5980BB5EE875" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_1B41DC61228F3108591A5980BB5E3333" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_1B41DC61228F3108591A5980BB5E3333" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_3FA45AB8A098818966235980BB5E0B2F" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_3FA45AB8A098818966235980BB5E0B2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_FD616574C644B79788FE5980BB5E43C5" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_FD616574C644B79788FE5980BB5E43C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5047165D35863ED293575980BB5EBFF7" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BEACC0AD648AA3658015980BB5E52EC" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5047165D35863ED293575980BB5EBFF7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/StockIncentivePlanFairValueAssumptionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A5742C2C79C1E74B50A53635D85BDE86" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA5E6B18A17A8B879C443635D85BA58D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A5742C2C79C1E74B50A53635D85BDE86" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA5E6B18A17A8B879C443635D85BA58D" 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_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_3E630E579BB3C456ACCC3635D85B1ABB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA5E6B18A17A8B879C443635D85BA58D" xlink:to="loc_us-gaap_AwardTypeAxis_3E630E579BB3C456ACCC3635D85B1ABB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_496AB651EE05743F38A13635D85BF3A5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3E630E579BB3C456ACCC3635D85B1ABB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_496AB651EE05743F38A13635D85BF3A5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_496AB651EE05743F38A13635D85BF3A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3E630E579BB3C456ACCC3635D85B1ABB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_496AB651EE05743F38A13635D85BF3A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_D518B579066998996FF83635D85BF9C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_496AB651EE05743F38A13635D85BF3A5" xlink:to="loc_us-gaap_EmployeeStockOptionMember_D518B579066998996FF83635D85BF9C0" 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_B2B00E97BD5420A468823635D85BE8F1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA5E6B18A17A8B879C443635D85BA58D" xlink:to="loc_srt_RangeAxis_B2B00E97BD5420A468823635D85BE8F1" 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_68539A29CD752D79BE3A3635D85B0C63_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_B2B00E97BD5420A468823635D85BE8F1" xlink:to="loc_srt_RangeMember_68539A29CD752D79BE3A3635D85B0C63_default" 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_68539A29CD752D79BE3A3635D85B0C63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_B2B00E97BD5420A468823635D85BE8F1" xlink:to="loc_srt_RangeMember_68539A29CD752D79BE3A3635D85B0C63" 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_5E6908D1C45AA25329F23635D85BFC19" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_68539A29CD752D79BE3A3635D85B0C63" xlink:to="loc_srt_MinimumMember_5E6908D1C45AA25329F23635D85BFC19" 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_FC78ABCCFF85EDC501433635D85BAB95" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_68539A29CD752D79BE3A3635D85B0C63" xlink:to="loc_srt_MaximumMember_FC78ABCCFF85EDC501433635D85BAB95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_A5742C2C79C1E74B50A53635D85BDE86" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments_D7EB10846402DDA84E163635D85B11A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments_D7EB10846402DDA84E163635D85B11A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_4066C8D970786A11B2F13635D85BBB32" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_4066C8D970786A11B2F13635D85BBB32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_68106BDE2692CCEB4C4C3635D85B9981" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_68106BDE2692CCEB4C4C3635D85B9981" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_F4EB9B77062902650D213635D85B1FF6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_F4EB9B77062902650D213635D85B1FF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_D5220B52A0E8B162996A3635D85B5748" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_D5220B52A0E8B162996A3635D85B5748" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_34DB952091DB6BE7765E3635D85B0599" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_34DB952091DB6BE7765E3635D85B0599" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_6B251D5988487813A1FA3635D86BDD97" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_F72BA82EEA5A8392FD883635D85B7E2B" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_6B251D5988487813A1FA3635D86BDD97" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/StockIncentivePlanStockOptionsActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/StockIncentivePlanTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SubsequentEvents" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" 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_CE543640C9E8E92F08AE3193B4DD2800" 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_0A8B36D336BB75DF6F1C3193B4D94BD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0A8B36D336BB75DF6F1C3193B4D94BD4" 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_B5F5E2707DA80B48A7BC3193B4D96592" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0A8B36D336BB75DF6F1C3193B4D94BD4" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_B5F5E2707DA80B48A7BC3193B4D96592" 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_D78D0042A9A52E98CC463193B4D98E24_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_B5F5E2707DA80B48A7BC3193B4D96592" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24_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_D78D0042A9A52E98CC463193B4D98E24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_B5F5E2707DA80B48A7BC3193B4D96592" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_1706625C7FF2DC44D95A3193B4DA502C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24" xlink:to="loc_us-gaap_AccountsReceivableMember_1706625C7FF2DC44D95A3193B4DA502C" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractwithCustomerAssetNetCurrentMember" xlink:label="loc_amrc_ContractwithCustomerAssetNetCurrentMember_1CB021F9F633B271FA803193B4DA7294" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24" xlink:to="loc_amrc_ContractwithCustomerAssetNetCurrentMember_1CB021F9F633B271FA803193B4DA7294" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ConstructioninProgressGrossMember" xlink:label="loc_amrc_ConstructioninProgressGrossMember_DAD278DCCAB85E6028FB3193B4DAA0B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24" xlink:to="loc_amrc_ConstructioninProgressGrossMember_DAD278DCCAB85E6028FB3193B4DAA0B2" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractReceivableRetainageMember" xlink:label="loc_amrc_ContractReceivableRetainageMember_5B8BF3878C4C59843C453193B4DA1E97" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_D78D0042A9A52E98CC463193B4D98E24" xlink:to="loc_amrc_ContractReceivableRetainageMember_5B8BF3878C4C59843C453193B4DA1E97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_9CC823DF54925AECCE263193B4DAEFB2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0A8B36D336BB75DF6F1C3193B4D94BD4" xlink:to="loc_srt_ConsolidationItemsAxis_9CC823DF54925AECCE263193B4DAEFB2" 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_AE13C024FCC88A4AF3B83193B4DAA88C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_9CC823DF54925AECCE263193B4DAEFB2" xlink:to="loc_srt_ConsolidationItemsDomain_AE13C024FCC88A4AF3B83193B4DAA88C_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_AE13C024FCC88A4AF3B83193B4DAA88C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_9CC823DF54925AECCE263193B4DAEFB2" xlink:to="loc_srt_ConsolidationItemsDomain_AE13C024FCC88A4AF3B83193B4DAA88C" 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_FEB6E5623E44630DC3123193B4DB0B17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_AE13C024FCC88A4AF3B83193B4DAA88C" xlink:to="loc_us-gaap_OperatingSegmentsMember_FEB6E5623E44630DC3123193B4DB0B17" 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_C47D1AEA90E4E0E80F213193B4DB7CE8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0A8B36D336BB75DF6F1C3193B4D94BD4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C47D1AEA90E4E0E80F213193B4DB7CE8" 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_E45009DFB6005C0A9B963193B4DB7FA4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C47D1AEA90E4E0E80F213193B4DB7CE8" xlink:to="loc_us-gaap_SegmentDomain_E45009DFB6005C0A9B963193B4DB7FA4_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_E45009DFB6005C0A9B963193B4DB7FA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C47D1AEA90E4E0E80F213193B4DB7CE8" xlink:to="loc_us-gaap_SegmentDomain_E45009DFB6005C0A9B963193B4DB7FA4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_CanadaMember" xlink:label="loc_amrc_CanadaMember_01B5C1F06AE72A2585EF3193B4DCE22F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E45009DFB6005C0A9B963193B4DB7FA4" xlink:to="loc_amrc_CanadaMember_01B5C1F06AE72A2585EF3193B4DCE22F" 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_E50371C4BC47035D1FA23193B4DC541B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_0A8B36D336BB75DF6F1C3193B4D94BD4" xlink:to="loc_srt_RangeAxis_E50371C4BC47035D1FA23193B4DC541B" 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_F19A2920C252C4B6BC533193B4DC2D14_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_E50371C4BC47035D1FA23193B4DC541B" xlink:to="loc_srt_RangeMember_F19A2920C252C4B6BC533193B4DC2D14_default" 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_F19A2920C252C4B6BC533193B4DC2D14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_E50371C4BC47035D1FA23193B4DC541B" xlink:to="loc_srt_RangeMember_F19A2920C252C4B6BC533193B4DC2D14" 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_9D74A7F1B796827ABC133193B4DCC005" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_F19A2920C252C4B6BC533193B4DC2D14" xlink:to="loc_srt_MinimumMember_9D74A7F1B796827ABC133193B4DCC005" 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_6CE08FFE38384C4E3AEC3193B4DDAD48" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_F19A2920C252C4B6BC533193B4DC2D14" xlink:to="loc_srt_MaximumMember_6CE08FFE38384C4E3AEC3193B4DDAD48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_40FD1230AE1FDC61B0CD3193B4D8747C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_40FD1230AE1FDC61B0CD3193B4D8747C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_3ADC8968D4BEDDA1A4EC3193B4D87568" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_40FD1230AE1FDC61B0CD3193B4D8747C" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_3ADC8968D4BEDDA1A4EC3193B4D87568" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_789827199C72087D7E713193B4D80561" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_40FD1230AE1FDC61B0CD3193B4D8747C" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_789827199C72087D7E713193B4D80561" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_AllowanceForDoubtfulAccountsReceivableChargeOffsAndOther" xlink:label="loc_amrc_AllowanceForDoubtfulAccountsReceivableChargeOffsAndOther_56E9BC8C618008F6DB213193B4D96729" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_40FD1230AE1FDC61B0CD3193B4D8747C" xlink:to="loc_amrc_AllowanceForDoubtfulAccountsReceivableChargeOffsAndOther_56E9BC8C618008F6DB213193B4D96729" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease_A076BA2F666DA8548D643193B4DD583D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease_A076BA2F666DA8548D643193B4DD583D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDebtExpense" xlink:label="loc_us-gaap_InterestAndDebtExpense_0364EEEB5B099F0862493193B4DD9BBC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_us-gaap_InterestAndDebtExpense_0364EEEB5B099F0862493193B4DD9BBC" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_AccountsReceivableRetainage" xlink:label="loc_amrc_AccountsReceivableRetainage_E607CCC29733B15D204B3193B4DD7FBA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_amrc_AccountsReceivableRetainage_E607CCC29733B15D204B3193B4DD7FBA" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ContractsReceivableRetainageAllowancesandReserves" xlink:label="loc_amrc_ContractsReceivableRetainageAllowancesandReserves_82D16C790E0A91AD01123193B4DEBBD2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_CE543640C9E8E92F08AE3193B4DD2800" xlink:to="loc_amrc_ContractsReceivableRetainageAllowancesandReserves_82D16C790E0A91AD01123193B4DEBBD2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesAmountsRelatedToSaleLeasebackDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionLineItems" xlink:label="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionTable" xlink:label="loc_us-gaap_SaleLeasebackTransactionTable_883F41AC0894529D0634596960EB0BE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_SaleLeasebackTransactionTable_883F41AC0894529D0634596960EB0BE9" 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_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_9E6F24646E3B9AE7C30A596960EBBEB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_883F41AC0894529D0634596960EB0BE9" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_9E6F24646E3B9AE7C30A596960EBBEB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_B211935945D8EE20265B596960EB9C51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_9E6F24646E3B9AE7C30A596960EBBEB9" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_B211935945D8EE20265B596960EB9C51_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_B211935945D8EE20265B596960EB9C51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_9E6F24646E3B9AE7C30A596960EBBEB9" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_B211935945D8EE20265B596960EB9C51" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarPhotovoltaicProjectsMember" xlink:label="loc_amrc_SolarPhotovoltaicProjectsMember_51C38EA6E51E4241ABBA596960EB75EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_B211935945D8EE20265B596960EB9C51" xlink:to="loc_amrc_SolarPhotovoltaicProjectsMember_51C38EA6E51E4241ABBA596960EB75EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_44278D98AE5462B96A5F596960EB023D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_883F41AC0894529D0634596960EB0BE9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_44278D98AE5462B96A5F596960EB023D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_96ADC245E7540E2535F0596960EB031C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_44278D98AE5462B96A5F596960EB023D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_96ADC245E7540E2535F0596960EB031C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_96ADC245E7540E2535F0596960EB031C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_44278D98AE5462B96A5F596960EB023D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_96ADC245E7540E2535F0596960EB031C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsHeldUnderCapitalLeasesMember" xlink:label="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_1C8747E8FC2BE5B051E3596960EBB14F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_96ADC245E7540E2535F0596960EB031C" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_1C8747E8FC2BE5B051E3596960EBB14F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_68C2C000B395091C49C9596960EBE861" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_68C2C000B395091C49C9596960EBE861" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredLossShortTerm" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredLossShortTerm_98B1A248D85736DF934D596960EB1BD3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredLossShortTerm_98B1A248D85736DF934D596960EB1BD3" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredLossLongTerm" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredLossLongTerm_603E18D3E532DE3DF427596960EB5049" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredLossLongTerm_603E18D3E532DE3DF427596960EB5049" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredLossNetTotal" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredLossNetTotal_0E163E52DC4A84021635596960EB6C80" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredLossNetTotal_0E163E52DC4A84021635596960EB6C80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_CapitalLeaseObligationsCurrent_EC1DAA3A68D39ED4A790596960EB398B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_CapitalLeaseObligationsCurrent_EC1DAA3A68D39ED4A790596960EB398B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="loc_us-gaap_CapitalLeaseObligationsNoncurrent_CDB4E06570AD04BEE75F596960EBF4EC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_CapitalLeaseObligationsNoncurrent_CDB4E06570AD04BEE75F596960EBF4EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligations" xlink:label="loc_us-gaap_CapitalLeaseObligations_31E871550807E68C4303596960EB64E7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_CapitalLeaseObligations_31E871550807E68C4303596960EB64E7" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredGainShortTerm" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredGainShortTerm_686CD338B8F7425946ED596960EB17A3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredGainShortTerm_686CD338B8F7425946ED596960EB17A3" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredGainLongTerm" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredGainLongTerm_3E79E2EE6CEE11E191A9596960EBC0B9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredGainLongTerm_3E79E2EE6CEE11E191A9596960EBC0B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionDeferredGainNet" xlink:label="loc_us-gaap_SaleLeasebackTransactionDeferredGainNet_7E8EC36C33A81FFC5EF5596960EB63DF" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_3FB0BE7CEDE8618A40CB596960EBAC37" xlink:to="loc_us-gaap_SaleLeasebackTransactionDeferredGainNet_7E8EC36C33A81FFC5EF5596960EB63DF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesDerivativeInstrumentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesEnergyAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetails" 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_CDB56AA4183653B5117731CC7BB98ED2" 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_9F9CEF34925173D9210431CC7BB7AE16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CDB56AA4183653B5117731CC7BB98ED2" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9F9CEF34925173D9210431CC7BB7AE16" 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_CEAAC335EC375A28989631CC7BB8062F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9F9CEF34925173D9210431CC7BB7AE16" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_CEAAC335EC375A28989631CC7BB8062F" 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_3ACA5472DEAD5DCB038F31D48446BE82_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_CEAAC335EC375A28989631CC7BB8062F" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3ACA5472DEAD5DCB038F31D48446BE82_default" 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_481D0FD587D72718002131CC7BB852EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_CEAAC335EC375A28989631CC7BB8062F" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_481D0FD587D72718002131CC7BB852EF" 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_3ACA5472DEAD5DCB038F31D48446BE82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_481D0FD587D72718002131CC7BB852EF" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3ACA5472DEAD5DCB038F31D48446BE82" 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_84818809F1FA5D902F9531CC7BB87169" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_481D0FD587D72718002131CC7BB852EF" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_84818809F1FA5D902F9531CC7BB87169" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_4638FBB5311B374C5B6731CC7BB9AFBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CDB56AA4183653B5117731CC7BB98ED2" xlink:to="loc_us-gaap_LongTermDebtFairValue_4638FBB5311B374C5B6731CC7BB9AFBA" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_LongTermDebtCarryingValueInExcessOfFairValue" xlink:label="loc_amrc_LongTermDebtCarryingValueInExcessOfFairValue_833AFDB9C0D2A08A1D5831CC7BB9615D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CDB56AA4183653B5117731CC7BB98ED2" xlink:to="loc_amrc_LongTermDebtCarryingValueInExcessOfFairValue_833AFDB9C0D2A08A1D5831CC7BB9615D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_3DB6A84B13C56A2696AE31CC7D950EAE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_5C0C050E363D5ABCF80031CC7D93ECCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_3DB6A84B13C56A2696AE31CC7D950EAE" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_5C0C050E363D5ABCF80031CC7D93ECCE" 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_RangeAxis" xlink:label="loc_srt_RangeAxis_EE7A5D95189249FC16B031CC7D9425AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_5C0C050E363D5ABCF80031CC7D93ECCE" xlink:to="loc_srt_RangeAxis_EE7A5D95189249FC16B031CC7D9425AD" 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_D882663CFEE190FD7E2C31CC7D942C55_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_EE7A5D95189249FC16B031CC7D9425AD" xlink:to="loc_srt_RangeMember_D882663CFEE190FD7E2C31CC7D942C55_default" 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_D882663CFEE190FD7E2C31CC7D942C55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_EE7A5D95189249FC16B031CC7D9425AD" xlink:to="loc_srt_RangeMember_D882663CFEE190FD7E2C31CC7D942C55" 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_1FFD000CD376F378490431CC7D95DE5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D882663CFEE190FD7E2C31CC7D942C55" xlink:to="loc_srt_MinimumMember_1FFD000CD376F378490431CC7D95DE5C" 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_A9F8290E0DD7775C7BEB31CC7D95AACE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D882663CFEE190FD7E2C31CC7D942C55" xlink:to="loc_srt_MaximumMember_A9F8290E0DD7775C7BEB31CC7D95AACE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_0616ABCF1CE9857A43C931CC7D958D2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_3DB6A84B13C56A2696AE31CC7D950EAE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_0616ABCF1CE9857A43C931CC7D958D2E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPrinciplesOfConsolidationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesProjectDevelopmentCostsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_96CF94F18A09BD9D58FD31CC7E72AC89" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3EC7F581BBD10D75ABFC31CC7E6F0C93" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_96CF94F18A09BD9D58FD31CC7E72AC89" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3EC7F581BBD10D75ABFC31CC7E6F0C93" 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_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B85C685F65EEA350F5731CC7E706B04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3EC7F581BBD10D75ABFC31CC7E6F0C93" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B85C685F65EEA350F5731CC7E706B04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B85C685F65EEA350F5731CC7E706B04" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B85C685F65EEA350F5731CC7E706B04" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_FurnitureAndOfficeEquipmentMember" xlink:label="loc_amrc_FurnitureAndOfficeEquipmentMember_F8DA405E027A98F5A86631CC7E704705" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:to="loc_amrc_FurnitureAndOfficeEquipmentMember_F8DA405E027A98F5A86631CC7E704705" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_ComputerEquipmentAndSoftwareCostsMember" xlink:label="loc_amrc_ComputerEquipmentAndSoftwareCostsMember_46D026601194C9801E2E31CC7E706505" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:to="loc_amrc_ComputerEquipmentAndSoftwareCostsMember_46D026601194C9801E2E31CC7E706505" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_458134C140B217DB998131CC7E718C79" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_458134C140B217DB998131CC7E718C79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaap_AutomobilesMember_9FF8F79403B6677A1CF331CC7E71E0AA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_67A51E13B1DE4E783ED631CC7E70B3DA" xlink:to="loc_us-gaap_AutomobilesMember_9FF8F79403B6677A1CF331CC7E71E0AA" 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_844E1542E11BA77EEFCE31CC7E717540" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3EC7F581BBD10D75ABFC31CC7E6F0C93" xlink:to="loc_srt_RangeAxis_844E1542E11BA77EEFCE31CC7E717540" 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_E7CFED36A6ABB2CDE23231CC7E717109_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_844E1542E11BA77EEFCE31CC7E717540" xlink:to="loc_srt_RangeMember_E7CFED36A6ABB2CDE23231CC7E717109_default" 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_E7CFED36A6ABB2CDE23231CC7E717109" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_844E1542E11BA77EEFCE31CC7E717540" xlink:to="loc_srt_RangeMember_E7CFED36A6ABB2CDE23231CC7E717109" 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_571B7C28931E465479AF31CC7E71DE34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E7CFED36A6ABB2CDE23231CC7E717109" xlink:to="loc_srt_MaximumMember_571B7C28931E465479AF31CC7E71DE34" 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_E76FA16CA68C69B0500031CC7E72F269" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E7CFED36A6ABB2CDE23231CC7E717109" xlink:to="loc_srt_MinimumMember_E76FA16CA68C69B0500031CC7E72F269" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_5E91FC5AC36F9F1D03C631CC7E72526B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_96CF94F18A09BD9D58FD31CC7E72AC89" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_5E91FC5AC36F9F1D03C631CC7E72526B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_65F4347FAB042A8573D95DCA4F651002" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_65F4347FAB042A8573D95DCA4F651002" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" 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_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_6423ABED7BB541A89CE55DCA4F65D785" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_us-gaap_StatementScenarioAxis_6423ABED7BB541A89CE55DCA4F65D785" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A481301479240F7037C05DCA4F65F174_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_6423ABED7BB541A89CE55DCA4F65D785" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A481301479240F7037C05DCA4F65F174_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A481301479240F7037C05DCA4F65F174" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_6423ABED7BB541A89CE55DCA4F65D785" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A481301479240F7037C05DCA4F65F174" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_54DF26809748435280395DCA4F656496" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_A481301479240F7037C05DCA4F65F174" xlink:to="loc_us-gaap_ScenarioForecastMember_54DF26809748435280395DCA4F656496" 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_95BD18E33CFB34981F8E5DCA4F65D451" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_95BD18E33CFB34981F8E5DCA4F65D451" 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_0C5FCE422E4B58DACDA15DCA4F65ADD3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_95BD18E33CFB34981F8E5DCA4F65D451" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0C5FCE422E4B58DACDA15DCA4F65ADD3_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_0C5FCE422E4B58DACDA15DCA4F65ADD3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_95BD18E33CFB34981F8E5DCA4F65D451" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0C5FCE422E4B58DACDA15DCA4F65ADD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonoperatingIncomeExpenseMember" xlink:label="loc_us-gaap_NonoperatingIncomeExpenseMember_4A452DB3CB22F0BBE2BD5DCA4F652C10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_0C5FCE422E4B58DACDA15DCA4F65ADD3" xlink:to="loc_us-gaap_NonoperatingIncomeExpenseMember_4A452DB3CB22F0BBE2BD5DCA4F652C10" 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_77B13A5072B9415CBF315DCA4F65FEA6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_srt_RangeAxis_77B13A5072B9415CBF315DCA4F65FEA6" 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_E2196094B4AE5F8C6E515DCA4F65AE7D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_77B13A5072B9415CBF315DCA4F65FEA6" xlink:to="loc_srt_RangeMember_E2196094B4AE5F8C6E515DCA4F65AE7D_default" 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_E2196094B4AE5F8C6E515DCA4F65AE7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_77B13A5072B9415CBF315DCA4F65FEA6" xlink:to="loc_srt_RangeMember_E2196094B4AE5F8C6E515DCA4F65AE7D" 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_E6CC3ACE3699C7C8A68D5DCA4F653F27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E2196094B4AE5F8C6E515DCA4F65AE7D" xlink:to="loc_srt_MinimumMember_E6CC3ACE3699C7C8A68D5DCA4F653F27" 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_EDD664142C8419666D2D5DCA4F6585A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E2196094B4AE5F8C6E515DCA4F65AE7D" xlink:to="loc_srt_MaximumMember_EDD664142C8419666D2D5DCA4F6585A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_945803802B49DD39A23F5DCA4F65BE8F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_945803802B49DD39A23F5DCA4F65BE8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_BADEEF122E9B81C682C05DCA4F651491_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_945803802B49DD39A23F5DCA4F65BE8F" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_BADEEF122E9B81C682C05DCA4F651491_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_BADEEF122E9B81C682C05DCA4F651491" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_945803802B49DD39A23F5DCA4F65BE8F" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_BADEEF122E9B81C682C05DCA4F651491" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_CD997C145352DA84EAFD5DCA4F65CA8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_BADEEF122E9B81C682C05DCA4F651491" xlink:to="loc_us-gaap_SubsequentEventMember_CD997C145352DA84EAFD5DCA4F65CA8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_635D74EC9CDC0DF3DE605DCA4F65D605" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_635D74EC9CDC0DF3DE605DCA4F65D605" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_635D74EC9CDC0DF3DE605DCA4F65D605" xlink:to="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_635D74EC9CDC0DF3DE605DCA4F65D605" xlink:to="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_5E9EB689E419E77CCFEE5DCA4F652CF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_5E9EB689E419E77CCFEE5DCA4F652CF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_8408F847E746332ACA955DCA4F65A64E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_8408F847E746332ACA955DCA4F65A64E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201712Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201712Member_4608C0543F807F9DFF5F5DCA4F651F13" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_E6F1006A54F3F86E1EDB5DCA4F65665A" xlink:to="loc_us-gaap_AccountingStandardsUpdate201712Member_4608C0543F807F9DFF5F5DCA4F651F13" 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_0D799C2186B9AD082BAE5DCA4F652209" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_CF13CAEA91FC82CE610C5DCA4F65A79E" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_0D799C2186B9AD082BAE5DCA4F652209" 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_76C351601364F435387E5DCA4F6541B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0D799C2186B9AD082BAE5DCA4F652209" xlink:to="loc_us-gaap_EquityComponentDomain_76C351601364F435387E5DCA4F6541B7_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_76C351601364F435387E5DCA4F6541B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0D799C2186B9AD082BAE5DCA4F652209" xlink:to="loc_us-gaap_EquityComponentDomain_76C351601364F435387E5DCA4F6541B7" 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_D15B01E2230ABCDAA9365DCA4F656955" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_76C351601364F435387E5DCA4F6541B7" xlink:to="loc_us-gaap_RetainedEarningsMember_D15B01E2230ABCDAA9365DCA4F656955" 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_8BD45286BEFF11FD943E5DCA4F658F20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_65F4347FAB042A8573D95DCA4F651002" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_8BD45286BEFF11FD943E5DCA4F658F20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_69F1BC8CDFD1722DF54B5DCA4F6534D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_65F4347FAB042A8573D95DCA4F651002" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_69F1BC8CDFD1722DF54B5DCA4F6534D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_FD70F9612D137450866D5DCA4F65ECF8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_65F4347FAB042A8573D95DCA4F651002" xlink:to="loc_us-gaap_OperatingLeaseLiability_FD70F9612D137450866D5DCA4F65ECF8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRedeemableNonControllingInterestDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRestrictedCashDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesSalesLeasebackDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionLineItems" xlink:label="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionTable" xlink:label="loc_us-gaap_SaleLeasebackTransactionTable_35EF4DE18552CEA4C3195DCA2EA0979F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_SaleLeasebackTransactionTable_35EF4DE18552CEA4C3195DCA2EA0979F" 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_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_62C98E559FB4D410F0835DCA2EA040CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_35EF4DE18552CEA4C3195DCA2EA0979F" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_62C98E559FB4D410F0835DCA2EA040CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_1258D65EFD11AB1EA5F75DCA2EA005C0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_62C98E559FB4D410F0835DCA2EA040CB" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_1258D65EFD11AB1EA5F75DCA2EA005C0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_1258D65EFD11AB1EA5F75DCA2EA005C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_62C98E559FB4D410F0835DCA2EA040CB" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_1258D65EFD11AB1EA5F75DCA2EA005C0" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SolarPhotovoltaicProjectsMember" xlink:label="loc_amrc_SolarPhotovoltaicProjectsMember_74B5262B0CE9B31345895DCA2EA0AFD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_1258D65EFD11AB1EA5F75DCA2EA005C0" xlink:to="loc_amrc_SolarPhotovoltaicProjectsMember_74B5262B0CE9B31345895DCA2EA0AFD8" 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_E821889ACEABF9D02AA05DCA2EA03CD4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_35EF4DE18552CEA4C3195DCA2EA0979F" xlink:to="loc_srt_RangeAxis_E821889ACEABF9D02AA05DCA2EA03CD4" 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_085D17C6C51464CBB3BD5DCA2EA07429_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_E821889ACEABF9D02AA05DCA2EA03CD4" xlink:to="loc_srt_RangeMember_085D17C6C51464CBB3BD5DCA2EA07429_default" 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_085D17C6C51464CBB3BD5DCA2EA07429" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_E821889ACEABF9D02AA05DCA2EA03CD4" xlink:to="loc_srt_RangeMember_085D17C6C51464CBB3BD5DCA2EA07429" 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_531ACA9944F2032ADAB45DCA2EA0B21F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_085D17C6C51464CBB3BD5DCA2EA07429" xlink:to="loc_srt_MinimumMember_531ACA9944F2032ADAB45DCA2EA0B21F" 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_0C910BFE3C890F4A4D715DCA2EA029EC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_085D17C6C51464CBB3BD5DCA2EA07429" xlink:to="loc_srt_MaximumMember_0C910BFE3C890F4A4D715DCA2EA029EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_4F777FF6B05E7BB3A3B45DCA2EA0362A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_4F777FF6B05E7BB3A3B45DCA2EA0362A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_MaximumCombinedFundingAmountSaleLeasebackTransactions" xlink:label="loc_amrc_MaximumCombinedFundingAmountSaleLeasebackTransactions_8E7BF8CD0885921F94425DCA2EA047C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_MaximumCombinedFundingAmountSaleLeasebackTransactions_8E7BF8CD0885921F94425DCA2EA047C4" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionNumberOfProjectsSoldThenLeasedBack" xlink:label="loc_amrc_SaleLeasebackTransactionNumberOfProjectsSoldThenLeasedBack_B6DA1A7A9E51BA7F61845DCA2EA01AE1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_SaleLeasebackTransactionNumberOfProjectsSoldThenLeasedBack_B6DA1A7A9E51BA7F61845DCA2EA01AE1" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionNumberofProjectsSold" xlink:label="loc_amrc_SaleLeasebackTransactionNumberofProjectsSold_9698528C6952730B827E5DCA2EA0FEC0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_SaleLeasebackTransactionNumberofProjectsSold_9698528C6952730B827E5DCA2EA0FEC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNetProceedsFinancingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionNetProceedsFinancingActivities_AFA1EE714D9F4751FD065DCA2EA006B2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_SaleLeasebackTransactionNetProceedsFinancingActivities_AFA1EE714D9F4751FD065DCA2EA006B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionDeferredGainNet" xlink:label="loc_us-gaap_SaleLeasebackTransactionDeferredGainNet_243328E1CDD4793443B35DCA2EAFDCD8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_SaleLeasebackTransactionDeferredGainNet_243328E1CDD4793443B35DCA2EAFDCD8" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionDeferredLossNetTotal" xlink:label="loc_amrc_SaleLeasebackTransactionDeferredLossNetTotal_92E4DE681A972630EE8E5DCA2EAF108F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_SaleLeasebackTransactionDeferredLossNetTotal_92E4DE681A972630EE8E5DCA2EAF108F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionNetBookValue" xlink:label="loc_us-gaap_SaleLeasebackTransactionNetBookValue_6E1BAF49D8061F5D98995DCA2EAFAB4A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_SaleLeasebackTransactionNetBookValue_6E1BAF49D8061F5D98995DCA2EAFAB4A" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionTerm" xlink:label="loc_amrc_SaleLeasebackTransactionTerm_BEFB9CC3BE6E3994CC4D5DCA2EAFA8DE" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_SaleLeasebackTransactionTerm_BEFB9CC3BE6E3994CC4D5DCA2EAFA8DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SaleLeasebackTransactionQuarterlyRentalPayments" xlink:label="loc_us-gaap_SaleLeasebackTransactionQuarterlyRentalPayments_B1175805964D972895625DCA2EAF6032" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_us-gaap_SaleLeasebackTransactionQuarterlyRentalPayments_B1175805964D972895625DCA2EAF6032" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_PercentageofFairValueThresholdIntegralEquipment" xlink:label="loc_amrc_PercentageofFairValueThresholdIntegralEquipment_D3F98243488BE16AE0805DCA2EAF4339" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_PercentageofFairValueThresholdIntegralEquipment_D3F98243488BE16AE0805DCA2EAF4339" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_SaleLeasebackTransactionNetAmortizationExpense" xlink:label="loc_amrc_SaleLeasebackTransactionNetAmortizationExpense_F94A6E789FE3567056645DCA2EAF4AF8" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_772CB1158377301DA9E95DCA2EA02A05" xlink:to="loc_amrc_SaleLeasebackTransactionNetAmortizationExpense_F94A6E789FE3567056645DCA2EAF4AF8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesShareRepurchaseProgramDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_EA2B36A588A8C9EF67493B12BDCC07E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_EA2B36A588A8C9EF67493B12BDCC07E1" 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_0FD4787E97AC2A4FB1F33B12BDCCAAA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_EA2B36A588A8C9EF67493B12BDCC07E1" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0FD4787E97AC2A4FB1F33B12BDCCAAA9" 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_2D79D3D019EF2D96BCC83B12BDCC5BC5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0FD4787E97AC2A4FB1F33B12BDCCAAA9" xlink:to="loc_us-gaap_ClassOfStockDomain_2D79D3D019EF2D96BCC83B12BDCC5BC5_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_2D79D3D019EF2D96BCC83B12BDCC5BC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0FD4787E97AC2A4FB1F33B12BDCCAAA9" xlink:to="loc_us-gaap_ClassOfStockDomain_2D79D3D019EF2D96BCC83B12BDCC5BC5" 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_39C95BBA81876DE5087B3B12BDCC19C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2D79D3D019EF2D96BCC83B12BDCC5BC5" xlink:to="loc_us-gaap_CommonClassAMember_39C95BBA81876DE5087B3B12BDCC19C2" 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_438C282912B0854A5A113B12BDCCAA73" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_EA2B36A588A8C9EF67493B12BDCC07E1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_438C282912B0854A5A113B12BDCCAA73" 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_3E5C6A351FB619C298513B12BDCC0A22_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_438C282912B0854A5A113B12BDCCAA73" xlink:to="loc_us-gaap_EquityComponentDomain_3E5C6A351FB619C298513B12BDCC0A22_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_3E5C6A351FB619C298513B12BDCC0A22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_438C282912B0854A5A113B12BDCCAA73" xlink:to="loc_us-gaap_EquityComponentDomain_3E5C6A351FB619C298513B12BDCC0A22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_BE6976246CA2796A17A13B12BDD654A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_3E5C6A351FB619C298513B12BDCC0A22" xlink:to="loc_us-gaap_TreasuryStockMember_BE6976246CA2796A17A13B12BDD654A6" 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_00BA9AC6D505F94128D53B12BDD608B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_00BA9AC6D505F94128D53B12BDD608B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_F44C49C6FB54F0F1337D3B12BDD7FA8C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_F44C49C6FB54F0F1337D3B12BDD7FA8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_54BE6158D23594C4698F3B12BDD79581" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_54BE6158D23594C4698F3B12BDD79581" xlink:type="arc" />
    <link:loc xlink:href="amrc-20181231.xsd#amrc_StockRepurchaseProgramRepurchaseFees" xlink:label="loc_amrc_StockRepurchaseProgramRepurchaseFees_F13B03C3DAC0109153E73B12BDD74385" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B1A8F4744D361B13A3EF3B12BDD6136A" xlink:to="loc_amrc_StockRepurchaseProgramRepurchaseFees_F13B03C3DAC0109153E73B12BDD74385" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_CC9466E3BD5DE3322D525DC9F9F5ECB8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_A16B5525FCBAB5BEADA05DC9F9F53E88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_CC9466E3BD5DE3322D525DC9F9F5ECB8" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_A16B5525FCBAB5BEADA05DC9F9F53E88" 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_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_8B9381E1340A622D70F35DC9F9F5640C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_A16B5525FCBAB5BEADA05DC9F9F53E88" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_8B9381E1340A622D70F35DC9F9F5640C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_2C7CCBC1AE3CD74751B55DC9F9F50622_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_8B9381E1340A622D70F35DC9F9F5640C" xlink:to="loc_us-gaap_TypeOfAdoptionMember_2C7CCBC1AE3CD74751B55DC9F9F50622_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_2C7CCBC1AE3CD74751B55DC9F9F50622" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_8B9381E1340A622D70F35DC9F9F5640C" xlink:to="loc_us-gaap_TypeOfAdoptionMember_2C7CCBC1AE3CD74751B55DC9F9F50622" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201609Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201609Member_4827CD838A1E1C92A48C5DC9F9F5EC91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_2C7CCBC1AE3CD74751B55DC9F9F50622" xlink:to="loc_us-gaap_AccountingStandardsUpdate201609Member_4827CD838A1E1C92A48C5DC9F9F5EC91" 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_F2B40BC4ED5C4F5F5E385DC9F9F57A01" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_A16B5525FCBAB5BEADA05DC9F9F53E88" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_F2B40BC4ED5C4F5F5E385DC9F9F57A01" 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_68ADD2074C9888D1A2C25DC9F9F560F1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_F2B40BC4ED5C4F5F5E385DC9F9F57A01" xlink:to="loc_us-gaap_EquityComponentDomain_68ADD2074C9888D1A2C25DC9F9F560F1_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_68ADD2074C9888D1A2C25DC9F9F560F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_F2B40BC4ED5C4F5F5E385DC9F9F57A01" xlink:to="loc_us-gaap_EquityComponentDomain_68ADD2074C9888D1A2C25DC9F9F560F1" 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_4A5FC669F71ACB55C8265DC9F9F5091A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_68ADD2074C9888D1A2C25DC9F9F560F1" xlink:to="loc_us-gaap_RetainedEarningsMember_4A5FC669F71ACB55C8265DC9F9F5091A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_838B7A6BFCB511791E0A5DC9F9F50608" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_CC9466E3BD5DE3322D525DC9F9F5ECB8" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_838B7A6BFCB511791E0A5DC9F9F50608" 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_2FC2825CC37E7CBCD9895DC9F9F5EA79" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_CC9466E3BD5DE3322D525DC9F9F5ECB8" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_2FC2825CC37E7CBCD9895DC9F9F5EA79" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ameresco.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:type="extended" />
</link:linkbase>
