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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:298a99ef-0770-4a0c-a2fc-151f1ef54e4e,g:5bd2499e-4b9b-479f-ba85-172958c464b9-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" xlink:href="eme-20230630.xsd#CondensedConsolidatedStatementsOfCashFlows"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" id="ia03a5e8697524ac8a704904e0ac58a8b_CondensedConsolidatedStatementsOfCashFlows">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3dd487b6-cf88-4c86-82fb-a413fda0765a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:to="loc_us-gaap_NetIncomeLoss_3dd487b6-cf88-4c86-82fb-a413fda0765a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_931eb38d-7aee-43e5-8ff0-51de5ee9c344" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:to="loc_us-gaap_Depreciation_931eb38d-7aee-43e5-8ff0-51de5ee9c344" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_9d41e9b8-5683-4628-ba93-e9243b0f5996" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_9d41e9b8-5683-4628-ba93-e9243b0f5996" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_Noncashsharebasedcompensationexpense_3b13fef8-1986-424f-8e99-1c670620e7ac" xlink:href="eme-20230630.xsd#eme_Noncashsharebasedcompensationexpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:to="loc_eme_Noncashsharebasedcompensationexpense_3b13fef8-1986-424f-8e99-1c670620e7ac" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_dfe0fd16-989c-4cf0-b086-b7d7c9e5fe0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_ab47f636-6cdf-40a9-a1fa-21aa0a11e7d4" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_dfe0fd16-989c-4cf0-b086-b7d7c9e5fe0f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapital_d1e2c1b1-1bbe-403b-ada7-7911e4049592" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapital_d1e2c1b1-1bbe-403b-ada7-7911e4049592" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9976373a-389f-4654-84d2-002bde399a02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_0e87b5ca-fb8a-4cd5-8061-f1dbd7440841" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9976373a-389f-4654-84d2-002bde399a02" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_abcd54f2-89bc-4799-8499-2859473ced38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_abcd54f2-89bc-4799-8499-2859473ced38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_95c1efc6-8de1-438d-b463-f8859bd96fb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_95c1efc6-8de1-438d-b463-f8859bd96fb2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_bb99b2ad-bf71-4065-9350-c85fda8d3675" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_bb99b2ad-bf71-4065-9350-c85fda8d3675" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_924fa8ad-8fcb-43e2-9698-3d0ba8efa9bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_6c67e31a-637f-4b9e-bae2-92c1ea67c292" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_924fa8ad-8fcb-43e2-9698-3d0ba8efa9bd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_b0ceb60c-41d5-4bae-836c-94d7e69a9279" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_b0ceb60c-41d5-4bae-836c-94d7e69a9279" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_e1e682e0-51c8-4789-a9eb-c9a71628eb8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_e1e682e0-51c8-4789-a9eb-c9a71628eb8b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_220d3f1b-1ece-4d0b-9682-6194d6ce9396" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_220d3f1b-1ece-4d0b-9682-6194d6ce9396" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_031cbcd5-ecf0-4a2a-ae75-793dacb5ff3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_031cbcd5-ecf0-4a2a-ae75-793dacb5ff3f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8ca0c3fc-b794-4759-a10e-bfbbdf7fbd27" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8ca0c3fc-b794-4759-a10e-bfbbdf7fbd27" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_bf5009a7-87ac-41ad-ac74-a8b2b337dbbd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_bf5009a7-87ac-41ad-ac74-a8b2b337dbbd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_e51b45c1-e178-4ad6-b561-36304651469e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_ProceedsFromStockPlans_e51b45c1-e178-4ad6-b561-36304651469e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_PaymentsforContingentConsiderationArrangements_2240d4a9-7a86-4aed-96c7-be4d04aa947d" xlink:href="eme-20230630.xsd#eme_PaymentsforContingentConsiderationArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_eme_PaymentsforContingentConsiderationArrangements_2240d4a9-7a86-4aed-96c7-be4d04aa947d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8b366252-d57d-41a2-b07b-8e4fcd5cfbb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_e8d6e995-4908-4275-bead-731796bd6044" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8b366252-d57d-41a2-b07b-8e4fcd5cfbb3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_8eb2e6de-0d1c-48e3-9aa5-06b85e9831ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_8eb2e6de-0d1c-48e3-9aa5-06b85e9831ef" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_5c5b5073-785d-4343-b69a-eb0f3cf58469" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_5c5b5073-785d-4343-b69a-eb0f3cf58469" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_26b7c607-ab65-4f6e-97c2-16dbfee7504b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_26b7c607-ab65-4f6e-97c2-16dbfee7504b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_e336d5a5-1183-4543-8ec0-bd7d6fe861d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_98e111b5-28f3-49f2-a38c-4d76ba54b0e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_e28c0450-f9c9-48b5-94ee-40ccbf9d80ca" xlink:to="loc_us-gaap_StatementTable_98e111b5-28f3-49f2-a38c-4d76ba54b0e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_80b28567-496d-407b-aee6-751a20a5e432" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_98e111b5-28f3-49f2-a38c-4d76ba54b0e6" xlink:to="loc_srt_StatementScenarioAxis_80b28567-496d-407b-aee6-751a20a5e432" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_80b28567-496d-407b-aee6-751a20a5e432_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_80b28567-496d-407b-aee6-751a20a5e432" xlink:to="loc_srt_ScenarioUnspecifiedDomain_80b28567-496d-407b-aee6-751a20a5e432_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_c840a8ad-61af-4dab-aff3-60f959ae6953" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_80b28567-496d-407b-aee6-751a20a5e432" xlink:to="loc_srt_ScenarioUnspecifiedDomain_c840a8ad-61af-4dab-aff3-60f959ae6953" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfEquity" xlink:type="simple" xlink:href="eme-20230630.xsd#CondensedConsolidatedStatementsOfEquity"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfEquity" xlink:type="extended" id="i34e4d056bab740c69eb9c78da1bd7430_CondensedConsolidatedStatementsOfEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4d4c9ed8-1c69-4059-85e2-17b1645c0827" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4d4c9ed8-1c69-4059-85e2-17b1645c0827" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_c0d7229b-3a10-4bab-b14c-d811bc0b3837" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_ProfitLoss_c0d7229b-3a10-4bab-b14c-d811bc0b3837" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_cbf86180-2552-4b4b-98fe-c0ed1ae43aac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_cbf86180-2552-4b4b-98fe-c0ed1ae43aac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_7ac2f44e-dea4-4924-ba7d-3e6688279c16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_7ac2f44e-dea4-4924-ba7d-3e6688279c16" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_646cc0e9-fe46-472d-90f9-d62f8a11a5e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_646cc0e9-fe46-472d-90f9-d62f8a11a5e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_a9fbfd19-d462-424a-85db-d1e72d879063" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_a9fbfd19-d462-424a-85db-d1e72d879063" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_75b7118d-80d4-469d-854b-10a432b4dc15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_DividendsCommonStock_75b7118d-80d4-469d-854b-10a432b4dc15" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_DividendsCommonStock1_8402ee31-b576-42c9-b76d-f57640e691e4" xlink:href="eme-20230630.xsd#eme_DividendsCommonStock1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_eme_DividendsCommonStock1_8402ee31-b576-42c9-b76d-f57640e691e4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_7f5a70f6-7116-4685-abee-daeda1d7666f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_7f5a70f6-7116-4685-abee-daeda1d7666f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_872c0ac1-54bb-4a6b-911a-40668887ab75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_872c0ac1-54bb-4a6b-911a-40668887ab75" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ba188568-7d57-4490-bc38-d47c1034c9dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3b990c16-3a55-474b-a45e-c7839cd92721" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_d1c2a82d-f1f4-4a6c-8480-f917234b9cb8" xlink:to="loc_us-gaap_StatementTable_3b990c16-3a55-474b-a45e-c7839cd92721" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_19a045c8-4301-4319-bdb2-27b671865d67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3b990c16-3a55-474b-a45e-c7839cd92721" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_19a045c8-4301-4319-bdb2-27b671865d67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_19a045c8-4301-4319-bdb2-27b671865d67_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_19a045c8-4301-4319-bdb2-27b671865d67" xlink:to="loc_us-gaap_EquityComponentDomain_19a045c8-4301-4319-bdb2-27b671865d67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_19a045c8-4301-4319-bdb2-27b671865d67" xlink:to="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_d9657677-9d8f-49a5-b7f8-3a36c9fe4d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_CommonStockMember_d9657677-9d8f-49a5-b7f8-3a36c9fe4d2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_c6f91e9c-3ae4-47b7-97de-1d8e6d3cff36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_c6f91e9c-3ae4-47b7-97de-1d8e6d3cff36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_aa8015d3-ae1c-4547-a5e3-a41d8ce136f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_aa8015d3-ae1c-4547-a5e3-a41d8ce136f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_156a7f88-068a-4bcc-9471-17095ea6809a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_RetainedEarningsMember_156a7f88-068a-4bcc-9471-17095ea6809a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_11eef3eb-09e8-4b11-a78a-e88256c735dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_TreasuryStockCommonMember_11eef3eb-09e8-4b11-a78a-e88256c735dc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_ce33e33f-d03d-462f-ae29-3d148b55322e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4b13dc2a-b34c-474e-8daf-0f4b9a76bb50" xlink:to="loc_us-gaap_NoncontrollingInterestMember_ce33e33f-d03d-462f-ae29-3d148b55322e" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersDetails" xlink:type="extended" id="i1928bb58eac049c2ba4f8a0bfd9d6c46_RevenuefromContractswithCustomersDetails">
    <link:loc xlink:type="locator" xlink:label="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:href="eme-20230630.xsd#eme_RevenueFromContractWithCustomersLineItemsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress_f1572fb9-6c98-4c84-a0be-bdd79009d68a" xlink:href="eme-20230630.xsd#eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress_f1572fb9-6c98-4c84-a0be-bdd79009d68a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_4941a733-f949-4959-a94e-41d505331768" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_4941a733-f949-4959-a94e-41d505331768" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_952251c9-6d30-4c57-bba7-bb5b55fe41fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_952251c9-6d30-4c57-bba7-bb5b55fe41fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ContractwithCustomerNetLiabilitiesIncrease_519a735b-4bde-4df8-8951-28a686ae4f88" xlink:href="eme-20230630.xsd#eme_ContractwithCustomerNetLiabilitiesIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_eme_ContractwithCustomerNetLiabilitiesIncrease_519a735b-4bde-4df8-8951-28a686ae4f88" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetCreditLossExpense_ec0e7397-2183-4fa0-afd9-078305ca0881" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerAssetCreditLossExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_us-gaap_ContractWithCustomerAssetCreditLossExpense_ec0e7397-2183-4fa0-afd9-078305ca0881" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_051b0ca1-216a-4b88-828a-cad24f24e39e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_051b0ca1-216a-4b88-828a-cad24f24e39e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_RevenueFromContractsWithCustomersTableTable_a0bc4c6d-f1b2-40a1-9d81-dcc540e7b00b" xlink:href="eme-20230630.xsd#eme_RevenueFromContractsWithCustomersTableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_eme_RevenueFromContractWithCustomersLineItemsLineItems_f7cc362c-5a5d-4e0c-a13d-d95d12c42d4e" xlink:to="loc_eme_RevenueFromContractsWithCustomersTableTable_a0bc4c6d-f1b2-40a1-9d81-dcc540e7b00b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_919f565a-5505-4726-9ba2-91b92e1d8fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_RevenueFromContractsWithCustomersTableTable_a0bc4c6d-f1b2-40a1-9d81-dcc540e7b00b" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_919f565a-5505-4726-9ba2-91b92e1d8fc0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_919f565a-5505-4726-9ba2-91b92e1d8fc0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_919f565a-5505-4726-9ba2-91b92e1d8fc0" xlink:to="loc_us-gaap_SegmentDomain_919f565a-5505-4726-9ba2-91b92e1d8fc0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_226b727c-20d2-44ed-9ae7-8306d58ee098" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_919f565a-5505-4726-9ba2-91b92e1d8fc0" xlink:to="loc_us-gaap_SegmentDomain_226b727c-20d2-44ed-9ae7-8306d58ee098" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_b3c00e6e-ebd8-41e5-b33c-09e01d43f461" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_226b727c-20d2-44ed-9ae7-8306d58ee098" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_b3c00e6e-ebd8-41e5-b33c-09e01d43f461" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_ac2a535b-e213-4b70-81ad-1bd08fcaabce" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_226b727c-20d2-44ed-9ae7-8306d58ee098" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_ac2a535b-e213-4b70-81ad-1bd08fcaabce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e810a646-aa9e-4a44-83fd-f1b13b9c207b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_RevenueFromContractsWithCustomersTableTable_a0bc4c6d-f1b2-40a1-9d81-dcc540e7b00b" xlink:to="loc_srt_RangeAxis_e810a646-aa9e-4a44-83fd-f1b13b9c207b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e810a646-aa9e-4a44-83fd-f1b13b9c207b_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e810a646-aa9e-4a44-83fd-f1b13b9c207b" xlink:to="loc_srt_RangeMember_e810a646-aa9e-4a44-83fd-f1b13b9c207b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7066bd8b-7c1f-4793-b647-9db1e3e663d5" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e810a646-aa9e-4a44-83fd-f1b13b9c207b" xlink:to="loc_srt_RangeMember_7066bd8b-7c1f-4793-b647-9db1e3e663d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_47462121-cefe-4af2-b505-20b9b5afa064" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7066bd8b-7c1f-4793-b647-9db1e3e663d5" xlink:to="loc_srt_MinimumMember_47462121-cefe-4af2-b505-20b9b5afa064" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofCumulativeCatchUpAdjustmentDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofCumulativeCatchUpAdjustmentDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofCumulativeCatchUpAdjustmentDetails" xlink:type="extended" id="i1d57919142584a378044c814387b9d92_RevenuefromContractswithCustomersScheduleofCumulativeCatchUpAdjustmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_eme_CumulativeCatchUpAdjustmentLineItems_124d11e3-a650-4ee9-9522-fb304f1cee13" xlink:href="eme-20230630.xsd#eme_CumulativeCatchUpAdjustmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress_7d50eecd-e41f-4fd8-8296-96dab272009f" xlink:href="eme-20230630.xsd#eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_CumulativeCatchUpAdjustmentLineItems_124d11e3-a650-4ee9-9522-fb304f1cee13" xlink:to="loc_eme_ContractWithCustomerCumulativeCatchUpAdjustmentChangeInMeasureOfProgress_7d50eecd-e41f-4fd8-8296-96dab272009f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CumulativeCatchUpAdjustmentTable_e37d0f76-8ca7-433b-897b-90461dee087b" xlink:href="eme-20230630.xsd#eme_CumulativeCatchUpAdjustmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_eme_CumulativeCatchUpAdjustmentLineItems_124d11e3-a650-4ee9-9522-fb304f1cee13" xlink:to="loc_eme_CumulativeCatchUpAdjustmentTable_e37d0f76-8ca7-433b-897b-90461dee087b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_CumulativeCatchUpAdjustmentTable_e37d0f76-8ca7-433b-897b-90461dee087b" xlink:to="loc_srt_StatementGeographicalAxis_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633" xlink:to="loc_srt_SegmentGeographicalDomain_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_7365ab58-b74e-4a0d-8958-2d69652e695f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_0a3b7fd3-1b83-44c2-9e5b-71a2a6e70633" xlink:to="loc_srt_SegmentGeographicalDomain_7365ab58-b74e-4a0d-8958-2d69652e695f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_ece78d14-7c3b-4b21-af61-ad6b1b158a20" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_7365ab58-b74e-4a0d-8958-2d69652e695f" xlink:to="loc_country_US_ece78d14-7c3b-4b21-af61-ad6b1b158a20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_CumulativeCatchUpAdjustmentTable_e37d0f76-8ca7-433b-897b-90461dee087b" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17" xlink:to="loc_us-gaap_SegmentDomain_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c2ef31d0-82c0-4304-a434-de194d29eb47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4f22bdee-6eb1-41b1-9d73-45aa2b16bb17" xlink:to="loc_us-gaap_SegmentDomain_c2ef31d0-82c0-4304-a434-de194d29eb47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_5aa23b63-7158-4fce-b979-0861d2a685b4" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c2ef31d0-82c0-4304-a434-de194d29eb47" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_5aa23b63-7158-4fce-b979-0861d2a685b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_283e1a94-0a95-4058-b2af-269ad3a534b6" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c2ef31d0-82c0-4304-a434-de194d29eb47" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_283e1a94-0a95-4058-b2af-269ad3a534b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_34e7cf39-85aa-4beb-a5d9-b3b10d44ff51" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c2ef31d0-82c0-4304-a434-de194d29eb47" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_34e7cf39-85aa-4beb-a5d9-b3b10d44ff51" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofDisaggregationofRevenuesDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofDisaggregationofRevenuesDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofDisaggregationofRevenuesDetails" xlink:type="extended" id="i4bdf894bfa91452cafaf35ef170ebd9a_RevenuefromContractswithCustomersScheduleofDisaggregationofRevenuesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_4d4af1d7-bff1-40ba-9dc0-08298c5afe65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_0c899427-a5b2-4cdf-b290-50ae37d0355a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_4d4af1d7-bff1-40ba-9dc0-08298c5afe65" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_0c899427-a5b2-4cdf-b290-50ae37d0355a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_PercentageOfIndividualSegmentRevenues_58f344d4-d148-4441-b084-db4e0a8a0704" xlink:href="eme-20230630.xsd#eme_PercentageOfIndividualSegmentRevenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_4d4af1d7-bff1-40ba-9dc0-08298c5afe65" xlink:to="loc_eme_PercentageOfIndividualSegmentRevenues_58f344d4-d148-4441-b084-db4e0a8a0704" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_4d4af1d7-bff1-40ba-9dc0-08298c5afe65" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a811e674-bb14-4d11-bff9-a35ad7ffd736" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a811e674-bb14-4d11-bff9-a35ad7ffd736" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a811e674-bb14-4d11-bff9-a35ad7ffd736_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a811e674-bb14-4d11-bff9-a35ad7ffd736" xlink:to="loc_us-gaap_SegmentDomain_a811e674-bb14-4d11-bff9-a35ad7ffd736_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a811e674-bb14-4d11-bff9-a35ad7ffd736" xlink:to="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_fe76e37b-c739-43b3-a083-64242d437795" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_fe76e37b-c739-43b3-a083-64242d437795" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_56ca5f5f-b916-44ec-96db-d1ee52125797" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_56ca5f5f-b916-44ec-96db-d1ee52125797" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_d9ae3485-492d-4826-a8f0-da6d07f18a23" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_d9ae3485-492d-4826-a8f0-da6d07f18a23" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesIndustrialServicesMember_9dfdede1-b8b2-4f6e-bc2a-88883e8c22d3" xlink:href="eme-20230630.xsd#eme_UnitedStatesIndustrialServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:to="loc_eme_UnitedStatesIndustrialServicesMember_9dfdede1-b8b2-4f6e-bc2a-88883e8c22d3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomBuildingServicesMemberMember_7fe47bd1-74af-4325-ade0-d0af90bd11c0" xlink:href="eme-20230630.xsd#eme_UnitedKingdomBuildingServicesMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f0c6b36d-b7ca-43dd-b4dd-61bddc151cf0" xlink:to="loc_eme_UnitedKingdomBuildingServicesMemberMember_7fe47bd1-74af-4325-ade0-d0af90bd11c0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:to="loc_srt_StatementGeographicalAxis_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3" xlink:to="loc_srt_SegmentGeographicalDomain_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_4c79b067-0b35-495d-80b7-431ed9f377c4" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_43b76cdf-a2cc-4fa5-bde6-72057d8dcdd3" xlink:to="loc_srt_SegmentGeographicalDomain_4c79b067-0b35-495d-80b7-431ed9f377c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_10f3516a-13bb-4917-974c-f5bb6cd451c8" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4c79b067-0b35-495d-80b7-431ed9f377c4" xlink:to="loc_country_US_10f3516a-13bb-4917-974c-f5bb6cd451c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_3488f70a-365a-488a-8656-1c26c89d3707" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_4c79b067-0b35-495d-80b7-431ed9f377c4" xlink:to="loc_country_GB_3488f70a-365a-488a-8656-1c26c89d3707" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e7fa5be8-0ca7-4370-a01e-3b5615590a43" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:to="loc_srt_ConsolidationItemsAxis_e7fa5be8-0ca7-4370-a01e-3b5615590a43" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e7fa5be8-0ca7-4370-a01e-3b5615590a43_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e7fa5be8-0ca7-4370-a01e-3b5615590a43" xlink:to="loc_srt_ConsolidationItemsDomain_e7fa5be8-0ca7-4370-a01e-3b5615590a43_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_9dd30435-6c0e-4a04-adba-a2cbf08c15ea" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e7fa5be8-0ca7-4370-a01e-3b5615590a43" xlink:to="loc_srt_ConsolidationItemsDomain_9dd30435-6c0e-4a04-adba-a2cbf08c15ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_e3931a60-f959-47e9-b6a6-f216c6409fc9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9dd30435-6c0e-4a04-adba-a2cbf08c15ea" xlink:to="loc_us-gaap_OperatingSegmentsMember_e3931a60-f959-47e9-b6a6-f216c6409fc9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_7a43bbd2-671a-480c-a1ea-3130f75858b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9dd30435-6c0e-4a04-adba-a2cbf08c15ea" xlink:to="loc_us-gaap_IntersegmentEliminationMember_7a43bbd2-671a-480c-a1ea-3130f75858b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_b0fbf535-af96-43f3-9cdd-706cffae07ec" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ff69d14a-04f1-4851-97bc-5eee3fbb1ef7" xlink:to="loc_srt_ProductOrServiceAxis_b0fbf535-af96-43f3-9cdd-706cffae07ec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_b0fbf535-af96-43f3-9cdd-706cffae07ec_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_b0fbf535-af96-43f3-9cdd-706cffae07ec" xlink:to="loc_srt_ProductsAndServicesDomain_b0fbf535-af96-43f3-9cdd-706cffae07ec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_b0fbf535-af96-43f3-9cdd-706cffae07ec" xlink:to="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_NetworkandCommunicationsMarketSectorMember_40b92675-80c1-4add-ace5-aa899ab4dd6f" xlink:href="eme-20230630.xsd#eme_NetworkandCommunicationsMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_NetworkandCommunicationsMarketSectorMember_40b92675-80c1-4add-ace5-aa899ab4dd6f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CommercialMarketSectorMember_59857ad6-d31a-4b5f-9e24-fa9b81e0c6b4" xlink:href="eme-20230630.xsd#eme_CommercialMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_CommercialMarketSectorMember_59857ad6-d31a-4b5f-9e24-fa9b81e0c6b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ManufacturingandIndustrialMarketSectorMember_564d4823-9932-4946-b65f-9cc4fe7d6bbd" xlink:href="eme-20230630.xsd#eme_ManufacturingandIndustrialMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_ManufacturingandIndustrialMarketSectorMember_564d4823-9932-4946-b65f-9cc4fe7d6bbd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_HealthcareMarketSectorMember_5fe1967a-9aec-4231-a8e5-bbe9cd4d054b" xlink:href="eme-20230630.xsd#eme_HealthcareMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_HealthcareMarketSectorMember_5fe1967a-9aec-4231-a8e5-bbe9cd4d054b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_HighTechManufacturingMarketSectorMember_03bd6461-922b-47e7-8ddf-6d456f5d75f4" xlink:href="eme-20230630.xsd#eme_HighTechManufacturingMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_HighTechManufacturingMarketSectorMember_03bd6461-922b-47e7-8ddf-6d456f5d75f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_InstitutionalMarketSectorMember_aec92e0b-d0f0-4d98-9d10-29a0233c0377" xlink:href="eme-20230630.xsd#eme_InstitutionalMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_InstitutionalMarketSectorMember_aec92e0b-d0f0-4d98-9d10-29a0233c0377" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_TransportationMarketSectorMember_6e862398-3bd3-4122-8599-14bc86afe9c3" xlink:href="eme-20230630.xsd#eme_TransportationMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_TransportationMarketSectorMember_6e862398-3bd3-4122-8599-14bc86afe9c3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_WaterandWastewaterMarketSectorMember_9ab6ab3d-58e8-4775-b780-19712f51f4a3" xlink:href="eme-20230630.xsd#eme_WaterandWastewaterMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_WaterandWastewaterMarketSectorMember_9ab6ab3d-58e8-4775-b780-19712f51f4a3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_HospitalityandEntertainmentMarketSectorMember_958b8e8f-590f-45f5-9e8f-cf91166adeeb" xlink:href="eme-20230630.xsd#eme_HospitalityandEntertainmentMarketSectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_HospitalityandEntertainmentMarketSectorMember_958b8e8f-590f-45f5-9e8f-cf91166adeeb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ShortDurationProjectsMember_90c61616-9e56-41f8-9115-c5ca01696a8a" xlink:href="eme-20230630.xsd#eme_ShortDurationProjectsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_ShortDurationProjectsMember_90c61616-9e56-41f8-9115-c5ca01696a8a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ServiceWorkMember_64981885-3baa-4d34-ba24-2b167eeaeb62" xlink:href="eme-20230630.xsd#eme_ServiceWorkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_ServiceWorkMember_64981885-3baa-4d34-ba24-2b167eeaeb62" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_MechanicalServicesMember_aa4f6ec5-c47a-49a8-af0a-8aae0e1c10d8" xlink:href="eme-20230630.xsd#eme_MechanicalServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_MechanicalServicesMember_aa4f6ec5-c47a-49a8-af0a-8aae0e1c10d8" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CommercialSiteBasedServicesMember_997b60b2-e64f-4796-9a9d-b3db4040e165" xlink:href="eme-20230630.xsd#eme_CommercialSiteBasedServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_CommercialSiteBasedServicesMember_997b60b2-e64f-4796-9a9d-b3db4040e165" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_GovernmentSiteBasedServicesMember_06a3c026-81e4-46c5-b86b-51d6d511e789" xlink:href="eme-20230630.xsd#eme_GovernmentSiteBasedServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_GovernmentSiteBasedServicesMember_06a3c026-81e4-46c5-b86b-51d6d511e789" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_FieldServicesMember_0b18a5cc-1bab-4ac5-993d-161912cd412d" xlink:href="eme-20230630.xsd#eme_FieldServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_FieldServicesMember_0b18a5cc-1bab-4ac5-993d-161912cd412d" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ShopServicesMember_25d96009-5c64-4059-88f4-4d918af5f110" xlink:href="eme-20230630.xsd#eme_ShopServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_ShopServicesMember_25d96009-5c64-4059-88f4-4d918af5f110" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ProjectWorkMember_492cb2b6-b7ee-4332-8e94-bf7130759a01" xlink:href="eme-20230630.xsd#eme_ProjectWorkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0f352c50-439a-4696-b57e-ff0eea09a920" xlink:to="loc_eme_ProjectWorkMember_492cb2b6-b7ee-4332-8e94-bf7130759a01" xlink:type="arc" order="16"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofCreditLossesDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofCreditLossesDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofCreditLossesDetails" xlink:type="extended" id="iefda5a61c7494c85bdc76d73396aa591_RevenuefromContractswithCustomersScheduleofCreditLossesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ca458f73-ff79-4e39-967d-967bb3554523" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_aa0bd4ae-366a-4444-ad27-50f8761c1853" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ca458f73-ff79-4e39-967d-967bb3554523" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_aa0bd4ae-366a-4444-ad27-50f8761c1853" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_95162617-a4cd-42b9-a8a4-d04629b545f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ca458f73-ff79-4e39-967d-967bb3554523" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_95162617-a4cd-42b9-a8a4-d04629b545f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_85b17cf0-cf67-49f5-8d28-478119edae90" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ca458f73-ff79-4e39-967d-967bb3554523" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_85b17cf0-cf67-49f5-8d28-478119edae90" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1929b4a5-cab9-48f4-8bb4-d98b113a7a03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ca458f73-ff79-4e39-967d-967bb3554523" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1929b4a5-cab9-48f4-8bb4-d98b113a7a03" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_c2177a35-e21e-48da-a85e-3c043d201e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1929b4a5-cab9-48f4-8bb4-d98b113a7a03" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_c2177a35-e21e-48da-a85e-3c043d201e4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_c2177a35-e21e-48da-a85e-3c043d201e4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_c2177a35-e21e-48da-a85e-3c043d201e4d" xlink:to="loc_us-gaap_ReceivableTypeDomain_c2177a35-e21e-48da-a85e-3c043d201e4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_792757c3-6fec-428b-bc91-41104b0021d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_c2177a35-e21e-48da-a85e-3c043d201e4d" xlink:to="loc_us-gaap_ReceivableTypeDomain_792757c3-6fec-428b-bc91-41104b0021d1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsDetails" xlink:type="extended" id="i2114eda76ced44569edf0661747794e5_RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_eme_ScheduleofRemainingPerformanceObligationsLineItems_b5f96696-c883-4bca-9ed2-fd018931b3f9" xlink:href="eme-20230630.xsd#eme_ScheduleofRemainingPerformanceObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_274332a0-97b5-4ff2-8fa6-d20ac6097686" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_ScheduleofRemainingPerformanceObligationsLineItems_b5f96696-c883-4bca-9ed2-fd018931b3f9" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_274332a0-97b5-4ff2-8fa6-d20ac6097686" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_3a74380d-02c3-4c16-a945-f27e41e26c69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_eme_ScheduleofRemainingPerformanceObligationsLineItems_b5f96696-c883-4bca-9ed2-fd018931b3f9" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_3a74380d-02c3-4c16-a945-f27e41e26c69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ScheduleofRemainingPerformanceObligationsTable_3a617219-ab8d-4bca-9fe3-40bfce871f46" xlink:href="eme-20230630.xsd#eme_ScheduleofRemainingPerformanceObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_eme_ScheduleofRemainingPerformanceObligationsLineItems_b5f96696-c883-4bca-9ed2-fd018931b3f9" xlink:to="loc_eme_ScheduleofRemainingPerformanceObligationsTable_3a617219-ab8d-4bca-9fe3-40bfce871f46" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_a2c73e3c-e12b-4826-8ea0-86db9ec9316a" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_ScheduleofRemainingPerformanceObligationsTable_3a617219-ab8d-4bca-9fe3-40bfce871f46" xlink:to="loc_srt_StatementGeographicalAxis_a2c73e3c-e12b-4826-8ea0-86db9ec9316a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a2c73e3c-e12b-4826-8ea0-86db9ec9316a_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_a2c73e3c-e12b-4826-8ea0-86db9ec9316a" xlink:to="loc_srt_SegmentGeographicalDomain_a2c73e3c-e12b-4826-8ea0-86db9ec9316a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a6c79b15-b3e4-4158-9da0-4b293dc94df7" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_a2c73e3c-e12b-4826-8ea0-86db9ec9316a" xlink:to="loc_srt_SegmentGeographicalDomain_a6c79b15-b3e4-4158-9da0-4b293dc94df7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_c2afdc3b-ab83-43d0-8827-923a328d4730" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a6c79b15-b3e4-4158-9da0-4b293dc94df7" xlink:to="loc_country_US_c2afdc3b-ab83-43d0-8827-923a328d4730" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_05b9a912-6a33-48a6-9905-b894c0f85d90" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a6c79b15-b3e4-4158-9da0-4b293dc94df7" xlink:to="loc_country_GB_05b9a912-6a33-48a6-9905-b894c0f85d90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_eme_ScheduleofRemainingPerformanceObligationsTable_3a617219-ab8d-4bca-9fe3-40bfce871f46" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5" xlink:to="loc_us-gaap_SegmentDomain_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_aebe85bb-a7f6-4c3e-a70d-2812de09a7a5" xlink:to="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_ac2e3ac3-a69e-45f3-8125-9793bb306585" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_ac2e3ac3-a69e-45f3-8125-9793bb306585" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_fbd1bae6-097a-46d2-8739-1ff79055cd27" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_fbd1bae6-097a-46d2-8739-1ff79055cd27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_644c3771-f737-4718-801d-da20ac04bbfb" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_644c3771-f737-4718-801d-da20ac04bbfb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesIndustrialServicesMember_f7aba13b-f386-4d1c-932c-49b3c9cac32b" xlink:href="eme-20230630.xsd#eme_UnitedStatesIndustrialServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:to="loc_eme_UnitedStatesIndustrialServicesMember_f7aba13b-f386-4d1c-932c-49b3c9cac32b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomBuildingServicesMemberMember_c133bebd-dc73-4d5a-88cb-11ba2376efbc" xlink:href="eme-20230630.xsd#eme_UnitedKingdomBuildingServicesMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_23bae9c6-ffe8-46d8-ae2f-c6b6d02db66e" xlink:to="loc_eme_UnitedKingdomBuildingServicesMemberMember_c133bebd-dc73-4d5a-88cb-11ba2376efbc" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails" xlink:type="extended" id="id33fd84bd0e24dc58f1cc228beb90cc4_RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_824d7a60-2f35-4194-ac6d-06f6c125cd6b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_824d7a60-2f35-4194-ac6d-06f6c125cd6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_4d5a10d5-4a42-461b-907a-c22e236a407f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_4d5a10d5-4a42-461b-907a-c22e236a407f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_a87689eb-5236-4dd7-bf3f-61aa7ebaa5ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_a87689eb-5236-4dd7-bf3f-61aa7ebaa5ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a3adb60a-997b-43a8-9164-6b5f3f74aa87_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:to="loc_us-gaap_SegmentDomain_a3adb60a-997b-43a8-9164-6b5f3f74aa87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:to="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_3050da05-f96e-4f4c-9a05-dacba04569c9" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_3050da05-f96e-4f4c-9a05-dacba04569c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_b6490bdd-ebef-438b-adbb-c84f225c3fa6" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_b6490bdd-ebef-438b-adbb-c84f225c3fa6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_44f97efa-776e-4177-8237-08d75aec3b1e" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_44f97efa-776e-4177-8237-08d75aec3b1e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesIndustrialServicesMember_0e02db43-f893-4ea9-b32b-7a752bbc5d2b" xlink:href="eme-20230630.xsd#eme_UnitedStatesIndustrialServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesIndustrialServicesMember_0e02db43-f893-4ea9-b32b-7a752bbc5d2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomBuildingServicesMemberMember_ab705eec-1aa1-4d08-95f3-5fd7a809c4e3" xlink:href="eme-20230630.xsd#eme_UnitedKingdomBuildingServicesMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedKingdomBuildingServicesMemberMember_ab705eec-1aa1-4d08-95f3-5fd7a809c4e3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:to="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_c9a05074-0867-4828-be51-cccfa21cee55_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:to="loc_srt_SegmentGeographicalDomain_c9a05074-0867-4828-be51-cccfa21cee55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:to="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_99109911-06eb-4159-9954-3aace7a084de" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:to="loc_country_US_99109911-06eb-4159-9954-3aace7a084de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_bd5772e0-2f8c-4715-b368-92536e000b2f" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:to="loc_country_GB_bd5772e0-2f8c-4715-b368-92536e000b2f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails_1" xlink:type="simple" xlink:href="eme-20230630.xsd#RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails_1"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails_1" xlink:type="extended" id="icf98ef049ffb41c8bbcd8221d3163ca0_RevenuefromContractswithCustomersScheduleofRevenueRemainingPerformanceObligationsExpectedTimingofSatisfactionDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_824d7a60-2f35-4194-ac6d-06f6c125cd6b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_824d7a60-2f35-4194-ac6d-06f6c125cd6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_4d5a10d5-4a42-461b-907a-c22e236a407f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_4d5a10d5-4a42-461b-907a-c22e236a407f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_b4dd2c28-3be1-4210-af6a-671efd2f703d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a3adb60a-997b-43a8-9164-6b5f3f74aa87_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:to="loc_us-gaap_SegmentDomain_a3adb60a-997b-43a8-9164-6b5f3f74aa87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a3adb60a-997b-43a8-9164-6b5f3f74aa87" xlink:to="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_3050da05-f96e-4f4c-9a05-dacba04569c9" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_3050da05-f96e-4f4c-9a05-dacba04569c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_b6490bdd-ebef-438b-adbb-c84f225c3fa6" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_b6490bdd-ebef-438b-adbb-c84f225c3fa6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_44f97efa-776e-4177-8237-08d75aec3b1e" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_44f97efa-776e-4177-8237-08d75aec3b1e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesIndustrialServicesMember_0e02db43-f893-4ea9-b32b-7a752bbc5d2b" xlink:href="eme-20230630.xsd#eme_UnitedStatesIndustrialServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedStatesIndustrialServicesMember_0e02db43-f893-4ea9-b32b-7a752bbc5d2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomBuildingServicesMemberMember_ab705eec-1aa1-4d08-95f3-5fd7a809c4e3" xlink:href="eme-20230630.xsd#eme_UnitedKingdomBuildingServicesMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9d3689de-cd3b-4aa0-8524-961e1c2ee98a" xlink:to="loc_eme_UnitedKingdomBuildingServicesMemberMember_ab705eec-1aa1-4d08-95f3-5fd7a809c4e3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e367d00b-2d4e-45e8-bc68-c970c14d905d" xlink:to="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_c9a05074-0867-4828-be51-cccfa21cee55_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:to="loc_srt_SegmentGeographicalDomain_c9a05074-0867-4828-be51-cccfa21cee55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_c9a05074-0867-4828-be51-cccfa21cee55" xlink:to="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_99109911-06eb-4159-9954-3aace7a084de" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:to="loc_country_US_99109911-06eb-4159-9954-3aace7a084de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_bd5772e0-2f8c-4715-b368-92536e000b2f" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_9b1e8651-89e6-4902-adff-ef6084d56465" xlink:to="loc_country_GB_bd5772e0-2f8c-4715-b368-92536e000b2f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/AcquisitionsOfBusinessesDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#AcquisitionsOfBusinessesDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/AcquisitionsOfBusinessesDetails" xlink:type="extended" id="i3cc3e2e319af4071b0efd2bd78df0e12_AcquisitionsOfBusinessesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfBusinessesAcquired_73db9894-ef8d-4a60-bf1b-3c9b81390ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfBusinessesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_us-gaap_NumberOfBusinessesAcquired_73db9894-ef8d-4a60-bf1b-3c9b81390ce2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_fa1382b8-4f9f-4f3c-9975-3897691b793b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_fa1382b8-4f9f-4f3c-9975-3897691b793b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_BusinessCombinationRecognizedWorkingCapital_bc3a3a1c-5ff8-4f66-8caf-a9d27e2a5f8d" xlink:href="eme-20230630.xsd#eme_BusinessCombinationRecognizedWorkingCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_eme_BusinessCombinationRecognizedWorkingCapital_bc3a3a1c-5ff8-4f66-8caf-a9d27e2a5f8d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_BusinessCombinationRecognizedOtherNetLiabilities_831a0b06-de52-44b4-a4f6-493fc4093c4c" xlink:href="eme-20230630.xsd#eme_BusinessCombinationRecognizedOtherNetLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_eme_BusinessCombinationRecognizedOtherNetLiabilities_831a0b06-de52-44b4-a4f6-493fc4093c4c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_335e4d38-5f08-470e-8ad3-38780eaa5232" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_us-gaap_Goodwill_335e4d38-5f08-470e-8ad3-38780eaa5232" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_128e1ce6-9c7f-4535-811e-69cd4f25d474" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_128e1ce6-9c7f-4535-811e-69cd4f25d474" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_BusinessCombinationEstimatedAnnualRevenuesOfAcquisition_1f744af5-ee23-4823-ab4d-8284fb60c1cb" xlink:href="eme-20230630.xsd#eme_BusinessCombinationEstimatedAnnualRevenuesOfAcquisition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_eme_BusinessCombinationEstimatedAnnualRevenuesOfAcquisition_1f744af5-ee23-4823-ab4d-8284fb60c1cb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_32119df4-5787-4aa0-be64-4da1957ee518" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_cf8a3716-b1d2-4d25-872c-89155864751d" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_32119df4-5787-4aa0-be64-4da1957ee518" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_4f6495d5-01ce-45fb-a0ff-c39eba43eb10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_32119df4-5787-4aa0-be64-4da1957ee518" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_4f6495d5-01ce-45fb-a0ff-c39eba43eb10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4f6495d5-01ce-45fb-a0ff-c39eba43eb10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4f6495d5-01ce-45fb-a0ff-c39eba43eb10" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4f6495d5-01ce-45fb-a0ff-c39eba43eb10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_dd8d840c-7ffa-4050-92a8-db5aa0822004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4f6495d5-01ce-45fb-a0ff-c39eba43eb10" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_dd8d840c-7ffa-4050-92a8-db5aa0822004" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_A2022AcquisitionsMember_8d6ebd0a-e041-404b-9fc3-67c1d237e1b3" xlink:href="eme-20230630.xsd#eme_A2022AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_dd8d840c-7ffa-4050-92a8-db5aa0822004" xlink:to="loc_eme_A2022AcquisitionsMember_8d6ebd0a-e041-404b-9fc3-67c1d237e1b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_ECMMember_369c96c5-bf5a-4a23-a9f8-750a7c2ba4f0" xlink:href="eme-20230630.xsd#eme_ECMMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_dd8d840c-7ffa-4050-92a8-db5aa0822004" xlink:to="loc_eme_ECMMember_369c96c5-bf5a-4a23-a9f8-750a7c2ba4f0" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#EarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/EarningsPerShareDetails" xlink:type="extended" id="ic8795cc873f64ceb8f836149bf303586_EarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_a7d4b76c-fa29-440f-9452-aa9993b82019" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_230cb062-2dbe-471c-b77e-71b78bd6aeea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_a7d4b76c-fa29-440f-9452-aa9993b82019" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_230cb062-2dbe-471c-b77e-71b78bd6aeea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_57399ec9-5548-4654-bafc-58e508ec642e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_a7d4b76c-fa29-440f-9452-aa9993b82019" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_57399ec9-5548-4654-bafc-58e508ec642e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8e16ca29-14ce-4818-8f6f-a41d36232aae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_57399ec9-5548-4654-bafc-58e508ec642e" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8e16ca29-14ce-4818-8f6f-a41d36232aae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8e16ca29-14ce-4818-8f6f-a41d36232aae_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8e16ca29-14ce-4818-8f6f-a41d36232aae" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8e16ca29-14ce-4818-8f6f-a41d36232aae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_01d65ff1-ee9d-47e2-8d39-8b6fd99417b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8e16ca29-14ce-4818-8f6f-a41d36232aae" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_01d65ff1-ee9d-47e2-8d39-8b6fd99417b6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/DebtNarrativeDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#DebtNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/DebtNarrativeDetails" xlink:type="extended" id="i7ae1e4d50126430b9dc6f6138253e581_DebtNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_4c5a4c24-5a01-4427-91d9-397344b2c9e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_4c5a4c24-5a01-4427-91d9-397344b2c9e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_3e5024d2-e65f-4972-b567-97e3d7354c47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LongTermDebt_3e5024d2-e65f-4972-b567-97e3d7354c47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementInitiationDate1_ed6518a7-cc10-482b-ae3e-f7c81d615d3f" xlink:href="eme-20230630.xsd#eme_CreditAgreementInitiationDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_CreditAgreementInitiationDate1_ed6518a7-cc10-482b-ae3e-f7c81d615d3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementExpirationDate1_f216e2ca-4d59-44e7-8eaa-3dec87deb476" xlink:href="eme-20230630.xsd#eme_CreditAgreementExpirationDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_CreditAgreementExpirationDate1_f216e2ca-4d59-44e7-8eaa-3dec87deb476" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementFirstAmendmentDate1_9371b743-183d-41fc-8482-ab8a920bcc03" xlink:href="eme-20230630.xsd#eme_CreditAgreementFirstAmendmentDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_CreditAgreementFirstAmendmentDate1_9371b743-183d-41fc-8482-ab8a920bcc03" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_IncreaseBorrowingCapacity_0eb77669-eba6-4342-851a-ab7c4bf7dc2c" xlink:href="eme-20230630.xsd#eme_IncreaseBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_IncreaseBorrowingCapacity_0eb77669-eba6-4342-851a-ab7c4bf7dc2c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_LettersOfCreditMaximumBorrowingCapacity_1b61bd31-bd0f-4259-b2b0-53c2b2f533c4" xlink:href="eme-20230630.xsd#eme_LettersOfCreditMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_LettersOfCreditMaximumBorrowingCapacity_1b61bd31-bd0f-4259-b2b0-53c2b2f533c4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermLineOfCredit_d3aadf46-32ed-44cb-af22-e127d3764d96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermLineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LongTermLineOfCredit_d3aadf46-32ed-44cb-af22-e127d3764d96" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_b13bec04-b682-4237-8265-b51cbdbf12c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_b13bec04-b682-4237-8265-b51cbdbf12c0" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateDescription_bbcf8890-51b1-4ab7-9c57-a49d957013c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityInterestRateDescription"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateDescription_bbcf8890-51b1-4ab7-9c57-a49d957013c4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_e8efdbf2-9ced-4e8b-9422-8947ec7502c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_e8efdbf2-9ced-4e8b-9422-8947ec7502c2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_f98e8c1b-b1e8-4966-bb02-51cb3bad2cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtPercentageBearingVariableInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_f98e8c1b-b1e8-4966-bb02-51cb3bad2cd0" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_707fc475-fba4-41a8-8284-3025c54a7b94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_707fc475-fba4-41a8-8284-3025c54a7b94" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_98a6a9c8-b23f-4f1d-a068-adb6a806b037" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_98a6a9c8-b23f-4f1d-a068-adb6a806b037" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_RangeOfLetterOfCreditFees_a56f99c8-3265-4f50-b8b0-26d2ec1a6a20" xlink:href="eme-20230630.xsd#eme_RangeOfLetterOfCreditFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_eme_RangeOfLetterOfCreditFees_a56f99c8-3265-4f50-b8b0-26d2ec1a6a20" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_a2668872-e301-4744-a600-95b759c518b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_a2668872-e301-4744-a600-95b759c518b5" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_cc4f6919-943c-48c0-a19a-a274d98af5a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAnnualPrincipalPayment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_cc4f6919-943c-48c0-a19a-a274d98af5a4" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_59039497-91e1-48bd-bead-29766cbcf4bb" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_9e9cf880-bff3-4af5-86dd-67d586c5fbda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:to="loc_us-gaap_CreditFacilityAxis_9e9cf880-bff3-4af5-86dd-67d586c5fbda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_9e9cf880-bff3-4af5-86dd-67d586c5fbda_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_9e9cf880-bff3-4af5-86dd-67d586c5fbda" xlink:to="loc_us-gaap_CreditFacilityDomain_9e9cf880-bff3-4af5-86dd-67d586c5fbda_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_35c75d49-1f6d-41f1-a5e3-0290b2228e65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_9e9cf880-bff3-4af5-86dd-67d586c5fbda" xlink:to="loc_us-gaap_CreditFacilityDomain_35c75d49-1f6d-41f1-a5e3-0290b2228e65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f0f5181a-38d1-4448-adda-ec82da02b878" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_35c75d49-1f6d-41f1-a5e3-0290b2228e65" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f0f5181a-38d1-4448-adda-ec82da02b878" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:to="loc_us-gaap_VariableRateAxis_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3" xlink:to="loc_us-gaap_VariableRateDomain_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_dc4dfc72-9b5a-4a81-92c7-f2f21a817ee3" xlink:to="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_93b61efe-e0fe-431a-bd45-f037694f61e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_us-gaap_BaseRateMember_93b61efe-e0fe-431a-bd45-f037694f61e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_05cec53b-f50a-452b-bc84-a826d915efc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_05cec53b-f50a-452b-bc84-a826d915efc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_AdjustedTermSOFRMember_e87dae07-a0d5-4ad8-bcea-ce9110c8431c" xlink:href="eme-20230630.xsd#eme_AdjustedTermSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_eme_AdjustedTermSOFRMember_e87dae07-a0d5-4ad8-bcea-ce9110c8431c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementBaseRateBankofMontrealPrimeRateMember_b5a6fe0d-6a83-4ea4-96dc-187cc8b41bc8" xlink:href="eme-20230630.xsd#eme_CreditAgreementBaseRateBankofMontrealPrimeRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_eme_CreditAgreementBaseRateBankofMontrealPrimeRateMember_b5a6fe0d-6a83-4ea4-96dc-187cc8b41bc8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementBaseRateAdjustedSOFROneMonthTenorRateMember_b4910e87-f369-42b5-a302-0d55eceaabba" xlink:href="eme-20230630.xsd#eme_CreditAgreementBaseRateAdjustedSOFROneMonthTenorRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_eme_CreditAgreementBaseRateAdjustedSOFROneMonthTenorRateMember_b4910e87-f369-42b5-a302-0d55eceaabba" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreement0BaseRateMember_fe9a4c3f-d7a8-4c71-bd91-c36768a3ac99" xlink:href="eme-20230630.xsd#eme_CreditAgreement0BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_eme_CreditAgreement0BaseRateMember_fe9a4c3f-d7a8-4c71-bd91-c36768a3ac99" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreementBaseRateFederalFundsRateMember_85ed3ad9-e771-4945-9d3c-29f2b30bab96" xlink:href="eme-20230630.xsd#eme_CreditAgreementBaseRateFederalFundsRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e3e87d4b-f7cf-4331-8262-0decd100d23d" xlink:to="loc_eme_CreditAgreementBaseRateFederalFundsRateMember_85ed3ad9-e771-4945-9d3c-29f2b30bab96" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:to="loc_srt_RangeAxis_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf" xlink:to="loc_srt_RangeMember_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_cae91b63-549a-4bf0-9c41-a8eba27b5691" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_567f9ca1-3cca-4edc-8e79-a228c6d1e0bf" xlink:to="loc_srt_RangeMember_cae91b63-549a-4bf0-9c41-a8eba27b5691" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3178ebca-a142-4319-b411-509c7e0a5907" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_cae91b63-549a-4bf0-9c41-a8eba27b5691" xlink:to="loc_srt_MinimumMember_3178ebca-a142-4319-b411-509c7e0a5907" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_120d859f-88e7-4a53-8c79-e31db8f8f3c9" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_cae91b63-549a-4bf0-9c41-a8eba27b5691" xlink:to="loc_srt_MaximumMember_120d859f-88e7-4a53-8c79-e31db8f8f3c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:to="loc_us-gaap_DebtInstrumentAxis_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_fa582bc4-4ff1-46d0-8e40-4c12d6e0e7d9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_OriginalCreditAgreement2020Member_507b4d51-0cb7-454e-905a-1a78c3697056" xlink:href="eme-20230630.xsd#eme_OriginalCreditAgreement2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:to="loc_eme_OriginalCreditAgreement2020Member_507b4d51-0cb7-454e-905a-1a78c3697056" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_CreditAgreement2020Member_ca1b56f2-ca9d-4372-92b9-9b86e07140ee" xlink:href="eme-20230630.xsd#eme_CreditAgreement2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:to="loc_eme_CreditAgreement2020Member_ca1b56f2-ca9d-4372-92b9-9b86e07140ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_RevolvingCreditFacility2020Member_08db4685-ffbb-4b70-8e40-61e0f642b02a" xlink:href="eme-20230630.xsd#eme_RevolvingCreditFacility2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:to="loc_eme_RevolvingCreditFacility2020Member_08db4685-ffbb-4b70-8e40-61e0f642b02a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_TermLoan2020Member_d2381a78-6c1d-4831-97a0-7c3b8b59f67f" xlink:href="eme-20230630.xsd#eme_TermLoan2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:to="loc_eme_TermLoan2020Member_d2381a78-6c1d-4831-97a0-7c3b8b59f67f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_FirstAmendmentMember_1c7bc302-7f77-46ce-b72a-3db9a5037079" xlink:href="eme-20230630.xsd#eme_FirstAmendmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_da98d988-19a4-4b4e-b103-909f0238a4de" xlink:to="loc_eme_FirstAmendmentMember_1c7bc302-7f77-46ce-b72a-3db9a5037079" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_48e52b51-cc7a-4d35-80a1-2bf5714f251e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_73eca948-cc96-4472-9c02-912c1c2b8873" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_48e52b51-cc7a-4d35-80a1-2bf5714f251e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_48e52b51-cc7a-4d35-80a1-2bf5714f251e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_48e52b51-cc7a-4d35-80a1-2bf5714f251e" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_48e52b51-cc7a-4d35-80a1-2bf5714f251e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_fb01ef40-b5c3-437f-8602-a21acc300476" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_48e52b51-cc7a-4d35-80a1-2bf5714f251e" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_fb01ef40-b5c3-437f-8602-a21acc300476" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_a593584f-bc95-44f6-8343-f5266332f5d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_fb01ef40-b5c3-437f-8602-a21acc300476" xlink:to="loc_us-gaap_SubsequentEventMember_a593584f-bc95-44f6-8343-f5266332f5d0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/DebtScheduleOfDebtDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#DebtScheduleOfDebtDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/DebtScheduleOfDebtDetails" xlink:type="extended" id="i96a51ef0f4c04f1f8f2282e6092528b6_DebtScheduleOfDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermLineOfCredit_a9fa4700-c286-4f3e-8362-9fc4aa72b864" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermLineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_LongTermLineOfCredit_a9fa4700-c286-4f3e-8362-9fc4aa72b864" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_a0d488f6-197f-4a90-9142-b7e49ea8c16a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_LongTermDebt_a0d488f6-197f-4a90-9142-b7e49ea8c16a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_52915e5b-9c9e-47c1-adc5-4257e3e82ff8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_52915e5b-9c9e-47c1-adc5-4257e3e82ff8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_c55d034b-079e-4637-94c3-a6ae62533f83" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_FinanceLeaseLiability_c55d034b-079e-4637-94c3-a6ae62533f83" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_6408fbc0-7e18-4293-b720-dfe1437e8536" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_6408fbc0-7e18-4293-b720-dfe1437e8536" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_29a0112f-a0dc-4da6-90dd-54f424f2ebd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_29a0112f-a0dc-4da6-90dd-54f424f2ebd9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_5267610f-e348-4a9f-97e4-bfc88524f971" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_5267610f-e348-4a9f-97e4-bfc88524f971" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_095ef100-acbf-40b4-9995-874e2af2d73e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6d0d23f1-47e4-4686-86c5-4b288474ecc0" xlink:to="loc_us-gaap_DebtInstrumentTable_095ef100-acbf-40b4-9995-874e2af2d73e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_344eaa09-266b-4e35-80b7-09cb24ea0087" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_095ef100-acbf-40b4-9995-874e2af2d73e" xlink:to="loc_us-gaap_DebtInstrumentAxis_344eaa09-266b-4e35-80b7-09cb24ea0087" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_344eaa09-266b-4e35-80b7-09cb24ea0087_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_344eaa09-266b-4e35-80b7-09cb24ea0087" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_344eaa09-266b-4e35-80b7-09cb24ea0087_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e1034cc7-b537-4ee3-b2ca-86ca2dfc97c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_344eaa09-266b-4e35-80b7-09cb24ea0087" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e1034cc7-b537-4ee3-b2ca-86ca2dfc97c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_RevolvingCreditFacility2020Member_bd00602d-c6cb-49a9-b2a6-f1e0f2a6b578" xlink:href="eme-20230630.xsd#eme_RevolvingCreditFacility2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e1034cc7-b537-4ee3-b2ca-86ca2dfc97c6" xlink:to="loc_eme_RevolvingCreditFacility2020Member_bd00602d-c6cb-49a9-b2a6-f1e0f2a6b578" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_TermLoan2020Member_16d731ab-e4fd-4ba7-b5ef-e83fe426ec3b" xlink:href="eme-20230630.xsd#eme_TermLoan2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e1034cc7-b537-4ee3-b2ca-86ca2dfc97c6" xlink:to="loc_eme_TermLoan2020Member_16d731ab-e4fd-4ba7-b5ef-e83fe426ec3b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesCarriedAtFairValueMeasuredOnARecurringBasisDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#FairValueMeasurementsScheduleOfAssetsAndLiabilitiesCarriedAtFairValueMeasuredOnARecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesCarriedAtFairValueMeasuredOnARecurringBasisDetails" xlink:type="extended" id="i78d6c0c941ba401f9b25ad1e99802748_FairValueMeasurementsScheduleOfAssetsAndLiabilitiesCarriedAtFairValueMeasuredOnARecurringBasisDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_6e39746b-3f75-4399-8a50-5d9da2287887" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_6e39746b-3f75-4399-8a50-5d9da2287887" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationPlanAssets_6377fb1f-b740-4fd8-97c0-ce8e335ea7e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredCompensationPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:to="loc_us-gaap_DeferredCompensationPlanAssets_6377fb1f-b740-4fd8-97c0-ce8e335ea7e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_de2e66a8-c019-47f5-aa6d-54916b4c739d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_de2e66a8-c019-47f5-aa6d-54916b4c739d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3fbc7cf8-084f-4c0f-bc33-354ba4f9cb4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_3fbc7cf8-084f-4c0f-bc33-354ba4f9cb4f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7bcd5017-6109-4ce7-beef-ecd806a62b16" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_615ddc17-4fef-4792-8509-5233557994e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_615ddc17-4fef-4792-8509-5233557994e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_615ddc17-4fef-4792-8509-5233557994e3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_615ddc17-4fef-4792-8509-5233557994e3" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_615ddc17-4fef-4792-8509-5233557994e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_b86f3c7d-4a0f-4da8-b701-fc17e199829e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_615ddc17-4fef-4792-8509-5233557994e3" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_b86f3c7d-4a0f-4da8-b701-fc17e199829e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_d979bff3-6c91-4831-956c-34db5a16c0aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_b86f3c7d-4a0f-4da8-b701-fc17e199829e" xlink:to="loc_us-gaap_MoneyMarketFundsMember_d979bff3-6c91-4831-956c-34db5a16c0aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_448a6527-2fe5-451d-bfbb-b00e75e1ab43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_f69938f8-e5d1-4d70-b9ab-6fdcbb11ed0d" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_448a6527-2fe5-451d-bfbb-b00e75e1ab43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e1665a39-a7a6-4875-a88c-3aca84de3515" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_448a6527-2fe5-451d-bfbb-b00e75e1ab43" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e1665a39-a7a6-4875-a88c-3aca84de3515" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_dca1faa4-fd0e-4eab-a41e-822441710f04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_dca1faa4-fd0e-4eab-a41e-822441710f04" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_dca1faa4-fd0e-4eab-a41e-822441710f04_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_dca1faa4-fd0e-4eab-a41e-822441710f04" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_dca1faa4-fd0e-4eab-a41e-822441710f04_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_b5d81823-5c3a-4734-a9c1-e70418a36d70" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_dca1faa4-fd0e-4eab-a41e-822441710f04" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_b5d81823-5c3a-4734-a9c1-e70418a36d70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_c9e7a11b-0803-4e65-856e-3b2e544265b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_b5d81823-5c3a-4734-a9c1-e70418a36d70" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_c9e7a11b-0803-4e65-856e-3b2e544265b1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23326946-d55d-4c5e-86b5-ad119d2b1cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_53e15047-af33-46c4-b044-77f66d72d597" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23326946-d55d-4c5e-86b5-ad119d2b1cd4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_23326946-d55d-4c5e-86b5-ad119d2b1cd4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23326946-d55d-4c5e-86b5-ad119d2b1cd4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_23326946-d55d-4c5e-86b5-ad119d2b1cd4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ec508ae0-ce27-42b8-8195-999e6c684a01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23326946-d55d-4c5e-86b5-ad119d2b1cd4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ec508ae0-ce27-42b8-8195-999e6c684a01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_21322ebb-f24b-4ad9-8ec6-be42d73b7919" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ec508ae0-ce27-42b8-8195-999e6c684a01" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_21322ebb-f24b-4ad9-8ec6-be42d73b7919" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_9eaa50cd-8dd5-4d51-bfb2-1903fe6f1fcd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ec508ae0-ce27-42b8-8195-999e6c684a01" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_9eaa50cd-8dd5-4d51-bfb2-1903fe6f1fcd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_3a5ef13d-51b4-4868-a3b4-ee76783c0e22" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ec508ae0-ce27-42b8-8195-999e6c684a01" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_3a5ef13d-51b4-4868-a3b4-ee76783c0e22" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#IncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/IncomeTaxesDetails" xlink:type="extended" id="i0f10da3a475240cc8108894866fc7cc1_IncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_526cc2e0-1467-4d8a-8dc6-3f3507c1d91e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwardsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_f2fb6818-6749-4698-ae19-23b7c9c1aab4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_526cc2e0-1467-4d8a-8dc6-3f3507c1d91e" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_f2fb6818-6749-4698-ae19-23b7c9c1aab4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_5c45cacc-1367-428c-9cb8-e8d4f17878e7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_526cc2e0-1467-4d8a-8dc6-3f3507c1d91e" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_5c45cacc-1367-428c-9cb8-e8d4f17878e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_b191d415-843a-4316-a307-a4816710bd96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwardsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_526cc2e0-1467-4d8a-8dc6-3f3507c1d91e" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_b191d415-843a-4316-a307-a4816710bd96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_fedf995b-9f2b-484b-a189-052bddb51619" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_b191d415-843a-4316-a307-a4816710bd96" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_fedf995b-9f2b-484b-a189-052bddb51619" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_fedf995b-9f2b-484b-a189-052bddb51619_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_fedf995b-9f2b-484b-a189-052bddb51619" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_fedf995b-9f2b-484b-a189-052bddb51619_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_036ff981-1321-4f6c-901a-8ab2c5672478" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_fedf995b-9f2b-484b-a189-052bddb51619" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_036ff981-1321-4f6c-901a-8ab2c5672478" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/ScheduleofIncomeTaxProvisionDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#ScheduleofIncomeTaxProvisionDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/ScheduleofIncomeTaxProvisionDetails" xlink:type="extended" id="ida5e6e4bd2d74da9a826549c32fb9f9e_ScheduleofIncomeTaxProvisionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_9110fcf0-d338-4448-af7a-71a483675407" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwardsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_cb0c0cf2-cb78-4016-8d88-3c625ee3fc48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_9110fcf0-d338-4448-af7a-71a483675407" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_cb0c0cf2-cb78-4016-8d88-3c625ee3fc48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_96ebc4fc-3c2d-41a0-9c55-6b8b16154453" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_9110fcf0-d338-4448-af7a-71a483675407" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_96ebc4fc-3c2d-41a0-9c55-6b8b16154453" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_87915d90-ebee-4b0e-985a-454be6858cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwardsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_9110fcf0-d338-4448-af7a-71a483675407" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_87915d90-ebee-4b0e-985a-454be6858cf2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_cf7033ef-55fe-4d89-a5e7-7c538d573d05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_87915d90-ebee-4b0e-985a-454be6858cf2" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_cf7033ef-55fe-4d89-a5e7-7c538d573d05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_cf7033ef-55fe-4d89-a5e7-7c538d573d05_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_cf7033ef-55fe-4d89-a5e7-7c538d573d05" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_cf7033ef-55fe-4d89-a5e7-7c538d573d05_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_a3d3ec6d-6777-4b71-9cdc-21d4eba7aa95" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_cf7033ef-55fe-4d89-a5e7-7c538d573d05" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_a3d3ec6d-6777-4b71-9cdc-21d4eba7aa95" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/CommonStockDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#CommonStockDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/CommonStockDetails" xlink:type="extended" id="i9d27506eecc5440fb3cfbee0663a796a_CommonStockDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_65289073-5a8f-4e73-b8dd-1a335ee605fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_65289073-5a8f-4e73-b8dd-1a335ee605fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_40ade75d-472a-4c8f-9702-46a1a56a66ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_40ade75d-472a-4c8f-9702-46a1a56a66ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_ceb4bf53-60b5-40de-9a6b-eeefc7cc9899" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_ceb4bf53-60b5-40de-9a6b-eeefc7cc9899" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_4592cc99-c228-44df-84ed-6e76b75efeca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_4592cc99-c228-44df-84ed-6e76b75efeca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_91ab195c-b99a-45b6-957a-c01bc2e1e351" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_91ab195c-b99a-45b6-957a-c01bc2e1e351" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_aa9f9b7e-08fb-4382-ae8c-26591f25c376" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_aa9f9b7e-08fb-4382-ae8c-26591f25c376" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_e1c866ef-a4c9-486c-9f01-5dc3a7a9d2c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_e1c866ef-a4c9-486c-9f01-5dc3a7a9d2c6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_175599ca-89bb-4f19-848a-7016d5e33f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_498c19f4-99a2-4b2e-94b0-cfb5364bbbf4" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_175599ca-89bb-4f19-848a-7016d5e33f4f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_a23df10c-2f42-43f6-af48-31879ec8fbac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_175599ca-89bb-4f19-848a-7016d5e33f4f" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_a23df10c-2f42-43f6-af48-31879ec8fbac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_a23df10c-2f42-43f6-af48-31879ec8fbac_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_a23df10c-2f42-43f6-af48-31879ec8fbac" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_a23df10c-2f42-43f6-af48-31879ec8fbac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_e1696e8d-de12-4315-a17e-2f99669bbb65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_a23df10c-2f42-43f6-af48-31879ec8fbac" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_e1696e8d-de12-4315-a17e-2f99669bbb65" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RetirementPlansNarrativeDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RetirementPlansNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RetirementPlansNarrativeDetails" xlink:type="extended" id="iafb386a1cf1e4f219e40ba925097390b_RetirementPlansNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e877987e-12fb-482f-819e-aee5ad98df52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_DefinedBenefitPlanNumberOfPlans_80e0bbe4-81e6-4eb6-8b2e-196873840bfb" xlink:href="eme-20230630.xsd#eme_DefinedBenefitPlanNumberOfPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e877987e-12fb-482f-819e-aee5ad98df52" xlink:to="loc_eme_DefinedBenefitPlanNumberOfPlans_80e0bbe4-81e6-4eb6-8b2e-196873840bfb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_eea9e1e3-93c7-4aa4-a0ab-714a086609bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e877987e-12fb-482f-819e-aee5ad98df52" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_eea9e1e3-93c7-4aa4-a0ab-714a086609bb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_46d558f9-9cad-49a1-b2ab-c719db355eb6" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_eea9e1e3-93c7-4aa4-a0ab-714a086609bb" xlink:to="loc_dei_LegalEntityAxis_46d558f9-9cad-49a1-b2ab-c719db355eb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_46d558f9-9cad-49a1-b2ab-c719db355eb6_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_46d558f9-9cad-49a1-b2ab-c719db355eb6" xlink:to="loc_dei_EntityDomain_46d558f9-9cad-49a1-b2ab-c719db355eb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b8521344-a913-49f8-b407-155593b33456" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_46d558f9-9cad-49a1-b2ab-c719db355eb6" xlink:to="loc_dei_EntityDomain_b8521344-a913-49f8-b407-155593b33456" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomSubsidiaryMember_1bdac27d-b24e-4945-9dc9-bd7594264c01" xlink:href="eme-20230630.xsd#eme_UnitedKingdomSubsidiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b8521344-a913-49f8-b407-155593b33456" xlink:to="loc_eme_UnitedKingdomSubsidiaryMember_1bdac27d-b24e-4945-9dc9-bd7594264c01" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesSubsidiariesMember_b9e95751-7983-40d9-8d6c-67bce5009c62" xlink:href="eme-20230630.xsd#eme_UnitedStatesSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b8521344-a913-49f8-b407-155593b33456" xlink:to="loc_eme_UnitedStatesSubsidiariesMember_b9e95751-7983-40d9-8d6c-67bce5009c62" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/RetirementPlansComponentsOfNetPeriodicPensionBenefitCostIncomeDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#RetirementPlansComponentsOfNetPeriodicPensionBenefitCostIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/RetirementPlansComponentsOfNetPeriodicPensionBenefitCostIncomeDetails" xlink:type="extended" id="ia147409d4ce042428d14ae05f78a20e9_RetirementPlansComponentsOfNetPeriodicPensionBenefitCostIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_d83d39c1-786e-47a1-8272-58aa61dbfd8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_d83d39c1-786e-47a1-8272-58aa61dbfd8d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_20aafa91-4423-4f50-be35-90d6ad709a10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_20aafa91-4423-4f50-be35-90d6ad709a10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_b9d81340-3e2d-4312-ae6b-fe1ebb80cca2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_b9d81340-3e2d-4312-ae6b-fe1ebb80cca2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_195744b1-f3ba-445c-b594-e856e8df39cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_195744b1-f3ba-445c-b594-e856e8df39cf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2e8b29a-a5f4-49d9-967f-6f6a82e60297" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_33e0f7a6-e005-4981-90f6-3a228b6bf3cd" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2e8b29a-a5f4-49d9-967f-6f6a82e60297" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d4b70fc5-10d5-47f2-9fd0-409383b49c17" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2e8b29a-a5f4-49d9-967f-6f6a82e60297" xlink:to="loc_dei_LegalEntityAxis_d4b70fc5-10d5-47f2-9fd0-409383b49c17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d4b70fc5-10d5-47f2-9fd0-409383b49c17_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d4b70fc5-10d5-47f2-9fd0-409383b49c17" xlink:to="loc_dei_EntityDomain_d4b70fc5-10d5-47f2-9fd0-409383b49c17_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_f86910b5-400c-458a-b76b-53ccc50c7a09" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d4b70fc5-10d5-47f2-9fd0-409383b49c17" xlink:to="loc_dei_EntityDomain_f86910b5-400c-458a-b76b-53ccc50c7a09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomSubsidiaryMember_773e334e-809b-4e09-a174-2baeefdba373" xlink:href="eme-20230630.xsd#eme_UnitedKingdomSubsidiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_f86910b5-400c-458a-b76b-53ccc50c7a09" xlink:to="loc_eme_UnitedKingdomSubsidiaryMember_773e334e-809b-4e09-a174-2baeefdba373" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#CommitmentsandContingenciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="extended" id="i1b2b1111aec143199985f49cd3976675_CommitmentsandContingenciesNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_AggregateEstimatedExposureContractsWithSuretyBonds_26284521-4ee8-4035-bb48-a4357d6a3f2f" xlink:href="eme-20230630.xsd#eme_AggregateEstimatedExposureContractsWithSuretyBonds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_eme_AggregateEstimatedExposureContractsWithSuretyBonds_26284521-4ee8-4035-bb48-a4357d6a3f2f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_AggregateEstimatedExposureRPO1_71bbe6b3-f6a8-458d-9a0e-d9780b3ebcbe" xlink:href="eme-20230630.xsd#eme_AggregateEstimatedExposureRPO1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_eme_AggregateEstimatedExposureRPO1_71bbe6b3-f6a8-458d-9a0e-d9780b3ebcbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_SuretyBondsForInsurance_dc923f29-c414-4da0-9fd0-8a847fe57f24" xlink:href="eme-20230630.xsd#eme_SuretyBondsForInsurance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_eme_SuretyBondsForInsurance_dc923f29-c414-4da0-9fd0-8a847fe57f24" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInsuranceCurrent_2c30dd8c-5b9d-4e32-b3b7-5028edfaa171" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedInsuranceCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_us-gaap_AccruedInsuranceCurrent_2c30dd8c-5b9d-4e32-b3b7-5028edfaa171" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInsuranceNoncurrent_61899cb5-7452-417c-9586-3d062309fde0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedInsuranceNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_us-gaap_AccruedInsuranceNoncurrent_61899cb5-7452-417c-9586-3d062309fde0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_EstimatedInsuranceRecoveriesCurrent_db78a923-1587-42b1-9c37-b40d3a0876f7" xlink:href="eme-20230630.xsd#eme_EstimatedInsuranceRecoveriesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_eme_EstimatedInsuranceRecoveriesCurrent_db78a923-1587-42b1-9c37-b40d3a0876f7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimatedInsuranceRecoveries_749af81c-256b-4e32-85f1-1e9e8c874cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EstimatedInsuranceRecoveries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_us-gaap_EstimatedInsuranceRecoveries_749af81c-256b-4e32-85f1-1e9e8c874cf0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsTable_4270bbaf-1e3c-4536-8dc3-dd064ae1fd9d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_e44930c1-ef05-490e-8710-28a8253abd83" xlink:to="loc_us-gaap_OtherCommitmentsTable_4270bbaf-1e3c-4536-8dc3-dd064ae1fd9d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_27ca3618-3ad0-4c3f-9d88-b9b6759ba585" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_4270bbaf-1e3c-4536-8dc3-dd064ae1fd9d" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_27ca3618-3ad0-4c3f-9d88-b9b6759ba585" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_27ca3618-3ad0-4c3f-9d88-b9b6759ba585_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_27ca3618-3ad0-4c3f-9d88-b9b6759ba585" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_27ca3618-3ad0-4c3f-9d88-b9b6759ba585_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_27ca3618-3ad0-4c3f-9d88-b9b6759ba585" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_206b866f-4425-47d4-9979-71742f9ced72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_206b866f-4425-47d4-9979-71742f9ced72" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_0e4da386-5f09-4ba9-814a-e196d0f0c0f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_0e4da386-5f09-4ba9-814a-e196d0f0c0f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_247b8e11-0b62-4067-9164-b5e81f23aafd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_247b8e11-0b62-4067-9164-b5e81f23aafd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMember_69994fff-1fa9-450e-98e8-501848e37f80" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_2f67f837-7670-4c26-b2be-4d0a48313b5f" xlink:to="loc_us-gaap_OtherAssetsMember_69994fff-1fa9-450e-98e8-501848e37f80" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_b495a448-bfa9-42f8-a2c3-c27feace61d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_4270bbaf-1e3c-4536-8dc3-dd064ae1fd9d" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_b495a448-bfa9-42f8-a2c3-c27feace61d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_b495a448-bfa9-42f8-a2c3-c27feace61d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_b495a448-bfa9-42f8-a2c3-c27feace61d4" xlink:to="loc_us-gaap_LossContingencyNatureDomain_b495a448-bfa9-42f8-a2c3-c27feace61d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_54a8390a-8de8-4fa7-8287-4578cc15cbc2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_b495a448-bfa9-42f8-a2c3-c27feace61d4" xlink:to="loc_us-gaap_LossContingencyNatureDomain_54a8390a-8de8-4fa7-8287-4578cc15cbc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SuretyBondMember_18c70730-cc9b-49f4-a0bd-7e33c31c4e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SuretyBondMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_54a8390a-8de8-4fa7-8287-4578cc15cbc2" xlink:to="loc_us-gaap_SuretyBondMember_18c70730-cc9b-49f4-a0bd-7e33c31c4e0f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.emcorgroup.com/role/SegmentInformationDetails" xlink:type="simple" xlink:href="eme-20230630.xsd#SegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.emcorgroup.com/role/SegmentInformationDetails" xlink:type="extended" id="i108ed9b06db64c54856e8fa8bcb496ea_SegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_NumberOfOperatingSubsidiaries_7a83d16e-4222-4114-af32-32002240091f" xlink:href="eme-20230630.xsd#eme_NumberOfOperatingSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_eme_NumberOfOperatingSubsidiaries_7a83d16e-4222-4114-af32-32002240091f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_d9df01a8-a61a-4b3f-a0aa-593823f04fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_d9df01a8-a61a-4b3f-a0aa-593823f04fb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_db677ae3-1660-4aff-8103-f983bcbb5a35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_Revenues_db677ae3-1660-4aff-8103-f983bcbb5a35" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4b18e670-81fa-46a2-a5e7-d4501e3b48a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_Assets_4b18e670-81fa-46a2-a5e7-d4501e3b48a1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_DefinedBenefitPlanNetPeriodicBenefitCostExcludingServiceCost_f81e265e-d7c3-4c45-9f40-f654d6c147db" xlink:href="eme-20230630.xsd#eme_DefinedBenefitPlanNetPeriodicBenefitCostExcludingServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_eme_DefinedBenefitPlanNetPeriodicBenefitCostExcludingServiceCost_f81e265e-d7c3-4c45-9f40-f654d6c147db" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRevenueExpenseNet_b4046032-218d-4267-91c8-642a2b7d6e3d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRevenueExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_InterestRevenueExpenseNet_b4046032-218d-4267-91c8-642a2b7d6e3d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7a10dccf-f1ad-41ec-a40d-20553ea0bbcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_OperatingIncomeLoss_7a10dccf-f1ad-41ec-a40d-20553ea0bbcb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fcd1b19f-1a89-4f04-b694-783b237be175" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fcd1b19f-1a89-4f04-b694-783b237be175" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7aeed443-f5fc-4126-a906-e898b0684ba0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4ce1ba33-bc12-4af1-935a-832e4de2a8e4" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7aeed443-f5fc-4126-a906-e898b0684ba0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_c504de73-5500-4320-8e2e-5abdaee1d69e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7aeed443-f5fc-4126-a906-e898b0684ba0" xlink:to="loc_srt_ConsolidationItemsAxis_c504de73-5500-4320-8e2e-5abdaee1d69e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_c504de73-5500-4320-8e2e-5abdaee1d69e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_c504de73-5500-4320-8e2e-5abdaee1d69e" xlink:to="loc_srt_ConsolidationItemsDomain_c504de73-5500-4320-8e2e-5abdaee1d69e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_5db6d6f8-e30d-4c4d-883d-0218e6a915c0" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_c504de73-5500-4320-8e2e-5abdaee1d69e" xlink:to="loc_srt_ConsolidationItemsDomain_5db6d6f8-e30d-4c4d-883d-0218e6a915c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_b078465e-a06a-4b97-9489-1b8d5a2c1a29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_5db6d6f8-e30d-4c4d-883d-0218e6a915c0" xlink:to="loc_us-gaap_OperatingSegmentsMember_b078465e-a06a-4b97-9489-1b8d5a2c1a29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_1e799e2c-9ee9-4ac4-abf1-7a4ae6648952" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_5db6d6f8-e30d-4c4d-883d-0218e6a915c0" xlink:to="loc_us-gaap_CorporateNonSegmentMember_1e799e2c-9ee9-4ac4-abf1-7a4ae6648952" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_0b61f131-7b23-46e5-bb5c-c19a46994de8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_5db6d6f8-e30d-4c4d-883d-0218e6a915c0" xlink:to="loc_us-gaap_IntersegmentEliminationMember_0b61f131-7b23-46e5-bb5c-c19a46994de8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_1aa2dc61-318a-47ae-86e6-02f05cf7d871" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7aeed443-f5fc-4126-a906-e898b0684ba0" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_1aa2dc61-318a-47ae-86e6-02f05cf7d871" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_1aa2dc61-318a-47ae-86e6-02f05cf7d871_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1aa2dc61-318a-47ae-86e6-02f05cf7d871" xlink:to="loc_us-gaap_SegmentDomain_1aa2dc61-318a-47ae-86e6-02f05cf7d871_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1aa2dc61-318a-47ae-86e6-02f05cf7d871" xlink:to="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_6380ae32-5e35-415b-abb5-af6fd24204dc" xlink:href="eme-20230630.xsd#eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:to="loc_eme_UnitedStatesElectricalConstructionAndFacilitiesServicesMember_6380ae32-5e35-415b-abb5-af6fd24204dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_4b7ef00f-7c27-465b-9597-1c464ee4cf43" xlink:href="eme-20230630.xsd#eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:to="loc_eme_UnitedStatesMechanicalConstructionAndFacilitiesServicesMember_4b7ef00f-7c27-465b-9597-1c464ee4cf43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesBuildingServicesMember_ef723b68-f822-4eea-8c8c-0f8bc6cb326f" xlink:href="eme-20230630.xsd#eme_UnitedStatesBuildingServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:to="loc_eme_UnitedStatesBuildingServicesMember_ef723b68-f822-4eea-8c8c-0f8bc6cb326f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedStatesIndustrialServicesMember_f4298faa-e2d8-4bbf-8d7b-ed6ddeb1b6fe" xlink:href="eme-20230630.xsd#eme_UnitedStatesIndustrialServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:to="loc_eme_UnitedStatesIndustrialServicesMember_f4298faa-e2d8-4bbf-8d7b-ed6ddeb1b6fe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_eme_UnitedKingdomBuildingServicesMemberMember_818d67da-6180-401a-a8a2-c76d82f4d488" xlink:href="eme-20230630.xsd#eme_UnitedKingdomBuildingServicesMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ca83c7a-dba1-4762-8c4d-c507004c61d6" xlink:to="loc_eme_UnitedKingdomBuildingServicesMemberMember_818d67da-6180-401a-a8a2-c76d82f4d488" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_d391583e-2a09-429b-a092-2b104b637317" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7aeed443-f5fc-4126-a906-e898b0684ba0" xlink:to="loc_srt_StatementGeographicalAxis_d391583e-2a09-429b-a092-2b104b637317" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_d391583e-2a09-429b-a092-2b104b637317_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_d391583e-2a09-429b-a092-2b104b637317" xlink:to="loc_srt_SegmentGeographicalDomain_d391583e-2a09-429b-a092-2b104b637317_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_d03ff11e-e399-4433-9264-aea4a5858e00" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_d391583e-2a09-429b-a092-2b104b637317" xlink:to="loc_srt_SegmentGeographicalDomain_d03ff11e-e399-4433-9264-aea4a5858e00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_dca10715-31c0-4f1c-8e60-9089adac2cd0" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_d03ff11e-e399-4433-9264-aea4a5858e00" xlink:to="loc_country_US_dca10715-31c0-4f1c-8e60-9089adac2cd0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_a66e5f46-3815-402b-a782-28e79dec689b" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_d03ff11e-e399-4433-9264-aea4a5858e00" xlink:to="loc_country_GB_a66e5f46-3815-402b-a782-28e79dec689b" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
