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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:01a00fe2-020b-7613-a94f-fdddfa664c15,g:f80f1636-f7c0-4dd1-97ef-e2a9e36605d5-->
<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.mastec.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="mtz-20260930.xsd#ConsolidatedBalanceSheetsParenthetical"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_01a00fe2-03cb-7e02-a3c1-6532cad38a09" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_StatementTable_01a00fe2-03cb-7e02-a3c1-6532cad38a09" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_01a00fe2-03cb-7412-95bc-72f8f33e5fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_01a00fe2-03cb-7e02-a3c1-6532cad38a09" xlink:to="loc_us-gaap_AwardTypeAxis_01a00fe2-03cb-7412-95bc-72f8f33e5fe4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-03cb-7412-95bc-72f8f33e5fe4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-03cb-7412-95bc-72f8f33e5fe4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-03cb-7412-95bc-72f8f33e5fe4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-03cb-7527-b1e2-333073dfbbb1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-03cb-7412-95bc-72f8f33e5fe4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-03cb-7527-b1e2-333073dfbbb1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_01a00fe2-03cb-7b13-b77c-4e1293c3237e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-03cb-7527-b1e2-333073dfbbb1" xlink:to="loc_us-gaap_RestrictedStockMember_01a00fe2-03cb-7b13-b77c-4e1293c3237e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-75ba-84bf-801be1ce7d15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_01a00fe2-03cb-7e02-a3c1-6532cad38a09" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-75ba-84bf-801be1ce7d15" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-75ba-84bf-801be1ce7d15_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-75ba-84bf-801be1ce7d15" xlink:to="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-75ba-84bf-801be1ce7d15_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-74d4-bbcb-48709b2b98bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-75ba-84bf-801be1ce7d15" xlink:to="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-74d4-bbcb-48709b2b98bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_01a00fe2-03cb-7dde-93be-51fb17cab723" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-74d4-bbcb-48709b2b98bd" xlink:to="loc_us-gaap_CommonStockMember_01a00fe2-03cb-7dde-93be-51fb17cab723" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_01a00fe2-03cb-70d5-95f6-6d6f135d22aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_01a00fe2-03cb-70d5-95f6-6d6f135d22aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_01a00fe2-03cb-7ef5-bd6e-a07da96b9d21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_01a00fe2-03cb-7ef5-bd6e-a07da96b9d21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_01a00fe2-03cb-7c2c-a0b0-74934785e170" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_PreferredStockSharesIssued_01a00fe2-03cb-7c2c-a0b0-74934785e170" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_01a00fe2-03cb-77bf-8419-5946fc8d1057" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_01a00fe2-03cb-77bf-8419-5946fc8d1057" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_01a00fe2-03cb-7057-91f8-7aeb830b5b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_01a00fe2-03cb-7057-91f8-7aeb830b5b1d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_01a00fe2-03cb-7db7-9e57-43d948065fda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_01a00fe2-03cb-7db7-9e57-43d948065fda" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_01a00fe2-03cb-7a03-932d-6b67dd04864e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_CommonStockSharesIssued_01a00fe2-03cb-7a03-932d-6b67dd04864e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_01a00fe2-03cb-7577-96fa-7179b1025f37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_01a00fe2-03cb-7577-96fa-7179b1025f37" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_01a00fe2-03cb-7932-be9f-49fef352f2d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7785-a9c1-9e72457cf2ef" xlink:to="loc_us-gaap_TreasuryStockCommonShares_01a00fe2-03cb-7932-be9f-49fef352f2d7" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/ConsolidatedStatementsofEquity" xlink:type="simple" xlink:href="mtz-20260930.xsd#ConsolidatedStatementsofEquity"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/ConsolidatedStatementsofEquity" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7f32-a5b6-f9cec7fdbffa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_01a00fe2-03cb-71e3-8808-bea1573b4252" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7f32-a5b6-f9cec7fdbffa" xlink:to="loc_us-gaap_StatementTable_01a00fe2-03cb-71e3-8808-bea1573b4252" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-7aec-8cfc-41845c5c7894" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_01a00fe2-03cb-71e3-8808-bea1573b4252" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-7aec-8cfc-41845c5c7894" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-7aec-8cfc-41845c5c7894_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-7aec-8cfc-41845c5c7894" xlink:to="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-7aec-8cfc-41845c5c7894_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-747c-b752-a874dc223ff8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_01a00fe2-03cb-7aec-8cfc-41845c5c7894" xlink:to="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-747c-b752-a874dc223ff8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-747c-b752-a874dc223ff8" xlink:to="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_01a00fe2-03cb-74fb-bf55-5e9d04024457" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:to="loc_us-gaap_CommonStockMember_01a00fe2-03cb-74fb-bf55-5e9d04024457" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_01a00fe2-03cb-74b9-b1ce-d5cf2d535f3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:to="loc_us-gaap_TreasuryStockCommonMember_01a00fe2-03cb-74b9-b1ce-d5cf2d535f3d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_01a00fe2-03cb-7d61-95ed-ce1010fb7806" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_01a00fe2-03cb-7d61-95ed-ce1010fb7806" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_01a00fe2-03cb-7b34-abfe-ffac83d549bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:to="loc_us-gaap_RetainedEarningsMember_01a00fe2-03cb-7b34-abfe-ffac83d549bf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_01a00fe2-03cb-73e3-b948-7fed25c88d09" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_01a00fe2-03cb-7151-ad29-0edbb5630e7d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_01a00fe2-03cb-73e3-b948-7fed25c88d09" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_01a00fe2-03cb-70fc-a72d-e54e4c9025a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_01a00fe2-03cb-747c-b752-a874dc223ff8" xlink:to="loc_us-gaap_NoncontrollingInterestMember_01a00fe2-03cb-70fc-a72d-e54e4c9025a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7f32-a5b6-f9cec7fdbffa" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_01a00fe2-03cb-757f-964e-3ae1c96ec5a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_CommonStockSharesIssued_01a00fe2-03cb-757f-964e-3ae1c96ec5a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_01a00fe2-03cb-7358-8ab0-1523f63d88dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_01a00fe2-03cb-7358-8ab0-1523f63d88dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_01a00fe2-03cb-79ab-9abe-1e10f58cb38d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_TreasuryStockCommonShares_01a00fe2-03cb-79ab-9abe-1e10f58cb38d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_01a00fe2-03cb-729b-ad70-f8cd90488749" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_ProfitLoss_01a00fe2-03cb-729b-ad70-f8cd90488749" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_01a00fe2-03cb-7ef3-bdb2-600e829bfac6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_01a00fe2-03cb-7ef3-bdb2-600e829bfac6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_01a00fe2-03cb-7bc8-9c79-33e3d8fc705c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_01a00fe2-03cb-7bc8-9c79-33e3d8fc705c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_01a1788b-9b9a-731a-99a1-844df16b88d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_01a1788b-9b9a-731a-99a1-844df16b88d4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_01a1788b-d772-759d-b61f-9a6468323116" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_01a1788b-d772-759d-b61f-9a6468323116" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_01a00fe2-03cb-7524-b75b-5ac6f38f222f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_01a00fe2-03cb-7524-b75b-5ac6f38f222f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_01a00fe2-03cb-70ee-b53b-e22a292c5f0c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_01a00fe2-03cb-70ee-b53b-e22a292c5f0c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_01a00fe2-03cb-7971-98a7-c86fba6f1a20" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_01a00fe2-03cb-7971-98a7-c86fba6f1a20" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_01a00fe2-03cb-750d-9324-96a7f6bd5ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_01a00fe2-03cb-750d-9324-96a7f6bd5ecc" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a00fe2-03cb-7d66-aa36-08409c4f9b15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a00fe2-03cb-7d66-aa36-08409c4f9b15" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_01a00fe2-03cb-7301-833f-2873a5c90383" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_01a00fe2-03cb-7301-833f-2873a5c90383" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-03cb-724f-82b3-a7d6d0850725" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-03cb-724f-82b3-a7d6d0850725" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_01a00fe2-03cb-71f4-8965-f6c57e05d8cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_01a00fe2-03cb-71f4-8965-f6c57e05d8cf" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_01a00fe2-03cb-7e32-ae7c-41a307209368" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_01a00fe2-03cb-7e32-ae7c-41a307209368" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_01a00fe2-03cb-7ee3-ae91-cb2d706eaaf1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_01a00fe2-03cb-723e-86ae-a41ad1ad54ce" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_01a00fe2-03cb-7ee3-ae91-cb2d706eaaf1" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_01a00fe2-03cb-73f3-b0eb-23a45a35a740" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_01a00fe2-03cb-79c3-aac0-47fd7e4ca324" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_01a00fe2-03cb-7d43-9e08-c2e5db88b2b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonShares"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/ConsolidatedStatementsofCashFlowsParenthetical" xlink:type="simple" xlink:href="mtz-20260930.xsd#ConsolidatedStatementsofCashFlowsParenthetical"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/ConsolidatedStatementsofCashFlowsParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7b1f-98ca-5ff00a06835c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_01a00fe2-03cb-7c03-b5aa-c433de0d5a4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7b1f-98ca-5ff00a06835c" xlink:to="loc_us-gaap_StatementTable_01a00fe2-03cb-7c03-b5aa-c433de0d5a4f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cb-7a06-a7bd-e1bc01038572" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_01a00fe2-03cb-7c03-b5aa-c433de0d5a4f" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cb-7a06-a7bd-e1bc01038572" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7a06-a7bd-e1bc01038572_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cb-7a06-a7bd-e1bc01038572" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7a06-a7bd-e1bc01038572_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7c7d-b786-605c115e3a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cb-7a06-a7bd-e1bc01038572" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7c7d-b786-605c115e3a5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A5.850SeniorNotesMember_01a0436f-096d-72c8-804c-08b55243f91a" xlink:href="mtz-20260930.xsd#mtz_A5.850SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7c7d-b786-605c115e3a5a" xlink:to="loc_mtz_A5.850SeniorNotesMember_01a0436f-096d-72c8-804c-08b55243f91a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a00fe2-03cb-77e7-bf72-76a78a0b693e" xlink:href="mtz-20260930.xsd#mtz_SixPointSixTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cb-7c7d-b786-605c115e3a5a" xlink:to="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a00fe2-03cb-77e7-bf72-76a78a0b693e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cb-7edf-81db-9e8930ba785d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_01a00fe2-03cb-7c03-b5aa-c433de0d5a4f" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cb-7edf-81db-9e8930ba785d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cb-7edf-81db-9e8930ba785d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cb-7edf-81db-9e8930ba785d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cb-7edf-81db-9e8930ba785d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cb-7825-96c0-e132069ac8e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cb-7edf-81db-9e8930ba785d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cb-7825-96c0-e132069ac8e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_01a00fe2-03cb-7364-b5d5-5e86cc5a0be9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cb-7825-96c0-e132069ac8e8" xlink:to="loc_us-gaap_SeniorNotesMember_01a00fe2-03cb-7364-b5d5-5e86cc5a0be9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a00fe2-03cb-7bec-896a-2083e4388ba7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_01a00fe2-03cb-7b1f-98ca-5ff00a06835c" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a00fe2-03cb-7bec-896a-2083e4388ba7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_MasterServiceAndOtherServiceAgreementsMember_01a00fe2-03cb-7a9c-b2e0-d2b2f7641339" xlink:href="mtz-20260930.xsd#mtz_MasterServiceAndOtherServiceAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:to="loc_mtz_MasterServiceAndOtherServiceAgreementsMember_01a00fe2-03cb-7a9c-b2e0-d2b2f7641339" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-77ff-ba75-2d60c2622cf2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-77ff-ba75-2d60c2622cf2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-03cb-7b33-967c-9b9d31650509" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-03cb-7b33-967c-9b9d31650509" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_01a00fe2-03cb-7d24-bba1-6b4e770483d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_01a00fe2-03cb-7d24-bba1-6b4e770483d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-720b-941c-b51005f67f92_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-720b-941c-b51005f67f92_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferredAtPointInTimeMember_01a00fe2-03cb-759a-a866-bc3f48d4e19f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransferredAtPointInTimeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:to="loc_us-gaap_TransferredAtPointInTimeMember_01a00fe2-03cb-759a-a866-bc3f48d4e19f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cb-7486-adfe-fdfd32392737_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:to="loc_srt_RangeMember_01a00fe2-03cb-7486-adfe-fdfd32392737_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:to="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-03cb-7154-ad8d-813eee634d12" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:to="loc_srt_MaximumMember_01a00fe2-03cb-7154-ad8d-813eee634d12" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_01a00fe2-03cb-7cec-a2ab-d775c9e712f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_01a00fe2-03cb-7cec-a2ab-d775c9e712f8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-03cb-74ca-a6b0-a0da29be58b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-03cb-74ca-a6b0-a0da29be58b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage_01a00fe2-03cb-706a-a6c8-19e5cb4a0ba4" xlink:href="mtz-20260930.xsd#mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage_01a00fe2-03cb-706a-a6c8-19e5cb4a0ba4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_01a00fe2-03cb-7f52-87eb-0f049a0cc235" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_01a00fe2-03cb-7f52-87eb-0f049a0cc235" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_01a00fe2-03cb-74f6-8bbf-1c7cb1630f44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_01a00fe2-03cb-74f6-8bbf-1c7cb1630f44" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_01a00fe2-03cb-796c-b9f3-d0df2c3594f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_01a00fe2-03cb-796c-b9f3-d0df2c3594f2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear_01a00fe2-03cb-7c95-80f6-164705f9b6f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear_01a00fe2-03cb-7c95-80f6-164705f9b6f3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval_01a00fe2-03cb-77cc-b604-5cb188110586" xlink:href="mtz-20260930.xsd#mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval_01a00fe2-03cb-77cc-b604-5cb188110586" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramObligation_01a00fe2-03cb-7282-a5b4-01f79fa47f7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplierFinanceProgramObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_SupplierFinanceProgramObligation_01a00fe2-03cb-7282-a5b4-01f79fa47f7a" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails_1" xlink:type="simple" xlink:href="mtz-20260930.xsd#BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails_1"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/BusinessBasisofPresentationandSignificantAccountingPoliciesRevenueRecognitionDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-03cb-7c4b-a4fe-b797d04fb99c" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_MasterServiceAndOtherServiceAgreementsMember_01a00fe2-03cb-7a9c-b2e0-d2b2f7641339" xlink:href="mtz-20260930.xsd#mtz_MasterServiceAndOtherServiceAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-03cb-70a9-9dde-66a2ad2bac92" xlink:to="loc_mtz_MasterServiceAndOtherServiceAgreementsMember_01a00fe2-03cb-7a9c-b2e0-d2b2f7641339" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-77ff-ba75-2d60c2622cf2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-77ff-ba75-2d60c2622cf2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-03cb-77ff-ba75-2d60c2622cf2" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-03cb-7b33-967c-9b9d31650509" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-03cb-7fb2-8d56-82e589221761" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-03cb-7b33-967c-9b9d31650509" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-03cb-70a4-9ee0-34cc03c42c2d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_01a00fe2-03cb-7d24-bba1-6b4e770483d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-03cb-732a-b2a5-161e71c219e6" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_01a00fe2-03cb-7d24-bba1-6b4e770483d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-720b-941c-b51005f67f92_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-720b-941c-b51005f67f92_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_01a00fe2-03cb-720b-941c-b51005f67f92" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferredAtPointInTimeMember_01a00fe2-03cb-759a-a866-bc3f48d4e19f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransferredAtPointInTimeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_01a00fe2-03cb-7a1c-9567-ea82abbf2bf3" xlink:to="loc_us-gaap_TransferredAtPointInTimeMember_01a00fe2-03cb-759a-a866-bc3f48d4e19f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_01a00fe2-03cb-71ee-8b5d-368f32e5f156" xlink:to="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cb-7486-adfe-fdfd32392737_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:to="loc_srt_RangeMember_01a00fe2-03cb-7486-adfe-fdfd32392737_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-03cb-7486-adfe-fdfd32392737" xlink:to="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-03cb-7154-ad8d-813eee634d12" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cb-7d7a-bf94-92be4a7fd6df" xlink:to="loc_srt_MaximumMember_01a00fe2-03cb-7154-ad8d-813eee634d12" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-03cb-74ca-a6b0-a0da29be58b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-03cb-74ca-a6b0-a0da29be58b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage_01a00fe2-03cb-706a-a6c8-19e5cb4a0ba4" xlink:href="mtz-20260930.xsd#mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_mtz_ChangesInContractEstimatesCostToCostMeasureOfProgressFinancialEffectPercentage_01a00fe2-03cb-706a-a6c8-19e5cb4a0ba4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_01a00fe2-03cb-7f52-87eb-0f049a0cc235" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_01a00fe2-03cb-7f52-87eb-0f049a0cc235" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_01a00fe2-03cb-74f6-8bbf-1c7cb1630f44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_01a00fe2-03cb-74f6-8bbf-1c7cb1630f44" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_01a00fe2-03cb-796c-b9f3-d0df2c3594f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_01a00fe2-03cb-796c-b9f3-d0df2c3594f2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear_01a00fe2-03cb-7c95-80f6-164705f9b6f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmountsExpectedToBeCollectedWithinOneYear_01a00fe2-03cb-7c95-80f6-164705f9b6f3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval_01a00fe2-03cb-77cc-b604-5cb188110586" xlink:href="mtz-20260930.xsd#mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_mtz_UnapprovedChangeOrdersAndOrClaimsExpectedTermForApproval_01a00fe2-03cb-77cc-b604-5cb188110586" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramObligation_01a00fe2-03cb-7282-a5b4-01f79fa47f7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplierFinanceProgramObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01a00fe2-03cb-7313-86a9-ff44232ba9c2" xlink:to="loc_us-gaap_SupplierFinanceProgramObligation_01a00fe2-03cb-7282-a5b4-01f79fa47f7a" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/EarningsPerShareNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#EarningsPerShareNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/EarningsPerShareNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_01a01fda-378e-7e45-a077-89f714050449" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_01a01fda-378e-7e45-a077-89f714050449" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a01fda-378e-7fc4-88c3-6934573ea497" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_01a01fda-378e-7e45-a077-89f714050449" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a01fda-378e-7fc4-88c3-6934573ea497" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a01fda-378e-7fc4-88c3-6934573ea497_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a01fda-378e-7fc4-88c3-6934573ea497" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a01fda-378e-7fc4-88c3-6934573ea497_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a01fda-378e-7853-9e65-9a856276d741" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a01fda-378e-7fc4-88c3-6934573ea497" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a01fda-378e-7853-9e65-9a856276d741" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsMember_01a01fda-378e-727b-8df0-dc917d8acbaf" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a01fda-378e-7853-9e65-9a856276d741" xlink:to="loc_mtz_A2026AcquisitionsMember_01a01fda-378e-727b-8df0-dc917d8acbaf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-03cb-7039-8e34-1f065f7c159f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-03cb-7039-8e34-1f065f7c159f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EffectOfRepurchasesOnWeightedAverageSharesOutstandingDecrease_01a00fe2-03cb-767e-834a-8557189b8dbe" xlink:href="mtz-20260930.xsd#mtz_EffectOfRepurchasesOnWeightedAverageSharesOutstandingDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:to="loc_mtz_EffectOfRepurchasesOnWeightedAverageSharesOutstandingDecrease_01a00fe2-03cb-767e-834a-8557189b8dbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a01fda-378e-7256-b4ab-2d50da652239" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a01fda-378e-7256-b4ab-2d50da652239" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_StockIssuedDuringPeriodSharesAcquisitionsPeriodIncreaseDecrease_01a0f2cb-68c1-7cea-a4b9-9451c18e9877" xlink:href="mtz-20260930.xsd#mtz_StockIssuedDuringPeriodSharesAcquisitionsPeriodIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_01a01fda-378e-7381-84da-eb1fbd957eb1" xlink:to="loc_mtz_StockIssuedDuringPeriodSharesAcquisitionsPeriodIncreaseDecrease_01a0f2cb-68c1-7cea-a4b9-9451c18e9877" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofGoodwillbySegmentDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofGoodwillbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofGoodwillbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_01a00fe2-03cb-7c5f-b7e6-a5884c0b3d40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_01a00fe2-03cb-7c5f-b7e6-a5884c0b3d40" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_01a00fe2-03cb-7c5f-b7e6-a5884c0b3d40" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-03cb-7ac1-a1d0-6c3197f9f0bd" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CommunicationsMember_01a00fe2-03cb-74f8-a9a5-3ee3fd88b619" xlink:href="mtz-20260930.xsd#mtz_CommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:to="loc_mtz_CommunicationsMember_01a00fe2-03cb-74f8-a9a5-3ee3fd88b619" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-03cb-74cb-9dd3-39521f431003" xlink:href="mtz-20260930.xsd#mtz_CleanEnergyAndInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:to="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-03cb-74cb-9dd3-39521f431003" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PowerDeliveryMember_01a00fe2-03cb-76de-9c0a-2c303a32eb37" xlink:href="mtz-20260930.xsd#mtz_PowerDeliveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:to="loc_mtz_PowerDeliveryMember_01a00fe2-03cb-76de-9c0a-2c303a32eb37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a00fe2-03cb-76af-8150-18ebe5d99b60" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-03cb-71a3-b604-a327077a5fe1" xlink:to="loc_mtz_PipelineInfrastructureMember_01a00fe2-03cb-76af-8150-18ebe5d99b60" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillGross_01a00fe2-03cb-7995-a776-2ac145d4e970" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:to="loc_us-gaap_GoodwillGross_01a00fe2-03cb-7995-a776-2ac145d4e970" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_01a00fe2-03cb-7b76-b559-9847a5bf1969" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_01a00fe2-03cb-7b76-b559-9847a5bf1969" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_01a00fe2-03cb-7dc1-88df-4b31e912e63d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:to="loc_us-gaap_Goodwill_01a00fe2-03cb-7dc1-88df-4b31e912e63d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_01a00fe2-03cb-70fe-84e1-896a6167b7b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_01a00fe2-03cb-7eaa-ba11-ac809dc2ac79" xlink:to="loc_us-gaap_GoodwillRollForward_01a00fe2-03cb-70fe-84e1-896a6167b7b4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_01a00fe2-03cb-7065-9a96-fd8fc34f3d2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_01a00fe2-03cb-7d41-9649-1062206d8597" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01a00fe2-03cb-70fe-84e1-896a6167b7b4" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_01a00fe2-03cb-7d41-9649-1062206d8597" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_01a00fe2-03cb-7400-9f8d-effc46cb5869" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01a00fe2-03cb-70fe-84e1-896a6167b7b4" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_01a00fe2-03cb-7400-9f8d-effc46cb5869" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_01a00fe2-03cb-7267-a12b-e1c104e79c65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01a00fe2-03cb-70fe-84e1-896a6167b7b4" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_01a00fe2-03cb-7267-a12b-e1c104e79c65" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_01a00fe2-03cb-79ae-b7d7-e19f3e801411" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofOtherIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetRollforwardofOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetsLineItems_01a00fe2-03cc-7543-8f1d-60e6f423ea01" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ScheduleOfIntangibleAssetsTable_01a00fe2-03cc-71f3-aedf-c007f768f0c6" xlink:href="mtz-20260930.xsd#mtz_ScheduleOfIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtz_IntangibleAssetsLineItems_01a00fe2-03cc-7543-8f1d-60e6f423ea01" xlink:to="loc_mtz_ScheduleOfIntangibleAssetsTable_01a00fe2-03cc-71f3-aedf-c007f768f0c6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassAxis_01a00fe2-03cc-77ce-9045-82f3409467d5" xlink:href="mtz-20260930.xsd#mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsTable_01a00fe2-03cc-71f3-aedf-c007f768f0c6" xlink:to="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassAxis_01a00fe2-03cc-77ce-9045-82f3409467d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-77ce-9045-82f3409467d5_default" xlink:href="mtz-20260930.xsd#mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassAxis_01a00fe2-03cc-77ce-9045-82f3409467d5" xlink:to="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-77ce-9045-82f3409467d5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:href="mtz-20260930.xsd#mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassAxis_01a00fe2-03cc-77ce-9045-82f3409467d5" xlink:to="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CustomerRelatedIntangibleAssetsAndBacklogMember_01a168fc-8097-78b0-a82b-7047677c19fa" xlink:href="mtz-20260930.xsd#mtz_CustomerRelatedIntangibleAssetsAndBacklogMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:to="loc_mtz_CustomerRelatedIntangibleAssetsAndBacklogMember_01a168fc-8097-78b0-a82b-7047677c19fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_01a00fe2-03cc-7e06-a0a2-4f41920d539a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:to="loc_us-gaap_TradeNamesMember_01a00fe2-03cc-7e06-a0a2-4f41920d539a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_01a00fe2-03cc-73ee-93d5-997fe356f8a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_01a00fe2-03cc-73ee-93d5-997fe356f8a8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_01a00fe2-03cc-7042-bcd4-73513ee252e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelatedIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_FiniteAndIndefiniteLivedIntangibleAssetsByMajorClassDomain_01a00fe2-03cc-7c1e-88c9-a72f2e298709" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_01a00fe2-03cc-7042-bcd4-73513ee252e7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_01a00fe2-03cc-75fb-bb63-f16864b53df0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsLineItems_01a00fe2-03cc-7543-8f1d-60e6f423ea01" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_01a00fe2-03cc-75fb-bb63-f16864b53df0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_01a00fe2-03cc-7b7d-96ab-34095d0af5c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsLineItems_01a00fe2-03cc-7543-8f1d-60e6f423ea01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_01a00fe2-03cc-7b7d-96ab-34095d0af5c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetsExcludingGoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsLineItems_01a00fe2-03cc-7543-8f1d-60e6f423ea01" xlink:to="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a00fe2-03cc-74f1-bcda-61b031173cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a00fe2-03cc-74f1-bcda-61b031173cf0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetsAcquiredGrossExcludingGoodwill_01a00fe2-03cc-75e0-822e-c27eeaca48ed" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetsAcquiredGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:to="loc_mtz_IntangibleAssetsAcquiredGrossExcludingGoodwill_01a00fe2-03cc-75e0-822e-c27eeaca48ed" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetsExcludingGoodwillPurchaseAccountingAdjustments_01a00fe2-03cc-7b5c-a9b9-506c3f60e770" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetsExcludingGoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:to="loc_mtz_IntangibleAssetsExcludingGoodwillPurchaseAccountingAdjustments_01a00fe2-03cc-7b5c-a9b9-506c3f60e770" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetsGrossExcludingGoodwillTranslationAdjustments_01a00fe2-03cc-7e87-b43f-ed47106c695f" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetsGrossExcludingGoodwillTranslationAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:to="loc_mtz_IntangibleAssetsGrossExcludingGoodwillTranslationAdjustments_01a00fe2-03cc-7e87-b43f-ed47106c695f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_01a00fe2-03cc-77e1-83a2-40394a760f58" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_IntangibleAssetsExcludingGoodwillRollForward_01a00fe2-03cc-75a1-b85b-69f2df6ba86d" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_01a00fe2-03cc-77e1-83a2-40394a760f58" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a00fe2-03cc-72c6-a8f0-6985ef6c20f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AcquisitionsGoodwillandOtherIntangibleAssetsNetNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a154e3-cc01-7e9b-9bb7-efb0d3089e5e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_McKeeAcquisitionMember_01a15f74-2dad-7695-b7fe-482dc37433f1" xlink:href="mtz-20260930.xsd#mtz_McKeeAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_McKeeAcquisitionMember_01a15f74-2dad-7695-b7fe-482dc37433f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SuperiorAcquisitionMember_01a154e3-cc01-78d9-a282-ba4d523f71b4" xlink:href="mtz-20260930.xsd#mtz_SuperiorAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_SuperiorAcquisitionMember_01a154e3-cc01-78d9-a282-ba4d523f71b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsAllOtherMember_01a15f74-c716-7bde-95cb-20fbd8561c9a" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsAllOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_A2026AcquisitionsAllOtherMember_01a15f74-c716-7bde-95cb-20fbd8561c9a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsMember_01a154e3-cc01-7371-b21f-18ecf0b59ec9" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_A2026AcquisitionsMember_01a154e3-cc01-7371-b21f-18ecf0b59ec9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025AcquisitionsMember_01a154e4-2e0e-7989-b907-6fc0b8c5b69a" xlink:href="mtz-20260930.xsd#mtz_A2025AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_A2025AcquisitionsMember_01a154e4-2e0e-7989-b907-6fc0b8c5b69a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2021AcquisitionsHenkelsMcCoyGroupIncMember_01a154e4-4cac-7cac-9bc6-d1a1ee421db8" xlink:href="mtz-20260930.xsd#mtz_A2021AcquisitionsHenkelsMcCoyGroupIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a154e3-cc01-7002-ad37-494585e3f36b" xlink:to="loc_mtz_A2021AcquisitionsHenkelsMcCoyGroupIncMember_01a154e4-4cac-7cac-9bc6-d1a1ee421db8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_01a15f4a-e17a-7cc6-9555-73c55b20b8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_01a15f4a-e17a-7cc6-9555-73c55b20b8b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-7cc6-9555-73c55b20b8b2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_01a15f4a-e17a-7cc6-9555-73c55b20b8b2" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-7cc6-9555-73c55b20b8b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-70f0-aea3-157067891b02" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_01a15f4a-e17a-7cc6-9555-73c55b20b8b2" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-70f0-aea3-157067891b02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_01a15f4b-5073-796f-ae68-9cf94b6b9833" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-70f0-aea3-157067891b02" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_01a15f4b-5073-796f-ae68-9cf94b6b9833" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_MeasurementInputCustomerAttritionRateMember_01a15f4c-889d-789d-8859-78299824504a" xlink:href="mtz-20260930.xsd#mtz_MeasurementInputCustomerAttritionRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_01a15f4a-e17a-70f0-aea3-157067891b02" xlink:to="loc_mtz_MeasurementInputCustomerAttritionRateMember_01a15f4c-889d-789d-8859-78299824504a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a154e4-08a7-7a48-a51b-9e750e6a2d45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a154e4-08a7-7a48-a51b-9e750e6a2d45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a154e4-08a7-7a48-a51b-9e750e6a2d45_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a154e4-08a7-7a48-a51b-9e750e6a2d45" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a154e4-08a7-7a48-a51b-9e750e6a2d45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a154e4-08a7-7750-bfcb-cb692fb1db67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a154e4-08a7-7a48-a51b-9e750e6a2d45" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a154e4-08a7-7750-bfcb-cb692fb1db67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_01a154e4-08a7-7963-a331-3ab0c464014f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a154e4-08a7-7750-bfcb-cb692fb1db67" xlink:to="loc_us-gaap_CustomerRelationshipsMember_01a154e4-08a7-7963-a331-3ab0c464014f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionAxis_01a154e4-2e0e-72b7-b628-6476ef56a00f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_AssetAcquisitionAxis_01a154e4-2e0e-72b7-b628-6476ef56a00f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionDomain_01a154e4-2e0e-72b7-b628-6476ef56a00f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AssetAcquisitionAxis_01a154e4-2e0e-72b7-b628-6476ef56a00f" xlink:to="loc_us-gaap_AssetAcquisitionDomain_01a154e4-2e0e-72b7-b628-6476ef56a00f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionDomain_01a154e4-2e0e-752c-bfa4-4216fed9b33c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AssetAcquisitionAxis_01a154e4-2e0e-72b7-b628-6476ef56a00f" xlink:to="loc_us-gaap_AssetAcquisitionDomain_01a154e4-2e0e-752c-bfa4-4216fed9b33c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsMember_01a154e6-55f4-780c-acc2-cbd1f9e94a67" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetAcquisitionDomain_01a154e4-2e0e-752c-bfa4-4216fed9b33c" xlink:to="loc_mtz_A2026AcquisitionsMember_01a154e6-55f4-780c-acc2-cbd1f9e94a67" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a154e4-08a7-765d-9b51-4dc7eb22d470" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_srt_RangeAxis_01a154e4-08a7-765d-9b51-4dc7eb22d470" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a154e4-08a7-765d-9b51-4dc7eb22d470_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a154e4-08a7-765d-9b51-4dc7eb22d470" xlink:to="loc_srt_RangeMember_01a154e4-08a7-765d-9b51-4dc7eb22d470_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a154e4-08a7-78aa-b609-5686811147f7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a154e4-08a7-765d-9b51-4dc7eb22d470" xlink:to="loc_srt_RangeMember_01a154e4-08a7-78aa-b609-5686811147f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a154e4-2e0e-75cb-99be-d9f90f5212d2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a154e4-08a7-78aa-b609-5686811147f7" xlink:to="loc_srt_MinimumMember_01a154e4-2e0e-75cb-99be-d9f90f5212d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a154e4-2e0e-7feb-82fd-e8cffed08b56" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a154e4-08a7-78aa-b609-5686811147f7" xlink:to="loc_srt_MaximumMember_01a154e4-2e0e-7feb-82fd-e8cffed08b56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a154e4-2e0e-7703-aa39-af3ab834661d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a154e4-2e0e-7703-aa39-af3ab834661d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a154e4-2e0e-7703-aa39-af3ab834661d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a154e4-2e0e-7703-aa39-af3ab834661d" xlink:to="loc_us-gaap_SegmentDomain_01a154e4-2e0e-7703-aa39-af3ab834661d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a154e4-2e0e-73e1-a449-d82ab22d21ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a154e4-2e0e-7703-aa39-af3ab834661d" xlink:to="loc_us-gaap_SegmentDomain_01a154e4-2e0e-73e1-a449-d82ab22d21ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a154e4-2e0e-73b7-b05c-3f390cac1d4d" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a154e4-2e0e-73e1-a449-d82ab22d21ea" xlink:to="loc_mtz_PipelineInfrastructureMember_01a154e4-2e0e-73b7-b05c-3f390cac1d4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_01a154e4-4cac-7003-9450-1e7dac6784f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-710f-8d4c-dca65420fd62" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_01a154e4-4cac-7003-9450-1e7dac6784f2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7003-9450-1e7dac6784f2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a154e4-4cac-7003-9450-1e7dac6784f2" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7003-9450-1e7dac6784f2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7b14-a4e6-c7be74458aca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a154e4-4cac-7003-9450-1e7dac6784f2" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7b14-a4e6-c7be74458aca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ContingentConsiderationValueOfAdditionalPaymentsMember_01a154e4-4cac-7d34-ad1f-2f855035ed9e" xlink:href="mtz-20260930.xsd#mtz_ContingentConsiderationValueOfAdditionalPaymentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7b14-a4e6-c7be74458aca" xlink:to="loc_mtz_ContingentConsiderationValueOfAdditionalPaymentsMember_01a154e4-4cac-7d34-ad1f-2f855035ed9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ContingentConsiderationFairValueAdjustmentsMember_01a154e4-4cac-7b55-8208-3bf424d9e3f1" xlink:href="mtz-20260930.xsd#mtz_ContingentConsiderationFairValueAdjustmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_01a154e4-4cac-7b14-a4e6-c7be74458aca" xlink:to="loc_mtz_ContingentConsiderationFairValueAdjustmentsMember_01a154e4-4cac-7b55-8208-3bf424d9e3f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_01a154e3-cc01-756d-ada1-3e707c775af2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_01a154e3-cc01-756d-ada1-3e707c775af2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_01a154e3-cc01-70ad-966c-ea466d43cd3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_01a154e3-cc01-70ad-966c-ea466d43cd3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_01a154e4-2e0e-7312-823e-e0856db7097a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_01a154e4-2e0e-7312-823e-e0856db7097a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_01a154e3-cc01-7d33-90ff-2a849e6a8829" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_01a154e3-cc01-7d33-90ff-2a849e6a8829" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_BusinessCombinationContingentConsiderationArrangementsEarnOutLiabilityTerm_01a154e3-cc01-76f3-9189-e81c51088406" xlink:href="mtz-20260930.xsd#mtz_BusinessCombinationContingentConsiderationArrangementsEarnOutLiabilityTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_mtz_BusinessCombinationContingentConsiderationArrangementsEarnOutLiabilityTerm_01a154e3-cc01-76f3-9189-e81c51088406" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_01a154e3-f08d-7385-911c-75c661340a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_01a154e3-f08d-7385-911c-75c661340a7a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_IntangibleAssetMeasurementInput_01a15f4a-04db-7e5b-8392-8304dfc24a8b" xlink:href="mtz-20260930.xsd#mtz_IntangibleAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_mtz_IntangibleAssetMeasurementInput_01a15f4a-04db-7e5b-8392-8304dfc24a8b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_01a154e4-2e0e-7947-80f2-8cd88afda067" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_01a154e4-2e0e-7947-80f2-8cd88afda067" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_01a154e4-2e0e-7e4a-b271-d0690d21f41b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_01a154e4-2e0e-7e4a-b271-d0690d21f41b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_01a154e4-2e0e-746b-9400-00df42f7df59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_01a154e4-2e0e-746b-9400-00df42f7df59" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_01a154e4-2e0e-7fb5-afa6-a487640233c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_01a154e4-2e0e-7fb5-afa6-a487640233c5" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_01a154e4-4cac-7e06-9c1c-18dd0e8b295a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_01a154e4-4cac-7e06-9c1c-18dd0e8b295a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_01a154e4-4cac-7e0a-8564-db2b98fcdf1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_01a154e4-4cac-7e0a-8564-db2b98fcdf1a" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_01a154e4-4cac-7812-91ab-e19f9a402ec4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_01a154e4-4cac-7812-91ab-e19f9a402ec4" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a154e4-4cac-7cb7-ae14-743274da9b5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a154e4-4cac-7cb7-ae14-743274da9b5c" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_01a154e4-6b20-7fc8-aad1-64a7480b9091" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_01a154e4-6b20-7fc8-aad1-64a7480b9091" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_01a154e4-6b20-78ec-bcf4-95a28a0a93a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_01a154e4-6b20-78ec-bcf4-95a28a0a93a5" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_01a154e4-8a88-7200-a78a-f07571c344a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a154e3-cc01-7ba2-b0cc-a29e05ae9f7b" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_01a154e4-8a88-7200-a78a-f07571c344a6" xlink:type="arc" order="17"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetEstimatedFairValuesoftheConsiderationPaidandNetAssetsAcquiredDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AcquisitionsGoodwillandOtherIntangibleAssetsNetEstimatedFairValuesoftheConsiderationPaidandNetAssetsAcquiredDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetEstimatedFairValuesoftheConsiderationPaidandNetAssetsAcquiredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_01a00fe2-03cc-792f-9a03-2dd653c73641" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-736b-aeaf-468bd3fc0552" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a00fe2-03cc-792f-9a03-2dd653c73641" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-736b-aeaf-468bd3fc0552" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7328-8e7d-db43c5ee676e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01a00fe2-03cc-736b-aeaf-468bd3fc0552" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7328-8e7d-db43c5ee676e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7328-8e7d-db43c5ee676e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7328-8e7d-db43c5ee676e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7328-8e7d-db43c5ee676e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c1f-bbaf-bf2dd6cb71ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7328-8e7d-db43c5ee676e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c1f-bbaf-bf2dd6cb71ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_McKeeAcquisitionMember_01a0438c-8af5-7377-980b-2afc6f394334" xlink:href="mtz-20260930.xsd#mtz_McKeeAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c1f-bbaf-bf2dd6cb71ea" xlink:to="loc_mtz_McKeeAcquisitionMember_01a0438c-8af5-7377-980b-2afc6f394334" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SuperiorAcquisitionMember_01a0438d-8582-7b64-83ff-4c36794bb55a" xlink:href="mtz-20260930.xsd#mtz_SuperiorAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c1f-bbaf-bf2dd6cb71ea" xlink:to="loc_mtz_SuperiorAcquisitionMember_01a0438d-8582-7b64-83ff-4c36794bb55a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsAllOtherMember_01a11780-85a8-7ffa-81d3-5a908a381b0e" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsAllOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c1f-bbaf-bf2dd6cb71ea" xlink:to="loc_mtz_A2026AcquisitionsAllOtherMember_01a11780-85a8-7ffa-81d3-5a908a381b0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationConsiderationTransferredAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a00fe2-03cc-792f-9a03-2dd653c73641" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_01a00fe2-03cc-7a21-8509-401133f40a7e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_01a00fe2-03cc-7a21-8509-401133f40a7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_01a0438e-5682-7470-89e2-51952aef81e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_01a0438e-5682-7470-89e2-51952aef81e6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_01a0b021-05bc-7b31-b591-37e8196b92b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_01a0b021-05bc-7b31-b591-37e8196b92b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAcquiredFromAcquisition_01a00fe2-03cc-7f01-881b-9ee6037af32d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAcquiredFromAcquisition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:to="loc_us-gaap_CashAcquiredFromAcquisition_01a00fe2-03cc-7f01-881b-9ee6037af32d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_01a00fe2-03cc-7773-96c0-1c2f0471d72a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferredAbstract_01a00fe2-03cc-7e2e-9472-f1ddb97d2c64" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_01a00fe2-03cc-7773-96c0-1c2f0471d72a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_01a00fe2-03cc-792f-9a03-2dd653c73641" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_BusinessCombinationRecognizedAssetAcquiredAccountsReceivableAndContractAssets_01a00fe2-03cc-7115-922e-5659670e27a3" xlink:href="mtz-20260930.xsd#mtz_BusinessCombinationRecognizedAssetAcquiredAccountsReceivableAndContractAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_mtz_BusinessCombinationRecognizedAssetAcquiredAccountsReceivableAndContractAssets_01a00fe2-03cc-7115-922e-5659670e27a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_01a00fe2-03cc-7abd-96ca-da2b368ded2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_01a00fe2-03cc-7abd-96ca-da2b368ded2a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_01a00fe2-03cc-7037-979c-3503e16b0a81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_01a00fe2-03cc-7037-979c-3503e16b0a81" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_BusinessCombinationRecognizedAssetAcquiredOtherAsset_01a1789a-a6ad-7ce7-8b6d-8a37a9527c21" xlink:href="mtz-20260930.xsd#mtz_BusinessCombinationRecognizedAssetAcquiredOtherAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_mtz_BusinessCombinationRecognizedAssetAcquiredOtherAsset_01a1789a-a6ad-7ce7-8b6d-8a37a9527c21" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_01a00fe2-03cc-776f-934b-9a39dd73bd77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_01a00fe2-03cc-776f-934b-9a39dd73bd77" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_01a00fe2-03cc-7001-bcb9-4f5123a36b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_01a00fe2-03cc-7001-bcb9-4f5123a36b1a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAccruedExpenses_01a00fe2-03cc-7d31-ae6d-b9d2889943c5" xlink:href="mtz-20260930.xsd#mtz_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAccruedExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_mtz_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAccruedExpenses_01a00fe2-03cc-7d31-ae6d-b9d2889943c5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_BusinessCombinationRecognizedLiabilityAssumedOtherLiability_01a178a0-66b2-7160-a5e9-ba99d4da8949" xlink:href="mtz-20260930.xsd#mtz_BusinessCombinationRecognizedLiabilityAssumedOtherLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_mtz_BusinessCombinationRecognizedLiabilityAssumedOtherLiability_01a178a0-66b2-7160-a5e9-ba99d4da8949" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_01a00fe2-03cc-7dbc-8a76-38a3cd2c854c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_01a00fe2-03cc-7dbc-8a76-38a3cd2c854c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_01a00fe2-03cc-7f6d-9597-c0c6d87d3554" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_Goodwill_01a00fe2-03cc-7f6d-9597-c0c6d87d3554" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_01a00fe2-03cc-761e-8d2e-245cface397f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_01a00fe2-03cc-761e-8d2e-245cface397f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_01a00fe2-03cc-7276-9358-a38d7c71e91e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_01a00fe2-03cc-7276-9358-a38d7c71e91e" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedLessNoncontrollingInterest_01a00fe2-03cc-7239-b22b-c675746be8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedLessNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_01a00fe2-03cc-7cc8-af8f-961b425b66d0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedLessNoncontrollingInterest_01a00fe2-03cc-7239-b22b-c675746be8d2" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetFairValuesofIdentifiableIntangibleAssetsDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AcquisitionsGoodwillandOtherIntangibleAssetsNetFairValuesofIdentifiableIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AcquisitionsGoodwillandOtherIntangibleAssetsNetFairValuesofIdentifiableIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ScheduleOfIntangibleAssetsLineItems_01a04392-59fb-7f31-bbf3-0a6b7e42a930" xlink:href="mtz-20260930.xsd#mtz_ScheduleOfIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ScheduleOfIntangibleAssetsTable_01a04392-59fb-7b9f-87c5-85cb5a2263d5" xlink:href="mtz-20260930.xsd#mtz_ScheduleOfIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsLineItems_01a04392-59fb-7f31-bbf3-0a6b7e42a930" xlink:to="loc_mtz_ScheduleOfIntangibleAssetsTable_01a04392-59fb-7b9f-87c5-85cb5a2263d5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a04392-59fb-7910-9823-cc6d895048af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsTable_01a04392-59fb-7b9f-87c5-85cb5a2263d5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a04392-59fb-7910-9823-cc6d895048af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7910-9823-cc6d895048af_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a04392-59fb-7910-9823-cc6d895048af" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7910-9823-cc6d895048af_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7313-ae79-50d5c857a2f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_01a04392-59fb-7910-9823-cc6d895048af" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7313-ae79-50d5c857a2f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_01a04392-59fb-71f5-8dbf-7ff0df8ce9fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7313-ae79-50d5c857a2f2" xlink:to="loc_us-gaap_CustomerRelationshipsMember_01a04392-59fb-71f5-8dbf-7ff0df8ce9fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_01a04392-59fb-7742-b830-c6cfbac16f69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OrderOrProductionBacklogMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7313-ae79-50d5c857a2f2" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_01a04392-59fb-7742-b830-c6cfbac16f69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_01a04392-59fb-7c25-b43e-a9c1b3fa1560" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_01a04392-59fb-7313-ae79-50d5c857a2f2" xlink:to="loc_us-gaap_TradeNamesMember_01a04392-59fb-7c25-b43e-a9c1b3fa1560" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a04392-59fb-7b23-bfd6-e03dfb38baee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsTable_01a04392-59fb-7b9f-87c5-85cb5a2263d5" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a04392-59fb-7b23-bfd6-e03dfb38baee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7b23-bfd6-e03dfb38baee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a04392-59fb-7b23-bfd6-e03dfb38baee" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7b23-bfd6-e03dfb38baee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7a24-bb76-fd3b2904f317" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a04392-59fb-7b23-bfd6-e03dfb38baee" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7a24-bb76-fd3b2904f317" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_McKeeAcquisitionMember_01a06370-8864-7dd5-a00f-119015fedddb" xlink:href="mtz-20260930.xsd#mtz_McKeeAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7a24-bb76-fd3b2904f317" xlink:to="loc_mtz_McKeeAcquisitionMember_01a06370-8864-7dd5-a00f-119015fedddb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SuperiorAcquisitionMember_01a06370-b653-77c0-9e96-c1ec9bc16d03" xlink:href="mtz-20260930.xsd#mtz_SuperiorAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7a24-bb76-fd3b2904f317" xlink:to="loc_mtz_SuperiorAcquisitionMember_01a06370-b653-77c0-9e96-c1ec9bc16d03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsAllOtherMember_01a13625-0c98-7cbd-b276-efa00039a4a2" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsAllOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a04392-59fb-7a24-bb76-fd3b2904f317" xlink:to="loc_mtz_A2026AcquisitionsAllOtherMember_01a13625-0c98-7cbd-b276-efa00039a4a2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_01a1362a-8fc4-756b-9cc0-8ad9bcc4f5bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsLineItems_01a04392-59fb-7f31-bbf3-0a6b7e42a930" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_01a1362a-8fc4-756b-9cc0-8ad9bcc4f5bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_01a04393-189c-77a7-89d8-adb0e6968213" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_ScheduleOfIntangibleAssetsLineItems_01a04392-59fb-7f31-bbf3-0a6b7e42a930" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_01a04393-189c-77a7-89d8-adb0e6968213" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsAcquisitionRelatedContingentConsiderationandOtherLiabilitiesNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsAcquisitionRelatedContingentConsiderationandOtherLiabilitiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsAcquisitionRelatedContingentConsiderationandOtherLiabilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7323-a32b-7fe4badc7636" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7e47-962a-da879e3242a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7323-a32b-7fe4badc7636" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7e47-962a-da879e3242a5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_01a00fe2-03cc-76f8-b79e-493b17dc4b94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7e47-962a-da879e3242a5" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_01a00fe2-03cc-76f8-b79e-493b17dc4b94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_01a00fe2-03cc-76f8-b79e-493b17dc4b94_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_01a00fe2-03cc-76f8-b79e-493b17dc4b94" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_01a00fe2-03cc-76f8-b79e-493b17dc4b94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_01a00fe2-03cc-7245-a0d2-358a349c2b39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_01a00fe2-03cc-76f8-b79e-493b17dc4b94" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_01a00fe2-03cc-7245-a0d2-358a349c2b39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_01a00fe2-03cc-7130-bb03-12c63ef48482" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_01a00fe2-03cc-7245-a0d2-358a349c2b39" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_01a00fe2-03cc-7130-bb03-12c63ef48482" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a06377-c6b6-764a-b9b5-cf2e45044d37" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7e47-962a-da879e3242a5" xlink:to="loc_srt_RangeAxis_01a06377-c6b6-764a-b9b5-cf2e45044d37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a06377-c6b6-764a-b9b5-cf2e45044d37_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a06377-c6b6-764a-b9b5-cf2e45044d37" xlink:to="loc_srt_RangeMember_01a06377-c6b6-764a-b9b5-cf2e45044d37_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a06377-c6b6-7bfc-a2c6-940d9424c8c1" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a06377-c6b6-764a-b9b5-cf2e45044d37" xlink:to="loc_srt_RangeMember_01a06377-c6b6-7bfc-a2c6-940d9424c8c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a06377-f391-7df0-961d-136c0a3a181e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a06377-c6b6-7bfc-a2c6-940d9424c8c1" xlink:to="loc_srt_MinimumMember_01a06377-f391-7df0-961d-136c0a3a181e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a06378-2365-7ede-90e9-5e869334cf95" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a06377-c6b6-7bfc-a2c6-940d9424c8c1" xlink:to="loc_srt_MaximumMember_01a06378-2365-7ede-90e9-5e869334cf95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_01a06378-43e1-7f5b-a9cb-d81038df8712" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a06377-c6b6-7bfc-a2c6-940d9424c8c1" xlink:to="loc_srt_WeightedAverageMember_01a06378-43e1-7f5b-a9cb-d81038df8712" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7c49-bccc-df409546c6c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7e47-962a-da879e3242a5" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7c49-bccc-df409546c6c5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c49-bccc-df409546c6c5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7c49-bccc-df409546c6c5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-7c49-bccc-df409546c6c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-75fe-bc66-397b243dc4e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a00fe2-03cc-7c49-bccc-df409546c6c5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-75fe-bc66-397b243dc4e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_AllAcquisitionsMember_01a00fe2-03cc-7e20-89d4-8ab79d19f313" xlink:href="mtz-20260930.xsd#mtz_AllAcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a00fe2-03cc-75fe-bc66-397b243dc4e3" xlink:to="loc_mtz_AllAcquisitionsMember_01a00fe2-03cc-7e20-89d4-8ab79d19f313" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput_01a00fe2-03cc-77cb-b426-4f1941883355" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7323-a32b-7fe4badc7636" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput_01a00fe2-03cc-77cb-b426-4f1941883355" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow_01a00fe2-03cc-736e-a80c-0f385e4035f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7323-a32b-7fe4badc7636" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow_01a00fe2-03cc-736e-a80c-0f385e4035f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_01a00fe2-03cc-7a6b-90bf-cac0c208956f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7323-a32b-7fe4badc7636" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_01a00fe2-03cc-7a6b-90bf-cac0c208956f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7bc5-bddf-59e66e4932f6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7bc5-bddf-59e66e4932f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EarnoutArrangementsMember_01a00fe2-03cc-70e9-9a1a-1c7266fc97c9" xlink:href="mtz-20260930.xsd#mtz_EarnoutArrangementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:to="loc_mtz_EarnoutArrangementsMember_01a00fe2-03cc-70e9-9a1a-1c7266fc97c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_01a00fe2-03cc-71f9-b6b0-1968beb5a2a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfFinancialPositionLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:to="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_01a00fe2-03cc-71f9-b6b0-1968beb5a2a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-780b-b5d1-9a9b781e29a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-780b-b5d1-9a9b781e29a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_01a00fe2-03cc-704f-b4ba-aa6a770189e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_01a00fe2-03cc-704f-b4ba-aa6a770189e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_01a00fe2-03cc-724e-8924-fa65fc620ace" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_01a00fe2-03cc-724e-8924-fa65fc620ace" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_01a00fe2-03cc-7b88-b5bf-d2f8756b216f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_01a00fe2-03cc-7b88-b5bf-d2f8756b216f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-7f45-9781-76f3e724eed0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails_1" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails_1"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsScheduleofEarnoutLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7ed2-b89a-139d86f8d352" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7bc5-bddf-59e66e4932f6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7bc5-bddf-59e66e4932f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_01a00fe2-03cc-7bc5-bddf-59e66e4932f6" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EarnoutArrangementsMember_01a00fe2-03cc-70e9-9a1a-1c7266fc97c9" xlink:href="mtz-20260930.xsd#mtz_EarnoutArrangementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_01a00fe2-03cc-7094-b8eb-ef773032161f" xlink:to="loc_mtz_EarnoutArrangementsMember_01a00fe2-03cc-70e9-9a1a-1c7266fc97c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7537-8f0e-0968ce847338" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-780b-b5d1-9a9b781e29a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-780b-b5d1-9a9b781e29a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_01a00fe2-03cc-704f-b4ba-aa6a770189e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_01a00fe2-03cc-704f-b4ba-aa6a770189e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_01a00fe2-03cc-724e-8924-fa65fc620ace" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_01a00fe2-03cc-724e-8924-fa65fc620ace" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_01a00fe2-03cc-7b88-b5bf-d2f8756b216f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_01a00fe2-03cc-732f-a2b6-15e5c0e80810" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_01a00fe2-03cc-7b88-b5bf-d2f8756b216f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations_01a00fe2-03cc-7f45-9781-76f3e724eed0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisObligations"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsEquityInvestmentsNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsEquityInvestmentsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsEquityInvestmentsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7a8b-982f-c0da76710a57" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7a8b-982f-c0da76710a57" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7c31-85ef-256e635adf91" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7a8b-982f-c0da76710a57" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7c31-85ef-256e635adf91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c31-85ef-256e635adf91_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7c31-85ef-256e635adf91" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c31-85ef-256e635adf91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c65-aec9-a435f247cae0" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7c31-85ef-256e635adf91" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c65-aec9-a435f247cae0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_WahaJVsMember_01a00fe2-03cc-7b50-ba3d-a56c70e296f1" xlink:href="mtz-20260930.xsd#mtz_WahaJVsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c65-aec9-a435f247cae0" xlink:to="loc_mtz_WahaJVsMember_01a00fe2-03cc-7b50-ba3d-a56c70e296f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SuperiorAcquisitionMember_01a13637-3755-7b7a-9667-4a0494f79a2d" xlink:href="mtz-20260930.xsd#mtz_SuperiorAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c65-aec9-a435f247cae0" xlink:to="loc_mtz_SuperiorAcquisitionMember_01a13637-3755-7b7a-9667-4a0494f79a2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-03cc-7367-a8f9-8654085d4289" xlink:href="mtz-20260930.xsd#mtz_CrossCountryInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7c65-aec9-a435f247cae0" xlink:to="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-03cc-7367-a8f9-8654085d4289" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a13636-557b-73c5-b424-c9cb20073218" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7a8b-982f-c0da76710a57" xlink:to="loc_srt_RangeAxis_01a13636-557b-73c5-b424-c9cb20073218" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a13636-557b-73c5-b424-c9cb20073218_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a13636-557b-73c5-b424-c9cb20073218" xlink:to="loc_srt_RangeMember_01a13636-557b-73c5-b424-c9cb20073218_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a13636-557b-724a-aec2-d2d3ce097a6b" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a13636-557b-73c5-b424-c9cb20073218" xlink:to="loc_srt_RangeMember_01a13636-557b-724a-aec2-d2d3ce097a6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a13636-7b3d-782a-a2d4-058d07f74805" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a13636-557b-724a-aec2-d2d3ce097a6b" xlink:to="loc_srt_MinimumMember_01a13636-7b3d-782a-a2d4-058d07f74805" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a13636-a6de-73b0-bcb2-e366dfb0412b" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a13636-557b-724a-aec2-d2d3ce097a6b" xlink:to="loc_srt_MaximumMember_01a13636-a6de-73b0-bcb2-e366dfb0412b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_01a00fe2-03cc-7c20-9288-d2e992fe7b43" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7a8b-982f-c0da76710a57" xlink:to="loc_srt_OwnershipAxis_01a00fe2-03cc-7c20-9288-d2e992fe7b43" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-03cc-7c20-9288-d2e992fe7b43_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_01a00fe2-03cc-7c20-9288-d2e992fe7b43" xlink:to="loc_srt_OwnershipDomain_01a00fe2-03cc-7c20-9288-d2e992fe7b43_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-03cc-7487-b3b9-02947a6ba4fd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_01a00fe2-03cc-7c20-9288-d2e992fe7b43" xlink:to="loc_srt_OwnershipDomain_01a00fe2-03cc-7487-b3b9-02947a6ba4fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-03cc-7181-bd74-2dcb47e1a1ef" xlink:href="mtz-20260930.xsd#mtz_CrossCountryInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_01a00fe2-03cc-7487-b3b9-02947a6ba4fd" xlink:to="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-03cc-7181-bd74-2dcb47e1a1ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_01a00fe2-03cc-7847-a917-599ed65734cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_01a00fe2-03cc-7847-a917-599ed65734cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_01a00fe2-03cc-74d9-84a3-cefd6d5db58e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_01a00fe2-03cc-74d9-84a3-cefd6d5db58e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_01a00fe2-03cc-7bba-ad6d-dae0ff4d1e5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_01a00fe2-03cc-7bba-ad6d-dae0ff4d1e5f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_01a00fe2-03cc-77d7-91f3-a8c8050084f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_01a00fe2-03cc-77d7-91f3-a8c8050084f6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_01a00fe2-03cc-7295-8198-fee3e49b4396" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7097-b996-b1b88e376cd5" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_01a00fe2-03cc-7295-8198-fee3e49b4396" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsTheWahaJVsNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsTheWahaJVsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsTheWahaJVsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7fde-80de-caddccc69dd2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-73e8-9fea-b94f2a4def73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7fde-80de-caddccc69dd2" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-73e8-9fea-b94f2a4def73" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-72c5-88f3-7325dc348439" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-73e8-9fea-b94f2a4def73" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-72c5-88f3-7325dc348439" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-72c5-88f3-7325dc348439_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-72c5-88f3-7325dc348439" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-72c5-88f3-7325dc348439_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7380-98a6-fd57222973af" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-72c5-88f3-7325dc348439" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7380-98a6-fd57222973af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_WahaJVsMember_01a00fe2-03cc-7616-a137-784d747fcdb8" xlink:href="mtz-20260930.xsd#mtz_WahaJVsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7380-98a6-fd57222973af" xlink:to="loc_mtz_WahaJVsMember_01a00fe2-03cc-7616-a137-784d747fcdb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees_01a00fe2-03cc-7ec9-b171-a3e71372c3e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7fde-80de-caddccc69dd2" xlink:to="loc_us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees_01a00fe2-03cc-7ec9-b171-a3e71372c3e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_01a00fe2-03cc-77b4-bf69-e17a0b6fc8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-7fde-80de-caddccc69dd2" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_01a00fe2-03cc-77b4-bf69-e17a0b6fc8c4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsInvestmentActivityDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsInvestmentActivityDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsInvestmentActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7cb7-bc6e-1f41c191c468" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-76a2-bcc3-52d5e2ca7ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7cb7-bc6e-1f41c191c468" xlink:to="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-76a2-bcc3-52d5e2ca7ad2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7b12-9399-2806c02d9fdb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-76a2-bcc3-52d5e2ca7ad2" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7b12-9399-2806c02d9fdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7b12-9399-2806c02d9fdb_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7b12-9399-2806c02d9fdb" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7b12-9399-2806c02d9fdb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-740d-b293-50b200bea711" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7b12-9399-2806c02d9fdb" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-740d-b293-50b200bea711" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_WahaJVsMember_01a00fe2-03cc-7245-87a5-cf24641aa3e5" xlink:href="mtz-20260930.xsd#mtz_WahaJVsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-740d-b293-50b200bea711" xlink:to="loc_mtz_WahaJVsMember_01a00fe2-03cc-7245-87a5-cf24641aa3e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_01a00fe2-03cc-79c3-8afb-ea85d5ec7cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7cb7-bc6e-1f41c191c468" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_01a00fe2-03cc-79c3-8afb-ea85d5ec7cc5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_01a00fe2-03cc-741f-a0cd-d9718e36298e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7cb7-bc6e-1f41c191c468" xlink:to="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_01a00fe2-03cc-741f-a0cd-d9718e36298e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsOtherEquityInvestmentsNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsOtherEquityInvestmentsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsOtherEquityInvestmentsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7589-b972-36b55cae75e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7589-b972-36b55cae75e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7cf6-b642-43f30ad3feef" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7589-b972-36b55cae75e6" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7cf6-b642-43f30ad3feef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7cf6-b642-43f30ad3feef_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7cf6-b642-43f30ad3feef" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-7cf6-b642-43f30ad3feef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-787b-876e-2d22927e77ae" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-03cc-7cf6-b642-43f30ad3feef" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-787b-876e-2d22927e77ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_OtherEquityMethodInvestmentsMember_01a00fe2-03cc-7374-b131-780bd8ec2df7" xlink:href="mtz-20260930.xsd#mtz_OtherEquityMethodInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-03cc-787b-876e-2d22927e77ae" xlink:to="loc_mtz_OtherEquityMethodInvestmentsMember_01a00fe2-03cc-7374-b131-780bd8ec2df7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7589-b972-36b55cae75e6" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7c68-9fec-873769204f1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-03cc-7fa5-8ee1-57a4647c2c4f" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7c68-9fec-873769204f1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SubcontractingArrangementsMember_01a00fe2-03cc-716b-8c96-c93ad5ab80b3" xlink:href="mtz-20260930.xsd#mtz_SubcontractingArrangementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7c68-9fec-873769204f1a" xlink:to="loc_mtz_SubcontractingArrangementsMember_01a00fe2-03cc-716b-8c96-c93ad5ab80b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_OtherEquityMethodInvestmentsAndSubcontractingArrangementsMember_01a1827a-498f-7d19-a4ae-22fe6e22a281" xlink:href="mtz-20260930.xsd#mtz_OtherEquityMethodInvestmentsAndSubcontractingArrangementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-03cc-7c68-9fec-873769204f1a" xlink:to="loc_mtz_OtherEquityMethodInvestmentsAndSubcontractingArrangementsMember_01a1827a-498f-7d19-a4ae-22fe6e22a281" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_01a00fe2-03cc-7589-b972-36b55cae75e6" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-03cc-7320-bb5e-f81b4de551f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-03cc-7bbc-8da8-0f06b2ba35a5" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-03cc-7320-bb5e-f81b4de551f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_01a00fe2-03cc-7770-829a-fea3280277c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-03cc-7320-bb5e-f81b4de551f9" xlink:to="loc_us-gaap_RelatedPartyMember_01a00fe2-03cc-7770-829a-fea3280277c2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAdditionalInterestInSubsidiaries_01a00fe2-03cc-7f91-93c8-21af745bbc2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAdditionalInterestInSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_PaymentsToAcquireAdditionalInterestInSubsidiaries_01a00fe2-03cc-7f91-93c8-21af745bbc2e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_01a0439b-23d2-79a8-98bb-371643499713" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_01a0439b-23d2-79a8-98bb-371643499713" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a1828b-634e-720b-b762-89b6750587a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_Revenues_01a1828b-634e-720b-b762-89b6750587a8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingCostsAndExpenses_01a00fe2-03cc-7721-88ff-7af5ea20f887" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingCostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_OperatingCostsAndExpenses_01a00fe2-03cc-7721-88ff-7af5ea20f887" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_01a00fe2-03cc-7ae5-98d4-5a91eaa985c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_01a00fe2-03cc-7ae5-98d4-5a91eaa985c4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_01a00fe2-03cc-7371-a9f8-9bee22f933c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_01a00fe2-03cc-788e-a4f4-961a5b52a911" xlink:to="loc_us-gaap_AccountsReceivableNet_01a00fe2-03cc-7371-a9f8-9bee22f933c7" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/FairValueofFinancialInstrumentsVariableInterestEntitiesNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#FairValueofFinancialInstrumentsVariableInterestEntitiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/FairValueofFinancialInstrumentsVariableInterestEntitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-7546-8a03-695dab30d69f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-7546-8a03-695dab30d69f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-03cc-774f-b5f0-73e8ec7339de" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_01a00fe2-03cc-7546-8a03-695dab30d69f" xlink:to="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-03cc-774f-b5f0-73e8ec7339de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-774f-b5f0-73e8ec7339de_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-03cc-774f-b5f0-73e8ec7339de" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-774f-b5f0-73e8ec7339de_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-788f-b834-4d21dcdb0cbe" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-03cc-774f-b5f0-73e8ec7339de" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-788f-b834-4d21dcdb0cbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_01a00fe2-03cc-70e2-b785-71f5122491aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-788f-b834-4d21dcdb0cbe" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_01a00fe2-03cc-70e2-b785-71f5122491aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_01a00fe2-03cc-7da9-8ba9-2c075ccc2cc3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-03cc-788f-b834-4d21dcdb0cbe" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_01a00fe2-03cc-7da9-8ba9-2c075ccc2cc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_VariableInterestEntityPrimaryBeneficiaryNumberOfEntities_01a00fe2-03cc-7374-a207-c077968a0459" xlink:href="mtz-20260930.xsd#mtz_VariableInterestEntityPrimaryBeneficiaryNumberOfEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_mtz_VariableInterestEntityPrimaryBeneficiaryNumberOfEntities_01a00fe2-03cc-7374-a207-c077968a0459" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_01a00fe2-03cc-7d5e-9235-947c4180a8ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_Assets_01a00fe2-03cc-7d5e-9235-947c4180a8ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_01a00fe2-03cc-7c0e-9dd9-9deb13a6e6de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_Liabilities_01a00fe2-03cc-7c0e-9dd9-9deb13a6e6de" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_01a00fe2-03cc-74e5-8a89-2ba5d6459e37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_01a00fe2-03cc-74e5-8a89-2ba5d6459e37" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_01a00fe2-03cc-7c73-b4c6-a0ab881c4ffd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_01a00fe2-03cc-7c73-b4c6-a0ab881c4ffd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_01a00fe2-03cc-79d6-9904-5bc396222e58" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_01a00fe2-03cc-7837-93c0-1b63fc27bf98" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_01a00fe2-03cc-79d6-9904-5bc396222e58" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/AccountsReceivableNetofAllowanceandContractAssetsandLiabilitiesNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#AccountsReceivableNetofAllowanceandContractAssetsandLiabilitiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/AccountsReceivableNetofAllowanceandContractAssetsandLiabilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_01a00fe2-03cc-79ba-ad27-cc2e640bb422" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_01a00fe2-03cc-79ba-ad27-cc2e640bb422" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_01a00fe2-03cc-79ba-ad27-cc2e640bb422" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f" xlink:to="loc_us-gaap_ReceivableTypeDomain_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_01a00fe2-03cc-71d2-bc30-b1cd2ad26d15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_01a00fe2-03cc-76a0-bd58-3b98f98e2c0f" xlink:to="loc_us-gaap_ReceivableTypeDomain_01a00fe2-03cc-71d2-bc30-b1cd2ad26d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceReceivablesMember_01a00fe2-03cc-7c91-880b-a139187230be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceReceivablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_01a00fe2-03cc-71d2-bc30-b1cd2ad26d15" xlink:to="loc_us-gaap_FinanceReceivablesMember_01a00fe2-03cc-7c91-880b-a139187230be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_01a00fe2-03cc-784e-9984-5a52565023a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_01a00fe2-03cc-784e-9984-5a52565023a2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_01a00fe2-03cc-7822-807e-46fb90882408" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_01a00fe2-03cc-7822-807e-46fb90882408" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ContractWithCustomerLiabilityDeferredRevenueCurrent_01a00fe2-03cc-7dbf-9cda-31c4ab0923c0" xlink:href="mtz-20260930.xsd#mtz_ContractWithCustomerLiabilityDeferredRevenueCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_mtz_ContractWithCustomerLiabilityDeferredRevenueCurrent_01a00fe2-03cc-7dbf-9cda-31c4ab0923c0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_01a00fe2-03cc-73a9-bdf2-b420795e8298" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_01a00fe2-03cc-73a9-bdf2-b420795e8298" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesCashProceedsReceivedForAssetsDerecognizedAmount_01a00fe2-03cc-74d3-a0fe-cc026c60684a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransferOfFinancialAssetsAccountedForAsSalesCashProceedsReceivedForAssetsDerecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesCashProceedsReceivedForAssetsDerecognizedAmount_01a00fe2-03cc-74d3-a0fe-cc026c60684a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesFairValueOfDerecognizedAssets_01a00fe2-03cc-70bd-8e58-858ca1326fa0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransferOfFinancialAssetsAccountedForAsSalesFairValueOfDerecognizedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_TransferOfFinancialAssetsAccountedForAsSalesFairValueOfDerecognizedAssets_01a00fe2-03cc-70bd-8e58-858ca1326fa0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_01a00fe2-03cc-71ad-a611-8972e9dd43d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_01a00fe2-03cc-7a7e-baeb-2b64e59c556c" xlink:to="loc_us-gaap_InterestExpenseOperating_01a00fe2-03cc-71ad-a611-8972e9dd43d4" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/PropertyandEquipmentNetScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f6-b3d2-bf450a1c903b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-7c34-ab82-1a22330a532a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f6-b3d2-bf450a1c903b" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-7c34-ab82-1a22330a532a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7a0f-a277-ca9ea549f40d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-7c34-ab82-1a22330a532a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7a0f-a277-ca9ea549f40d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-7a0f-a277-ca9ea549f40d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7a0f-a277-ca9ea549f40d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-7a0f-a277-ca9ea549f40d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7a0f-a277-ca9ea549f40d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_01a00fe2-03cc-780c-99e6-418dffe47f4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:to="loc_us-gaap_LandMember_01a00fe2-03cc-780c-99e6-418dffe47f4a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_01a00fe2-03cc-7333-b7ea-f80c00da5462" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_01a00fe2-03cc-7333-b7ea-f80c00da5462" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_01a00fe2-03cc-79a8-9bdf-850b00dfe2b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_01a00fe2-03cc-79a8-9bdf-850b00dfe2b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_01a00fe2-03cc-77dc-a2a2-e0dcd3d0c018" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_01a00fe2-03cc-77dc-a2a2-e0dcd3d0c018" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_01a00fe2-03cc-7f2f-ad85-67d7c5c64ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-77a0-a1e0-d5eed1ff29b4" xlink:to="loc_us-gaap_ConstructionInProgressMember_01a00fe2-03cc-7f2f-ad85-67d7c5c64ae3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7bc7-aebd-944997e94c2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f6-b3d2-bf450a1c903b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7bc7-aebd-944997e94c2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7976-99ea-1ba693426056" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f6-b3d2-bf450a1c903b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7976-99ea-1ba693426056" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7999-8247-c9a76d09312e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f6-b3d2-bf450a1c903b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7999-8247-c9a76d09312e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/PropertyandEquipmentNetNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#PropertyandEquipmentNetNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/PropertyandEquipmentNetNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f1-830b-c3897f114493" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-766e-ba74-08329064a244" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f1-830b-c3897f114493" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-766e-ba74-08329064a244" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7f16-b62d-2374fc8e490a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_01a00fe2-03cc-766e-ba74-08329064a244" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7f16-b62d-2374fc8e490a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-7f16-b62d-2374fc8e490a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7f16-b62d-2374fc8e490a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-7f16-b62d-2374fc8e490a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-770d-a90c-d27dcd4d22db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_01a00fe2-03cc-7f16-b62d-2374fc8e490a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-770d-a90c-d27dcd4d22db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_01a00fe2-03cc-742c-99d8-3d8ffe3f676d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_01a00fe2-03cc-770d-a90c-d27dcd4d22db" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_01a00fe2-03cc-742c-99d8-3d8ffe3f676d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_01a00fe2-03cc-74a9-9b93-561b832fb172" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f1-830b-c3897f114493" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_01a00fe2-03cc-74a9-9b93-561b832fb172" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7b08-a687-edc4d7520ae6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f1-830b-c3897f114493" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-03cc-7b08-a687-edc4d7520ae6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_01a00fe2-03cc-7439-bc81-38aa3976eb78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_01a00fe2-03cc-78f1-830b-c3897f114493" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_01a00fe2-03cc-7439-bc81-38aa3976eb78" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtScheduleofCarryingValuesofDebtDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtScheduleofCarryingValuesofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtScheduleofCarryingValuesofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7960-b016-d62d24a9403d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7abe-b19a-63bb1b05aa3a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7960-b016-d62d24a9403d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticLineOfCreditMember_01a00fe2-03cc-778d-922d-64c8d63d7031" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DomesticLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7960-b016-d62d24a9403d" xlink:to="loc_us-gaap_DomesticLineOfCreditMember_01a00fe2-03cc-778d-922d-64c8d63d7031" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_01a00fe2-03cc-7ce4-90ea-2422e01a1ce5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7960-b016-d62d24a9403d" xlink:to="loc_us-gaap_SeniorNotesMember_01a00fe2-03cc-7ce4-90ea-2422e01a1ce5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7295-a822-f60f4df69699" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:to="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7295-a822-f60f4df69699" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7295-a822-f60f4df69699_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7295-a822-f60f4df69699" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7295-a822-f60f4df69699_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-702a-a774-f956f9b5bf2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7295-a822-f60f4df69699" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-702a-a774-f956f9b5bf2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_01a00fe2-03cc-709f-ba31-8311ea373814" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-702a-a774-f956f9b5bf2b" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_01a00fe2-03cc-709f-ba31-8311ea373814" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableMember_01a00fe2-03cc-7fb6-9bb0-107fc95f1fed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansPayableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-702a-a774-f956f9b5bf2b" xlink:to="loc_us-gaap_LoansPayableMember_01a00fe2-03cc-7fb6-9bb0-107fc95f1fed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-7600-bf77-fc30b77eb08a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-7600-bf77-fc30b77eb08a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7600-bf77-fc30b77eb08a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-7600-bf77-fc30b77eb08a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7600-bf77-fc30b77eb08a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-7600-bf77-fc30b77eb08a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FourPointFivePercentSeniorNotesMember_01a00fe2-03cc-7f5f-8f8f-68f8a03d5a21" xlink:href="mtz-20260930.xsd#mtz_FourPointFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_FourPointFivePercentSeniorNotesMember_01a00fe2-03cc-7f5f-8f8f-68f8a03d5a21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FivePointNinePercentSeniorNotesMember_01a00fe2-03cc-7f3c-8a17-72f49df29420" xlink:href="mtz-20260930.xsd#mtz_FivePointNinePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_FivePointNinePercentSeniorNotesMember_01a00fe2-03cc-7f3c-8a17-72f49df29420" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a00fe2-03cc-776a-81e2-81c7ab10a507" xlink:href="mtz-20260930.xsd#mtz_SixPointSixTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a00fe2-03cc-776a-81e2-81c7ab10a507" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A5.850SeniorNotesMember_01a043a0-4f7f-7910-b7a7-0421afe6e837" xlink:href="mtz-20260930.xsd#mtz_A5.850SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_A5.850SeniorNotesMember_01a043a0-4f7f-7910-b7a7-0421afe6e837" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025TermLoanFacilityMember_01a00fe2-03cc-7a7f-8a76-b2e50695cf6c" xlink:href="mtz-20260930.xsd#mtz_A2025TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_A2025TermLoanFacilityMember_01a00fe2-03cc-7a7f-8a76-b2e50695cf6c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026TermLoanFacilityMember_01a043a1-4d57-7370-a9b3-6bbf5653dc3d" xlink:href="mtz-20260930.xsd#mtz_A2026TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a8d-a447-83a04a0c37bf" xlink:to="loc_mtz_A2026TermLoanFacilityMember_01a043a1-4d57-7370-a9b3-6bbf5653dc3d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheAxis_01a043a4-11a2-7e5b-bd18-a0522427dbad" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-757a-b764-9801bd479edb" xlink:to="loc_mtz_DebtInstrumentTrancheAxis_01a043a4-11a2-7e5b-bd18-a0522427dbad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7e5b-bd18-a0522427dbad_default" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtz_DebtInstrumentTrancheAxis_01a043a4-11a2-7e5b-bd18-a0522427dbad" xlink:to="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7e5b-bd18-a0522427dbad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7a1d-aa58-057f617bef54" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtz_DebtInstrumentTrancheAxis_01a043a4-11a2-7e5b-bd18-a0522427dbad" xlink:to="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7a1d-aa58-057f617bef54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentThreeYearTrancheMember_01a043a4-3d0c-7707-b0e8-5f607885b4d9" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentThreeYearTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7a1d-aa58-057f617bef54" xlink:to="loc_mtz_DebtInstrumentThreeYearTrancheMember_01a043a4-3d0c-7707-b0e8-5f607885b4d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentFourYearTrancheMember_01a043a4-5ad5-7d8c-aecd-b625cc3272dd" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentFourYearTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtInstrumentTrancheDomain_01a043a4-11a2-7a1d-aa58-057f617bef54" xlink:to="loc_mtz_DebtInstrumentFourYearTrancheMember_01a043a4-5ad5-7d8c-aecd-b625cc3272dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a00fe2-03cc-7c34-a802-c3cee260f9aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a00fe2-03cc-7c34-a802-c3cee260f9aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_01a00fe2-03cc-7e83-9387-abfb6ef0b814" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_01a00fe2-03cc-7e83-9387-abfb6ef0b814" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FinanceLeaseAndOtherObligations_01a00fe2-03cc-7666-9bb0-ac9345f8c80d" xlink:href="mtz-20260930.xsd#mtz_FinanceLeaseAndOtherObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_mtz_FinanceLeaseAndOtherObligations_01a00fe2-03cc-7666-9bb0-ac9345f8c80d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_LongTermDebtAndFinanceLeaseObligationsIncludingCurrentMaturitiesGross_01a00fe2-03cc-7947-b02f-b6f796ea7ef7" xlink:href="mtz-20260930.xsd#mtz_LongTermDebtAndFinanceLeaseObligationsIncludingCurrentMaturitiesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_mtz_LongTermDebtAndFinanceLeaseObligationsIncludingCurrentMaturitiesGross_01a00fe2-03cc-7947-b02f-b6f796ea7ef7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_01a00fe2-03cc-7508-b929-c7e7ca2b73e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_01a00fe2-03cc-7508-b929-c7e7ca2b73e6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities_01a00fe2-03cc-7a69-82cf-f1819f88679e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities_01a00fe2-03cc-7a69-82cf-f1819f88679e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_01a00fe2-03cc-7a8e-8d5a-7894cd21ebcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_01a00fe2-03cc-7a8e-8d5a-7894cd21ebcd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_01a00fe2-03cc-7e2a-a4da-1bfd0c7707f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d47-8480-f337ec550412" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_01a00fe2-03cc-7e2a-a4da-1bfd0c7707f1" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtSeniorCreditFacilityNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtSeniorCreditFacilityNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtSeniorCreditFacilityNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7bc2-8e93-aa079fcce5b3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7bc2-8e93-aa079fcce5b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a091af-fa4d-728c-9c3a-80903c8627be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7bc2-8e93-aa079fcce5b3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a091af-fa4d-728c-9c3a-80903c8627be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091af-fa4d-728c-9c3a-80903c8627be_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091af-fa4d-728c-9c3a-80903c8627be" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091af-fa4d-728c-9c3a-80903c8627be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091af-fa4d-7520-a71a-d9116fde4db4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091af-fa4d-728c-9c3a-80903c8627be" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091af-fa4d-7520-a71a-d9116fde4db4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticLineOfCreditMember_01a091af-fa4d-70d0-b4fe-bca905def6fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DomesticLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a091af-fa4d-7520-a71a-d9116fde4db4" xlink:to="loc_us-gaap_DomesticLineOfCreditMember_01a091af-fa4d-70d0-b4fe-bca905def6fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a091af-fa4d-7d4a-9519-f8ecc2613445" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7bc2-8e93-aa079fcce5b3" xlink:to="loc_us-gaap_CreditFacilityAxis_01a091af-fa4d-7d4a-9519-f8ecc2613445" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-7d4a-9519-f8ecc2613445_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091af-fa4d-7d4a-9519-f8ecc2613445" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-7d4a-9519-f8ecc2613445_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-75bf-a280-5a7203be5bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091af-fa4d-7d4a-9519-f8ecc2613445" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-75bf-a280-5a7203be5bf8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_01a091af-fa4d-7055-9a4d-377a9bd623e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-75bf-a280-5a7203be5bf8" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_01a091af-fa4d-7055-9a4d-377a9bd623e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ForeignDenominationMember_01a091af-fa4d-7c06-8c7f-d61b07adf7f8" xlink:href="mtz-20260930.xsd#mtz_ForeignDenominationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-75bf-a280-5a7203be5bf8" xlink:to="loc_mtz_ForeignDenominationMember_01a091af-fa4d-7c06-8c7f-d61b07adf7f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_01a091af-fa4d-7b78-8571-ba5a8e013653" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a091af-fa4d-75bf-a280-5a7203be5bf8" xlink:to="loc_us-gaap_LetterOfCreditMember_01a091af-fa4d-7b78-8571-ba5a8e013653" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091af-fa4d-7f0c-a28d-6cd7c7d09885" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7bc2-8e93-aa079fcce5b3" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091af-fa4d-7f0c-a28d-6cd7c7d09885" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7f0c-a28d-6cd7c7d09885_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091af-fa4d-7f0c-a28d-6cd7c7d09885" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7f0c-a28d-6cd7c7d09885_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7e1d-94e1-935c77d1ffd7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091af-fa4d-7f0c-a28d-6cd7c7d09885" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7e1d-94e1-935c77d1ffd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_01a091af-fa4d-71c5-80e6-97b24f5ada7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StandbyLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7e1d-94e1-935c77d1ffd7" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_01a091af-fa4d-71c5-80e6-97b24f5ada7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a091af-fa4d-7bd1-a4c6-a9644a972ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialStandbyLetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091af-fa4d-7e1d-94e1-935c77d1ffd7" xlink:to="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a091af-fa4d-7bd1-a4c6-a9644a972ba8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a091af-fa4d-72b1-9c0e-9395566d1033" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a091af-fa4d-72b1-9c0e-9395566d1033" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_01a091af-fa4d-7131-85ce-3c3321024d99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_01a091af-fa4d-7131-85ce-3c3321024d99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_01a091af-fa4d-745a-b15a-2047c5ebf72c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCredit_01a091af-fa4d-745a-b15a-2047c5ebf72c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_01a091af-fa4d-7953-9896-b515167d0194" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_01a091af-fa4d-7953-9896-b515167d0194" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_01a091af-fa4d-7f4f-8699-f1e9013c3cc6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_01a091af-fa4d-7f4f-8699-f1e9013c3cc6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_01a091af-fa4d-7a1e-be31-37528c989483" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_01a091af-fa4d-7a1e-be31-37528c989483" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCapacityAvailableForSpecificPurposeOtherThanForTradePurchases_01a091af-fa4d-789e-9223-f55187f9d978" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityCapacityAvailableForSpecificPurposeOtherThanForTradePurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCreditFacilityCapacityAvailableForSpecificPurposeOtherThanForTradePurchases_01a091af-fa4d-789e-9223-f55187f9d978" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_01a091af-fa4d-7c27-b207-6f1515f56309" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091af-fa4d-7595-bf57-839db1874f31" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_01a091af-fa4d-7c27-b207-6f1515f56309" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtOtherCreditFacilitiesNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtOtherCreditFacilitiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtOtherCreditFacilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a091b0-67d1-7711-8534-24dc64e20726" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-67d1-7711-8534-24dc64e20726" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a091b0-67d1-7a6c-9a73-37b9097d1704" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:to="loc_us-gaap_CreditFacilityAxis_01a091b0-67d1-7a6c-9a73-37b9097d1704" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091b0-67d1-7a6c-9a73-37b9097d1704_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091b0-67d1-7a6c-9a73-37b9097d1704" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091b0-67d1-7a6c-9a73-37b9097d1704_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091b0-67d1-7fa3-a06e-421a95c2bcee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091b0-67d1-7a6c-9a73-37b9097d1704" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091b0-67d1-7fa3-a06e-421a95c2bcee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_01a091b0-67d1-78dc-933d-c07094a7d8a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a091b0-67d1-7fa3-a06e-421a95c2bcee" xlink:to="loc_us-gaap_LetterOfCreditMember_01a091b0-67d1-78dc-933d-c07094a7d8a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-67d1-7563-a2de-2a45aad57a9b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-67d1-7563-a2de-2a45aad57a9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-67d1-7563-a2de-2a45aad57a9b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-67d1-7563-a2de-2a45aad57a9b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-67d1-7563-a2de-2a45aad57a9b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-67d1-7d29-ac12-91400c13fed3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-67d1-7563-a2de-2a45aad57a9b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-67d1-7d29-ac12-91400c13fed3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_01a091b0-67d1-7288-863d-b0d2093cbee9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-67d1-7d29-ac12-91400c13fed3" xlink:to="loc_us-gaap_LineOfCreditMember_01a091b0-67d1-7288-863d-b0d2093cbee9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091b0-67d1-7763-94da-239de0f8db10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091b0-67d1-7763-94da-239de0f8db10" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091b0-67d1-7763-94da-239de0f8db10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091b0-67d1-7763-94da-239de0f8db10" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091b0-67d1-7763-94da-239de0f8db10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091b0-67d1-7467-a6e9-3475c62c8c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a091b0-67d1-7763-94da-239de0f8db10" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091b0-67d1-7467-a6e9-3475c62c8c8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_01a091b0-67d1-7274-95c7-73e772e1ecc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StandbyLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a091b0-67d1-7467-a6e9-3475c62c8c8e" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_01a091b0-67d1-7274-95c7-73e772e1ecc2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-2c99-7ca0-9de0-e5154945b2dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7390-815b-3c1b59b73605" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-2c99-7ca0-9de0-e5154945b2dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-2c99-7ca0-9de0-e5154945b2dd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-2c99-7ca0-9de0-e5154945b2dd" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-2c99-7ca0-9de0-e5154945b2dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-2c99-7130-bf45-1228d6c17f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-2c99-7ca0-9de0-e5154945b2dd" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-2c99-7130-bf45-1228d6c17f0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_01a15f62-e25d-7923-aa13-ee75f69ad71b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-2c99-7130-bf45-1228d6c17f0a" xlink:to="loc_us-gaap_SubsequentEventMember_01a15f62-e25d-7923-aa13-ee75f69ad71b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a091b0-67d1-7f1a-8c3b-af2c7872c38b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-67d1-7711-8534-24dc64e20726" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a091b0-67d1-7f1a-8c3b-af2c7872c38b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_01a091b0-67d1-79b0-863b-02ff52e2d173" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-67d1-7711-8534-24dc64e20726" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_01a091b0-67d1-79b0-863b-02ff52e2d173" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_01a091b0-67d1-7731-b6a1-6bbb1bc04f17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-67d1-7711-8534-24dc64e20726" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_01a091b0-67d1-7731-b6a1-6bbb1bc04f17" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtSeniorNotesDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtSeniorNotesDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtSeniorNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a091b0-fabf-7f20-bb22-abdf498aa4be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a091b0-fabf-7f20-bb22-abdf498aa4be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-7f20-bb22-abdf498aa4be_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a091b0-fabf-7f20-bb22-abdf498aa4be" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-7f20-bb22-abdf498aa4be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a091b0-fabf-7f20-bb22-abdf498aa4be" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FourPointFivePercentSeniorNotesMember_01a091b0-fabf-7530-8b55-b85003cec5d4" xlink:href="mtz-20260930.xsd#mtz_FourPointFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:to="loc_mtz_FourPointFivePercentSeniorNotesMember_01a091b0-fabf-7530-8b55-b85003cec5d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FivePointNinePercentSeniorNotesMember_01a091b0-fabf-751e-9ee6-500e2c5d12dc" xlink:href="mtz-20260930.xsd#mtz_FivePointNinePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:to="loc_mtz_FivePointNinePercentSeniorNotesMember_01a091b0-fabf-751e-9ee6-500e2c5d12dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a091b0-fabf-7d31-b600-7d23414b24f6" xlink:href="mtz-20260930.xsd#mtz_SixPointSixTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:to="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a091b0-fabf-7d31-b600-7d23414b24f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A5.850SeniorNotesMember_01a091b0-fabf-7df4-9859-22d2d3b71cdb" xlink:href="mtz-20260930.xsd#mtz_A5.850SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:to="loc_mtz_A5.850SeniorNotesMember_01a091b0-fabf-7df4-9859-22d2d3b71cdb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025TermLoanFacilityMember_01a091b0-fabf-7262-ba6a-f3f268db4825" xlink:href="mtz-20260930.xsd#mtz_A2025TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a091b0-fabf-790f-be7d-e268791fa0d2" xlink:to="loc_mtz_A2025TermLoanFacilityMember_01a091b0-fabf-7262-ba6a-f3f268db4825" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-fabf-72ba-8b5a-d45e9872b7ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-fabf-72ba-8b5a-d45e9872b7ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-72ba-8b5a-d45e9872b7ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-fabf-72ba-8b5a-d45e9872b7ca" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-72ba-8b5a-d45e9872b7ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-75ec-9f3c-6375af16d84c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a091b0-fabf-72ba-8b5a-d45e9872b7ca" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-75ec-9f3c-6375af16d84c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_01a091b0-fabf-72da-93fd-0def351a1bc0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-75ec-9f3c-6375af16d84c" xlink:to="loc_us-gaap_SeniorNotesMember_01a091b0-fabf-72da-93fd-0def351a1bc0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_01a091b0-fabf-7256-961f-2a7deaf512b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a091b0-fabf-75ec-9f3c-6375af16d84c" xlink:to="loc_us-gaap_LineOfCreditMember_01a091b0-fabf-7256-961f-2a7deaf512b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a091b0-fabf-7f73-a80c-526775fd84d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:to="loc_us-gaap_CreditFacilityAxis_01a091b0-fabf-7f73-a80c-526775fd84d4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091b0-fabf-7f73-a80c-526775fd84d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091b0-fabf-7f73-a80c-526775fd84d4" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091b0-fabf-7f73-a80c-526775fd84d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a091b0-fabf-7d1c-b13f-96f33b4243ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a091b0-fabf-7f73-a80c-526775fd84d4" xlink:to="loc_us-gaap_CreditFacilityDomain_01a091b0-fabf-7d1c-b13f-96f33b4243ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_01a091b0-fabf-75f2-8244-67a64293632c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a091b0-fabf-7d1c-b13f-96f33b4243ad" xlink:to="loc_us-gaap_UnsecuredDebtMember_01a091b0-fabf-75f2-8244-67a64293632c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-5250-7c98-b91e-5a9b4fec2fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7041-964c-5b66db29bb97" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-5250-7c98-b91e-5a9b4fec2fe9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-5250-7c98-b91e-5a9b4fec2fe9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-5250-7c98-b91e-5a9b4fec2fe9" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-5250-7c98-b91e-5a9b4fec2fe9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-5250-7956-a51c-cf02c9d40863" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_01a15f56-5250-7c98-b91e-5a9b4fec2fe9" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-5250-7956-a51c-cf02c9d40863" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_01a15f56-5250-7ac5-b98c-2ec08370fcf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_01a15f56-5250-7956-a51c-cf02c9d40863" xlink:to="loc_us-gaap_SubsequentEventMember_01a15f56-5250-7ac5-b98c-2ec08370fcf0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a091b0-fabf-7793-8a2d-9b101eaccfdb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_01a091b0-fabf-7793-8a2d-9b101eaccfdb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_01a091b0-fabf-76ff-aea0-db78e99b2a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_SeniorNotes_01a091b0-fabf-76ff-aea0-db78e99b2a2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_01a091b0-fabf-76d9-ad8d-8416d4bbc178" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_01a091b0-fabf-76d9-ad8d-8416d4bbc178" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_01a15f4f-4917-7058-bed0-f436d3043912" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRepurchasedFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_01a15f4f-4917-7058-bed0-f436d3043912" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_01a091b0-fabf-7b98-9314-654569f2992e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_01a091b0-fabf-7b98-9314-654569f2992e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_01a091b0-fabf-7a0b-bb32-7711f51ae167" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_RepaymentsOfDebt_01a091b0-fabf-7a0b-bb32-7711f51ae167" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_01a091b0-fabf-70ea-ae1b-d169da562d21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_01a091b0-fabf-70ea-ae1b-d169da562d21" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a15f56-5250-7d9a-8605-52d11b6f1ebf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a091b0-fabf-70ef-b5bd-71573d63095a" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_01a15f56-5250-7d9a-8605-52d11b6f1ebf" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/Debt2025TermLoanFacilityDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#Debt2025TermLoanFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/Debt2025TermLoanFacilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7f06-ae79-13ac3dc48ef1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7f06-ae79-13ac3dc48ef1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7a02-8924-a4951a4c7ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7f06-ae79-13ac3dc48ef1" xlink:to="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7a02-8924-a4951a4c7ad2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7a02-8924-a4951a4c7ad2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7a02-8924-a4951a4c7ad2" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7a02-8924-a4951a4c7ad2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7442-965c-034599b979bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7a02-8924-a4951a4c7ad2" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7442-965c-034599b979bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_01a00fe2-03cc-7dec-b1bf-0e1fc0ed78a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7442-965c-034599b979bb" xlink:to="loc_us-gaap_UnsecuredDebtMember_01a00fe2-03cc-7dec-b1bf-0e1fc0ed78a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableMember_01a00fe2-03cc-7c98-9633-e29c057d75e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansPayableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7442-965c-034599b979bb" xlink:to="loc_us-gaap_LoansPayableMember_01a00fe2-03cc-7c98-9633-e29c057d75e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-784f-9f86-2e8b7ca647da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7f06-ae79-13ac3dc48ef1" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-784f-9f86-2e8b7ca647da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-784f-9f86-2e8b7ca647da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-784f-9f86-2e8b7ca647da" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-784f-9f86-2e8b7ca647da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a61-9897-37ac035644a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-784f-9f86-2e8b7ca647da" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a61-9897-37ac035644a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025TermLoanFacilityMember_01a00fe2-03cc-7ffa-a46e-fc476a716d61" xlink:href="mtz-20260930.xsd#mtz_A2025TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7a61-9897-37ac035644a2" xlink:to="loc_mtz_A2025TermLoanFacilityMember_01a00fe2-03cc-7ffa-a46e-fc476a716d61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7a18-94a1-639dcdf6255c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7f06-ae79-13ac3dc48ef1" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7a18-94a1-639dcdf6255c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7a18-94a1-639dcdf6255c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7a18-94a1-639dcdf6255c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7a18-94a1-639dcdf6255c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-74fc-9919-c5c800d27f93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-7a18-94a1-639dcdf6255c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-74fc-9919-c5c800d27f93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_01a00fe2-03cc-7225-b38c-97ebf569ff86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-74fc-9919-c5c800d27f93" xlink:to="loc_us-gaap_LineOfCreditMember_01a00fe2-03cc-7225-b38c-97ebf569ff86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticLineOfCreditMember_01a00fe2-03cc-70c9-8fff-dfb28df614dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DomesticLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-74fc-9919-c5c800d27f93" xlink:to="loc_us-gaap_DomesticLineOfCreditMember_01a00fe2-03cc-70c9-8fff-dfb28df614dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_01a15f51-d547-7f1a-b525-b50af939e643" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:to="loc_us-gaap_RepaymentsOfDebt_01a15f51-d547-7f1a-b525-b50af939e643" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_01a00fe2-03cc-70c8-95c9-91652481ada8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_01a00fe2-03cc-70c8-95c9-91652481ada8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_01a00fe2-03cc-771a-abf6-c8cd7aa27a81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_01a00fe2-03cc-771a-abf6-c8cd7aa27a81" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_01a00fe2-03cc-7d0f-828b-da0dea62b8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-726e-932b-c1c5b229de33" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_01a00fe2-03cc-7d0f-828b-da0dea62b8fd" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/Debt2026TermLoanFacilityDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#Debt2026TermLoanFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/Debt2026TermLoanFacilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7f93-aead-631932610de6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7f93-aead-631932610de6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7f93-aead-631932610de6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7f93-aead-631932610de6" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7f93-aead-631932610de6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7959-8277-bd5eb0af8ac0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a00fe2-03cc-7f93-aead-631932610de6" xlink:to="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7959-8277-bd5eb0af8ac0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_01a00fe2-03cc-7b6b-8e8c-bde9d360fae8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a00fe2-03cc-7959-8277-bd5eb0af8ac0" xlink:to="loc_us-gaap_UnsecuredDebtMember_01a00fe2-03cc-7b6b-8e8c-bde9d360fae8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-77ca-befc-845e69ee1475" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-77ca-befc-845e69ee1475" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-77ca-befc-845e69ee1475_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-77ca-befc-845e69ee1475" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-77ca-befc-845e69ee1475_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7070-bf7c-78657cc2042e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a00fe2-03cc-77ca-befc-845e69ee1475" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7070-bf7c-78657cc2042e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026TermLoanFacilityMember_01a00fe2-03cc-7080-8eae-1cdc0e3df397" xlink:href="mtz-20260930.xsd#mtz_A2026TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a00fe2-03cc-7070-bf7c-78657cc2042e" xlink:to="loc_mtz_A2026TermLoanFacilityMember_01a00fe2-03cc-7080-8eae-1cdc0e3df397" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7a16-a0f5-c2c6e7084396" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a00fe2-03cc-71e3-b0f8-a17ecb01ba2a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7a16-a0f5-c2c6e7084396" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_01a00fe2-03cc-78b6-9a6d-b9032732b833" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a00fe2-03cc-7a16-a0f5-c2c6e7084396" xlink:to="loc_us-gaap_LineOfCreditMember_01a00fe2-03cc-78b6-9a6d-b9032732b833" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheAxis_01a00fe2-03cc-713e-a66b-2480bcbb397c" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_mtz_DebtInstrumentTrancheAxis_01a00fe2-03cc-713e-a66b-2480bcbb397c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-713e-a66b-2480bcbb397c_default" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtz_DebtInstrumentTrancheAxis_01a00fe2-03cc-713e-a66b-2480bcbb397c" xlink:to="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-713e-a66b-2480bcbb397c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-7ff9-8a4a-c37f903c86b7" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentTrancheDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtz_DebtInstrumentTrancheAxis_01a00fe2-03cc-713e-a66b-2480bcbb397c" xlink:to="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-7ff9-8a4a-c37f903c86b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentThreeYearTrancheMember_01a00fe2-03cc-725b-80e6-9375e1062516" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentThreeYearTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-7ff9-8a4a-c37f903c86b7" xlink:to="loc_mtz_DebtInstrumentThreeYearTrancheMember_01a00fe2-03cc-725b-80e6-9375e1062516" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentFourYearTrancheMember_01a00fe2-03cc-7bfd-916a-b11c0167c7ab" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentFourYearTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtInstrumentTrancheDomain_01a00fe2-03cc-7ff9-8a4a-c37f903c86b7" xlink:to="loc_mtz_DebtInstrumentFourYearTrancheMember_01a00fe2-03cc-7bfd-916a-b11c0167c7ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtCovenantAxis_01a00fe2-03cc-742b-b7d9-7396e34e0996" xlink:href="mtz-20260930.xsd#mtz_DebtCovenantAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_mtz_DebtCovenantAxis_01a00fe2-03cc-742b-b7d9-7396e34e0996" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-742b-b7d9-7396e34e0996_default" xlink:href="mtz-20260930.xsd#mtz_DebtCovenantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtz_DebtCovenantAxis_01a00fe2-03cc-742b-b7d9-7396e34e0996" xlink:to="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-742b-b7d9-7396e34e0996_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-7f38-b4e2-b9734c60af8f" xlink:href="mtz-20260930.xsd#mtz_DebtCovenantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtz_DebtCovenantAxis_01a00fe2-03cc-742b-b7d9-7396e34e0996" xlink:to="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-7f38-b4e2-b9734c60af8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_Commencing2027Member_01a00fe2-03cc-76ab-a213-ecce00c1a47e" xlink:href="mtz-20260930.xsd#mtz_Commencing2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-7f38-b4e2-b9734c60af8f" xlink:to="loc_mtz_Commencing2027Member_01a00fe2-03cc-76ab-a213-ecce00c1a47e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_Commencing2028Member_01a00fe2-03cc-7cb0-93b1-230beb91fc68" xlink:href="mtz-20260930.xsd#mtz_Commencing2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtz_DebtCovenantDomain_01a00fe2-03cc-7f38-b4e2-b9734c60af8f" xlink:to="loc_mtz_Commencing2028Member_01a00fe2-03cc-7cb0-93b1-230beb91fc68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-03cc-7c75-abd0-60d496398644" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_srt_RangeAxis_01a00fe2-03cc-7c75-abd0-60d496398644" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cc-7c75-abd0-60d496398644_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-03cc-7c75-abd0-60d496398644" xlink:to="loc_srt_RangeMember_01a00fe2-03cc-7c75-abd0-60d496398644_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cc-7c50-b992-4c60401e36f6" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-03cc-7c75-abd0-60d496398644" xlink:to="loc_srt_RangeMember_01a00fe2-03cc-7c50-b992-4c60401e36f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a00fe2-03cc-707b-9178-ea444232985d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cc-7c50-b992-4c60401e36f6" xlink:to="loc_srt_MinimumMember_01a00fe2-03cc-707b-9178-ea444232985d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-03cc-742a-8602-9bb28c15d788" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cc-7c50-b992-4c60401e36f6" xlink:to="loc_srt_MaximumMember_01a00fe2-03cc-742a-8602-9bb28c15d788" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a00fe2-03cc-7940-af24-3fa32393861a" xlink:to="loc_us-gaap_VariableRateAxis_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e" xlink:to="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-73d2-882c-d0fe93ad55e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_01a00fe2-03cc-72fb-9df1-1fb7d6c2b17e" xlink:to="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-73d2-882c-d0fe93ad55e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_01a00fe2-03cc-7f10-acb8-2c902f6e6c16" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-73d2-882c-d0fe93ad55e9" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_01a00fe2-03cc-7f10-acb8-2c902f6e6c16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_01a00fe2-03cc-7105-92f9-1cd55fec0221" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_01a00fe2-03cc-73d2-882c-d0fe93ad55e9" xlink:to="loc_us-gaap_BaseRateMember_01a00fe2-03cc-7105-92f9-1cd55fec0221" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_01a00fe2-03cc-7a43-96a7-cafa94413d8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_01a00fe2-03cc-7a43-96a7-cafa94413d8e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_01a00fe2-03cc-7e0e-bb34-8476179995cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentTerm_01a00fe2-03cc-7e0e-bb34-8476179995cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPayment_01a00fe2-03cc-7ea2-aba9-3d06b7c99a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentPeriodicPayment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_01a00fe2-03cc-7ea2-aba9-3d06b7c99a1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_01a00fe2-03cc-733d-8827-d10fcf05cf3c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_01a00fe2-03cc-733d-8827-d10fcf05cf3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentCovenantLeverageRatioMaximum_01a00fe2-03cc-7ed6-896a-35f2bc2343e7" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentCovenantLeverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_mtz_DebtInstrumentCovenantLeverageRatioMaximum_01a00fe2-03cc-7ed6-896a-35f2bc2343e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentAcquisitionAdjustmentMaximum_01a00fe2-03cc-73a1-84af-4b837ee4f12a" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentAcquisitionAdjustmentMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_mtz_DebtInstrumentAcquisitionAdjustmentMaximum_01a00fe2-03cc-73a1-84af-4b837ee4f12a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_DebtInstrumentCovenantConsolidatedLeverageRatioMaximum_01a00fe2-03cc-7cd1-b7d9-8b68e976c637" xlink:href="mtz-20260930.xsd#mtz_DebtInstrumentCovenantConsolidatedLeverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_mtz_DebtInstrumentCovenantConsolidatedLeverageRatioMaximum_01a00fe2-03cc-7cd1-b7d9-8b68e976c637" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_01a17a3c-8b6c-7e4c-8f29-ad49de7be17e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a00fe2-03cc-7d27-91e3-d1f9a5667a07" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_01a17a3c-8b6c-7e4c-8f29-ad49de7be17e" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtAdditionalInformationNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtAdditionalInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtAdditionalInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a06396-d9ff-7a4a-a828-66319ce3e42d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a06396-d9ff-799b-91ca-ef3dcd85d945" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a06396-d9ff-7a4a-a828-66319ce3e42d" xlink:to="loc_us-gaap_DebtInstrumentTable_01a06396-d9ff-799b-91ca-ef3dcd85d945" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a06396-d9ff-75e2-9f51-6a7cfe83d750" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a06396-d9ff-799b-91ca-ef3dcd85d945" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a06396-d9ff-75e2-9f51-6a7cfe83d750" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-75e2-9f51-6a7cfe83d750_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a06396-d9ff-75e2-9f51-6a7cfe83d750" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-75e2-9f51-6a7cfe83d750_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-7cdf-9060-b30a338b5d9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a06396-d9ff-75e2-9f51-6a7cfe83d750" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-7cdf-9060-b30a338b5d9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CreditFacilityAmendment2026TermLoanFacilityAndThe5.850SeniorNotesOfferingMember_01a178b7-5d91-71bd-ad32-f7c320f5f61f" xlink:href="mtz-20260930.xsd#mtz_CreditFacilityAmendment2026TermLoanFacilityAndThe5.850SeniorNotesOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-7cdf-9060-b30a338b5d9c" xlink:to="loc_mtz_CreditFacilityAmendment2026TermLoanFacilityAndThe5.850SeniorNotesOfferingMember_01a178b7-5d91-71bd-ad32-f7c320f5f61f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A5.850SeniorNotesMember_01a06396-d9ff-754e-b650-a239566fdb4c" xlink:href="mtz-20260930.xsd#mtz_A5.850SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a06396-d9ff-7cdf-9060-b30a338b5d9c" xlink:to="loc_mtz_A5.850SeniorNotesMember_01a06396-d9ff-754e-b650-a239566fdb4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a06396-d9ff-7ac8-b68e-189e8dccf4e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a06396-d9ff-799b-91ca-ef3dcd85d945" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a06396-d9ff-7ac8-b68e-189e8dccf4e3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a06396-d9ff-7ac8-b68e-189e8dccf4e3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a06396-d9ff-7ac8-b68e-189e8dccf4e3" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a06396-d9ff-7ac8-b68e-189e8dccf4e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a06396-d9ff-7b3d-9709-41d64879f82a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a06396-d9ff-7ac8-b68e-189e8dccf4e3" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a06396-d9ff-7b3d-9709-41d64879f82a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_01a06396-d9ff-7b41-b298-05897fb11d51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a06396-d9ff-7b3d-9709-41d64879f82a" xlink:to="loc_us-gaap_SeniorNotesMember_01a06396-d9ff-7b41-b298-05897fb11d51" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_01a06396-d9ff-722d-b695-0f94cfc93b14" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a06396-d9ff-7a4a-a828-66319ce3e42d" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_01a06396-d9ff-722d-b695-0f94cfc93b14" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_01a1690b-a9cf-72e2-93bf-f60a0ecf0b4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a06396-d9ff-7a4a-a828-66319ce3e42d" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_01a1690b-a9cf-72e2-93bf-f60a0ecf0b4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_01a06396-d9ff-7df3-9834-67521d34a086" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a06396-d9ff-7a4a-a828-66319ce3e42d" xlink:to="loc_us-gaap_InterestPayableCurrent_01a06396-d9ff-7df3-9834-67521d34a086" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/DebtLossonExtinguishmentofDebtDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#DebtLossonExtinguishmentofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/DebtLossonExtinguishmentofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_01a091b2-9cd1-7ce3-a848-eca44f7557ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:to="loc_us-gaap_DebtInstrumentTable_01a091b2-9cd1-7ce3-a848-eca44f7557ee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_01a15f52-e914-789c-befe-b853267c1ad9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a091b2-9cd1-7ce3-a848-eca44f7557ee" xlink:to="loc_us-gaap_CreditFacilityAxis_01a15f52-e914-789c-befe-b853267c1ad9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a15f52-e914-789c-befe-b853267c1ad9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_01a15f52-e914-789c-befe-b853267c1ad9" xlink:to="loc_us-gaap_CreditFacilityDomain_01a15f52-e914-789c-befe-b853267c1ad9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_01a15f52-e914-7c6e-ba1a-20c8536576f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_01a15f52-e914-789c-befe-b853267c1ad9" xlink:to="loc_us-gaap_CreditFacilityDomain_01a15f52-e914-7c6e-ba1a-20c8536576f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_01a15f52-e914-7e23-a612-4fd05a91fd4c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_01a15f52-e914-7c6e-ba1a-20c8536576f6" xlink:to="loc_us-gaap_UnsecuredDebtMember_01a15f52-e914-7e23-a612-4fd05a91fd4c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_01a15f52-e914-7550-ada6-5ff88afe6cd1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a091b2-9cd1-7ce3-a848-eca44f7557ee" xlink:to="loc_us-gaap_DebtInstrumentAxis_01a15f52-e914-7550-ada6-5ff88afe6cd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7550-ada6-5ff88afe6cd1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a15f52-e914-7550-ada6-5ff88afe6cd1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7550-ada6-5ff88afe6cd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7c37-84cf-58c361219072" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_01a15f52-e914-7550-ada6-5ff88afe6cd1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7c37-84cf-58c361219072" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a15f52-e914-710e-9e8c-732c5ee8c77f" xlink:href="mtz-20260930.xsd#mtz_SixPointSixTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7c37-84cf-58c361219072" xlink:to="loc_mtz_SixPointSixTwoFivePercentSeniorNotesMember_01a15f52-e914-710e-9e8c-732c5ee8c77f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025TermLoanFacilityMember_01a15f52-e914-73ba-9567-612ee7192067" xlink:href="mtz-20260930.xsd#mtz_A2025TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_01a15f52-e914-7c37-84cf-58c361219072" xlink:to="loc_mtz_A2025TermLoanFacilityMember_01a15f52-e914-73ba-9567-612ee7192067" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_01a15f52-e914-7b15-93f4-f80832390b85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_01a091b2-9cd1-7ce3-a848-eca44f7557ee" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_01a15f52-e914-7b15-93f4-f80832390b85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a15f52-e914-7b15-93f4-f80832390b85_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a15f52-e914-7b15-93f4-f80832390b85" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a15f52-e914-7b15-93f4-f80832390b85_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_01a15f52-e914-7bdc-bd11-482d6ad8b084" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_01a15f52-e914-7b15-93f4-f80832390b85" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_01a15f52-e914-7bdc-bd11-482d6ad8b084" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_01a15f52-e914-7d78-acf4-423a6fb304fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_01a15f52-e914-7bdc-bd11-482d6ad8b084" xlink:to="loc_us-gaap_LineOfCreditMember_01a15f52-e914-7d78-acf4-423a6fb304fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_01a15f52-e914-7960-9575-b276826b2f6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_01a15f52-e914-7960-9575-b276826b2f6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_01a15f52-e914-707a-9b0c-96f8af08a54d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRepurchasedFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:to="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_01a15f52-e914-707a-9b0c-96f8af08a54d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_01a15f52-e914-7f57-815a-e8353599fe68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:to="loc_us-gaap_RepaymentsOfDebt_01a15f52-e914-7f57-815a-e8353599fe68" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_01a15f52-e914-7df7-931b-06797d854066" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_01a15f52-e914-74a2-ac32-d84ed6eb1a0a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_01a15f52-e914-7df7-931b-06797d854066" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/LeaseObligationsNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#LeaseObligationsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/LeaseObligationsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_01a00fe2-03cc-79fc-b9ba-ffefbd81702a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_01a00fe2-03cc-79fc-b9ba-ffefbd81702a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-03cc-72b7-b401-52fb3aac7b9b" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_01a00fe2-03cc-79fc-b9ba-ffefbd81702a" xlink:to="loc_srt_RangeAxis_01a00fe2-03cc-72b7-b401-52fb3aac7b9b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cc-72b7-b401-52fb3aac7b9b_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-03cc-72b7-b401-52fb3aac7b9b" xlink:to="loc_srt_RangeMember_01a00fe2-03cc-72b7-b401-52fb3aac7b9b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-03cc-7f86-8cba-24b1d9d8ac07" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-03cc-72b7-b401-52fb3aac7b9b" xlink:to="loc_srt_RangeMember_01a00fe2-03cc-7f86-8cba-24b1d9d8ac07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a00fe2-03cc-7754-a745-c10bff98e5d8" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cc-7f86-8cba-24b1d9d8ac07" xlink:to="loc_srt_MinimumMember_01a00fe2-03cc-7754-a745-c10bff98e5d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-03cc-7414-9a85-c4c619e4cba3" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-03cc-7f86-8cba-24b1d9d8ac07" xlink:to="loc_srt_MaximumMember_01a00fe2-03cc-7414-9a85-c4c619e4cba3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermAxis_01a00fe2-03cc-760e-8dc3-9c214643ddd2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_01a00fe2-03cc-79fc-b9ba-ffefbd81702a" xlink:to="loc_us-gaap_LeaseContractualTermAxis_01a00fe2-03cc-760e-8dc3-9c214643ddd2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-760e-8dc3-9c214643ddd2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LeaseContractualTermAxis_01a00fe2-03cc-760e-8dc3-9c214643ddd2" xlink:to="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-760e-8dc3-9c214643ddd2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-7d27-bbf2-17c37840a104" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LeaseContractualTermAxis_01a00fe2-03cc-760e-8dc3-9c214643ddd2" xlink:to="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-7d27-bbf2-17c37840a104" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EquipmentLeasesMember_01a00fe2-03cc-7f2c-acfd-da23830d97fb" xlink:href="mtz-20260930.xsd#mtz_EquipmentLeasesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-7d27-bbf2-17c37840a104" xlink:to="loc_mtz_EquipmentLeasesMember_01a00fe2-03cc-7f2c-acfd-da23830d97fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FacilityLeasesMember_01a00fe2-03cc-708f-8976-96919a7c85de" xlink:href="mtz-20260930.xsd#mtz_FacilityLeasesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_01a00fe2-03cc-7d27-bbf2-17c37840a104" xlink:to="loc_mtz_FacilityLeasesMember_01a00fe2-03cc-708f-8976-96919a7c85de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a0b036-60d8-73d0-a690-2d7cca0b214b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_01a00fe2-03cc-79fc-b9ba-ffefbd81702a" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a0b036-60d8-73d0-a690-2d7cca0b214b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0b036-60d8-73d0-a690-2d7cca0b214b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a0b036-60d8-73d0-a690-2d7cca0b214b" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0b036-60d8-73d0-a690-2d7cca0b214b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0b036-60d8-726a-93fa-af8e8511103a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a0b036-60d8-73d0-a690-2d7cca0b214b" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0b036-60d8-726a-93fa-af8e8511103a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_AllAcquisitionsMember_01a17f8e-d3ad-7808-976c-9ef16f885e97" xlink:href="mtz-20260930.xsd#mtz_AllAcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0b036-60d8-726a-93fa-af8e8511103a" xlink:to="loc_mtz_AllAcquisitionsMember_01a17f8e-d3ad-7808-976c-9ef16f885e97" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_LesseeLeaseTermOfContract_01a00fe2-03cc-714f-920a-bbe2c65538f5" xlink:href="mtz-20260930.xsd#mtz_LesseeLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_mtz_LesseeLeaseTermOfContract_01a00fe2-03cc-714f-920a-bbe2c65538f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_LesseeLeaseRenewalTerm_01a00fe2-03cc-737a-bb1c-b2cc8d990a59" xlink:href="mtz-20260930.xsd#mtz_LesseeLeaseRenewalTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_mtz_LesseeLeaseRenewalTerm_01a00fe2-03cc-737a-bb1c-b2cc8d990a59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_01a00fe2-03cc-7d5d-815e-7cf4bd450278" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_01a00fe2-03cc-7d5d-815e-7cf4bd450278" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_01a00fe2-03cc-7c2d-baf7-023b69ff5238" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_01a00fe2-03cc-7c2d-baf7-023b69ff5238" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_01a00fe2-03cc-71ea-87fd-2610fe07e2e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_01a00fe2-03cc-71ea-87fd-2610fe07e2e8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability_01a00fe2-03cc-7ca6-956e-68dd23084446" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability_01a00fe2-03cc-7ca6-956e-68dd23084446" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_01a00fe2-03cc-7f6e-a25b-3f23c4ed02ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_01a00fe2-03cc-7f6e-a25b-3f23c4ed02ed" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_01a00fe2-03cc-79c1-abe6-271025666a03" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_OperatingLeaseCost_01a00fe2-03cc-79c1-abe6-271025666a03" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_01a00fe2-03cc-7aae-a81a-545130108114" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_VariableLeaseCost_01a00fe2-03cc-7aae-a81a-545130108114" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_01a00fe2-03cc-7f0e-9dfb-6def7436b091" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_01a00fe2-03cc-7476-8b7b-ebc9ce9279c0" xlink:to="loc_us-gaap_ShortTermLeaseCost_01a00fe2-03cc-7f0e-9dfb-6def7436b091" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/StockholdersEquityNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#StockholdersEquityNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-79d6-af12-a92cb85da7bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-79d6-af12-a92cb85da7bb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_01a00fe2-0464-745a-9e86-78d96b5a4c87" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-79d6-af12-a92cb85da7bb" xlink:to="loc_srt_ShareRepurchaseProgramAxis_01a00fe2-0464-745a-9e86-78d96b5a4c87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-745a-9e86-78d96b5a4c87_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_01a00fe2-0464-745a-9e86-78d96b5a4c87" xlink:to="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-745a-9e86-78d96b5a4c87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-7c9c-b6d0-713cd98e7dc2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_01a00fe2-0464-745a-9e86-78d96b5a4c87" xlink:to="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-7c9c-b6d0-713cd98e7dc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_March2020ShareRepurchaseProgramMember_01a00fe2-0464-7e58-85d3-7165385ab6f2" xlink:href="mtz-20260930.xsd#mtz_March2020ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-7c9c-b6d0-713cd98e7dc2" xlink:to="loc_mtz_March2020ShareRepurchaseProgramMember_01a00fe2-0464-7e58-85d3-7165385ab6f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2025ShareRepurchasesProgramMember_01a00fe2-0464-72d9-8917-9ad4a2b6f465" xlink:href="mtz-20260930.xsd#mtz_A2025ShareRepurchasesProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_01a00fe2-0464-7c9c-b6d0-713cd98e7dc2" xlink:to="loc_mtz_A2025ShareRepurchasesProgramMember_01a00fe2-0464-72d9-8917-9ad4a2b6f465" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_01a0f301-b387-7cf3-ae88-7896140a1942" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-79d6-af12-a92cb85da7bb" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_01a0f301-b387-7cf3-ae88-7896140a1942" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0f301-b387-7cf3-ae88-7896140a1942_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a0f301-b387-7cf3-ae88-7896140a1942" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0f301-b387-7cf3-ae88-7896140a1942_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0f301-b387-7bbf-ba05-0f1144889958" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_01a0f301-b387-7cf3-ae88-7896140a1942" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0f301-b387-7bbf-ba05-0f1144889958" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_A2026AcquisitionsMember_01a0f301-b387-7b77-ab93-e931ecb253fc" xlink:href="mtz-20260930.xsd#mtz_A2026AcquisitionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_01a0f301-b387-7bbf-ba05-0f1144889958" xlink:to="loc_mtz_A2026AcquisitionsMember_01a0f301-b387-7b77-ab93-e931ecb253fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-0464-7547-9ace-c1fb22c96d6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_01a00fe2-0464-7547-9ace-c1fb22c96d6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_01a00fe2-0464-7bec-82d8-982ea4dddd03" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_01a00fe2-0464-7bec-82d8-982ea4dddd03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_01a00fe2-0464-7cff-b50f-b9618fffe744" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_01a00fe2-0464-7cff-b50f-b9618fffe744" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a043bb-6c8b-7d53-a756-6c5c6a210f07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_01a043bb-6c8b-7d53-a756-6c5c6a210f07" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued_01a043bb-bbef-791e-bb2e-6d92a99f89f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued_01a043bb-bbef-791e-bb2e-6d92a99f89f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_01a00fe2-0464-78ed-bb7b-ac9392c9c48e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_01a00fe2-0464-78ed-bb7b-ac9392c9c48e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_01a00fe2-0464-71a1-bf04-6c0ac9dc8dca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_01a00fe2-0464-71a1-bf04-6c0ac9dc8dca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_01a00fe2-0464-744f-b848-c09b4cb8c511" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_01a00fe2-0464-744f-b848-c09b4cb8c511" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EmployeeServiceShareBasedCompensationNetTaxBenefitDeficiencyFromVestingOfShareBasedPaymentAwards_01a00fe2-0464-7cc7-ad5a-ca18f1a192c6" xlink:href="mtz-20260930.xsd#mtz_EmployeeServiceShareBasedCompensationNetTaxBenefitDeficiencyFromVestingOfShareBasedPaymentAwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-70f5-8e9f-94a545068a71" xlink:to="loc_mtz_EmployeeServiceShareBasedCompensationNetTaxBenefitDeficiencyFromVestingOfShareBasedPaymentAwards_01a00fe2-0464-7cc7-ad5a-ca18f1a192c6" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/StockholdersEquityRestrictedSharesNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#StockholdersEquityRestrictedSharesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/StockholdersEquityRestrictedSharesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-7161-b3e0-88961fbb28ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7e0d-a585-e158d6530b61" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-7161-b3e0-88961fbb28ce" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7e0d-a585-e158d6530b61" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-728e-8d3e-1b10fe3a382a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7e0d-a585-e158d6530b61" xlink:to="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-728e-8d3e-1b10fe3a382a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-728e-8d3e-1b10fe3a382a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-728e-8d3e-1b10fe3a382a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-728e-8d3e-1b10fe3a382a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7267-81b7-b079fca891a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-728e-8d3e-1b10fe3a382a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7267-81b7-b079fca891a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_RestrictedStockAndRestrictedStockUnitsMember_01a00fe2-0464-7ed9-a885-f1332b432c15" xlink:href="mtz-20260930.xsd#mtz_RestrictedStockAndRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7267-81b7-b079fca891a6" xlink:to="loc_mtz_RestrictedStockAndRestrictedStockUnitsMember_01a00fe2-0464-7ed9-a885-f1332b432c15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_01a00fe2-0464-79eb-8ca6-1444a82da7f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-7161-b3e0-88961fbb28ce" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_01a00fe2-0464-79eb-8ca6-1444a82da7f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_01a00fe2-0464-797e-9b62-41fea79b7d06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-7161-b3e0-88961fbb28ce" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_01a00fe2-0464-797e-9b62-41fea79b7d06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_01a00fe2-0464-72c8-8d5a-aa56be621ffe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-7161-b3e0-88961fbb28ce" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_01a00fe2-0464-72c8-8d5a-aa56be621ffe" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/StockholdersEquityScheduleofActivityRestrictedSharesDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#StockholdersEquityScheduleofActivityRestrictedSharesDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/StockholdersEquityScheduleofActivityRestrictedSharesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-78c5-a4b5-e327f489b575" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7dbf-bfe9-b961cf8c2f63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-78c5-a4b5-e327f489b575" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7dbf-bfe9-b961cf8c2f63" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_01a00fe2-0464-7dbf-bfe9-b961cf8c2f63" xlink:to="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7231-8a8a-6a0138fe3dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_01a00fe2-0464-7dca-9b2b-6fa9fc6aaaa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7231-8a8a-6a0138fe3dcd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_RestrictedStockAndRestrictedStockUnitsMember_01a00fe2-0464-7a5f-8cdf-a9800f10902c" xlink:href="mtz-20260930.xsd#mtz_RestrictedStockAndRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7231-8a8a-6a0138fe3dcd" xlink:to="loc_mtz_RestrictedStockAndRestrictedStockUnitsMember_01a00fe2-0464-7a5f-8cdf-a9800f10902c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_01a00fe2-0464-79d7-938d-66658b5ca636" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_01a00fe2-0464-7231-8a8a-6a0138fe3dcd" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_01a00fe2-0464-79d7-938d-66658b5ca636" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-78c5-a4b5-e327f489b575" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_01a00fe2-0464-7574-bbff-05fb5b4c4ad9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_01a00fe2-0464-7574-bbff-05fb5b4c4ad9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_01a00fe2-0464-77b7-ba0b-a1957ac773b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_01a00fe2-0464-77b7-ba0b-a1957ac773b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_01a00fe2-0464-7e33-9abe-4ee861cb109d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_01a00fe2-0464-7e33-9abe-4ee861cb109d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_01a00fe2-0464-7314-b345-794406f77b72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_01a00fe2-0464-74e0-93a2-546ac76c387c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_01a00fe2-0464-7314-b345-794406f77b72" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_01a00fe2-0464-7fe8-a61d-fd103f2a2385" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_01a00fe2-0464-78c5-a4b5-e327f489b575" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_01a00fe2-0464-7929-a952-d23d1a87a244" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_01a00fe2-0464-7929-a952-d23d1a87a244" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_01a00fe2-0464-71da-9ff2-889ac6b95a3b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_01a00fe2-0464-71da-9ff2-889ac6b95a3b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_01a00fe2-0464-71c3-8b21-bdabaea9faf3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_01a00fe2-0464-71c3-8b21-bdabaea9faf3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_01a00fe2-0464-79f4-93c9-b891a38137c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_01a00fe2-0464-785c-b76b-7f7e95e740bf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_01a00fe2-0464-79f4-93c9-b891a38137c6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_01a00fe2-0464-7b82-b1cf-10a80eed0d6f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7f3a-b32e-e6e4e17b928e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7f3a-b32e-e6e4e17b928e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7f3a-b32e-e6e4e17b928e" xlink:to="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77d2-acbd-4cc20c3ef9fd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6f-a1a7-ec35e2c04d91" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77d2-acbd-4cc20c3ef9fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7891-a5a5-a23d8eb3ab6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77d2-acbd-4cc20c3ef9fd" xlink:to="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7891-a5a5-a23d8eb3ab6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7caf-81c9-b64dab74fd3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77d2-acbd-4cc20c3ef9fd" xlink:to="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7caf-81c9-b64dab74fd3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_01a00fe2-0464-75fa-8ef2-c96ca04fe25d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77d2-acbd-4cc20c3ef9fd" xlink:to="loc_us-gaap_IntersegmentEliminationMember_01a00fe2-0464-75fa-8ef2-c96ca04fe25d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7f3a-b32e-e6e4e17b928e" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7a61-bd7e-34f8a75fe3b4" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CommunicationsMember_01a00fe2-0464-7927-923b-e1aa746c68f9" xlink:href="mtz-20260930.xsd#mtz_CommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:to="loc_mtz_CommunicationsMember_01a00fe2-0464-7927-923b-e1aa746c68f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-71ff-999d-0e25b32c58fa" xlink:href="mtz-20260930.xsd#mtz_CleanEnergyAndInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:to="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-71ff-999d-0e25b32c58fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7435-80d5-c5eab5cef282" xlink:href="mtz-20260930.xsd#mtz_PowerDeliveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:to="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7435-80d5-c5eab5cef282" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-75c2-856d-07c007576bf3" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:to="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-75c2-856d-07c007576bf3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7723-8189-d04ee8f59464" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-79bf-82ec-8649abb4b66b" xlink:to="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7723-8189-d04ee8f59464" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a00fe2-0464-7125-87f6-b576decc18da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_us-gaap_Revenues_01a00fe2-0464-7125-87f6-b576decc18da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization_01a00fe2-0464-7c9c-88e5-e851c6dd6da7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization_01a00fe2-0464-7c9c-88e5-e851c6dd6da7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_01a00fe2-0464-7729-9f0e-c5e7d21ccd49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_01a00fe2-0464-7729-9f0e-c5e7d21ccd49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EBITDA_01a00fe2-0464-79d4-ae50-a95dba604eb3" xlink:href="mtz-20260930.xsd#mtz_EBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_mtz_EBITDA_01a00fe2-0464-79d4-ae50-a95dba604eb3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_01a00fe2-0464-75d9-bf7f-7c0f5d5b6269" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7586-b042-273088f2feda" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_01a00fe2-0464-75d9-bf7f-7c0f5d5b6269" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationReconciliationofConsolidatedIncomebeforeIncomeTaxestoEBITDADetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationReconciliationofConsolidatedIncomebeforeIncomeTaxestoEBITDADetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationReconciliationofConsolidatedIncomebeforeIncomeTaxestoEBITDADetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a15f5b-b61d-706a-a3c5-066b23af6e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a15f5b-b61d-706a-a3c5-066b23af6e8f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a15f5b-b61d-706a-a3c5-066b23af6e8f" xlink:to="loc_srt_ConsolidationItemsAxis_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a" xlink:to="loc_srt_ConsolidationItemsDomain_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a15f5b-b61d-76ae-ab74-dcd28ee3efab" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_01a15f5b-b61d-7fae-8ca6-ecf1f0e3251a" xlink:to="loc_srt_ConsolidationItemsDomain_01a15f5b-b61d-76ae-ab74-dcd28ee3efab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_01a15f5b-b61d-7f32-936d-5df540abd2b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a15f5b-b61d-76ae-ab74-dcd28ee3efab" xlink:to="loc_us-gaap_OperatingSegmentsMember_01a15f5b-b61d-7f32-936d-5df540abd2b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EBITDA_01a15f5b-b61d-7365-a428-fb65200fc40f" xlink:href="mtz-20260930.xsd#mtz_EBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_mtz_EBITDA_01a15f5b-b61d-7365-a428-fb65200fc40f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_01a15f5b-b61d-7c91-b36b-0885e1befc33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_us-gaap_InterestExpenseOperating_01a15f5b-b61d-7c91-b36b-0885e1befc33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSoldDepreciation_01a15f5b-b61d-7dc9-a986-093a6f4c1668" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSoldDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSoldDepreciation_01a15f5b-b61d-7dc9-a986-093a6f4c1668" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSoldAmortization_01a15f5b-b61d-79d6-89f3-f2fe13e5539d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSoldAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSoldAmortization_01a15f5b-b61d-79d6-89f3-f2fe13e5539d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CorporateEBITDA_01a15f5b-b61d-7f99-9bd0-4a5274ef07e5" xlink:href="mtz-20260930.xsd#mtz_CorporateEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_mtz_CorporateEBITDA_01a15f5b-b61d-7f99-9bd0-4a5274ef07e5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a15f5b-b61d-7f53-8c1d-84c0df673730" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a15f5b-b61d-70a6-b868-8c6e5ccae879" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a15f5b-b61d-7f53-8c1d-84c0df673730" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDepreciationandAmortizationDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDepreciationandAmortizationDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentDepreciationandAmortizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7a40-99ed-d8487f347a3b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-73c8-923c-a6fd08ac06a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7a40-99ed-d8487f347a3b" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-73c8-923c-a6fd08ac06a1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-73c8-923c-a6fd08ac06a1" xlink:to="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-74cc-9a9a-7bda88d0cf15" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-7c6e-b1b7-3dc6eeffd677" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-74cc-9a9a-7bda88d0cf15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7830-9ca6-8476c3fe80f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-74cc-9a9a-7bda88d0cf15" xlink:to="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7830-9ca6-8476c3fe80f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-74d0-a197-993228b55a87" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-74cc-9a9a-7bda88d0cf15" xlink:to="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-74d0-a197-993228b55a87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7798-ade1-67d5620b1137" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-73c8-923c-a6fd08ac06a1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7798-ade1-67d5620b1137" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-7798-ade1-67d5620b1137_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7798-ade1-67d5620b1137" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-7798-ade1-67d5620b1137_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7798-ade1-67d5620b1137" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CommunicationsMember_01a00fe2-0464-7552-a9bb-5b0338a89c64" xlink:href="mtz-20260930.xsd#mtz_CommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_mtz_CommunicationsMember_01a00fe2-0464-7552-a9bb-5b0338a89c64" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-75aa-b9ce-9277f84fbb5e" xlink:href="mtz-20260930.xsd#mtz_CleanEnergyAndInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-75aa-b9ce-9277f84fbb5e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7f0d-8ebf-51c5686cfa68" xlink:href="mtz-20260930.xsd#mtz_PowerDeliveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7f0d-8ebf-51c5686cfa68" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-7075-8152-4656813a2e21" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-7075-8152-4656813a2e21" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-79fb-8463-b674f776708a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-79fb-8463-b674f776708a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_01a00fe2-0464-74a2-849a-544c303dd161" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-77fd-8be1-306bb7ac7146" xlink:to="loc_us-gaap_CorporateMember_01a00fe2-0464-74a2-849a-544c303dd161" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortizationAbstract_01a00fe2-0464-77a3-9d1f-34cc21e7c921" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAndAmortizationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-7a40-99ed-d8487f347a3b" xlink:to="loc_us-gaap_DepreciationAndAmortizationAbstract_01a00fe2-0464-77a3-9d1f-34cc21e7c921" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_01a00fe2-0464-7cac-a51b-6810a7d5374b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DepreciationAndAmortizationAbstract_01a00fe2-0464-77a3-9d1f-34cc21e7c921" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_01a00fe2-0464-7cac-a51b-6810a7d5374b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentAssetsDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-746e-8d7f-4f7905fbdee0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7580-ad1e-28b5fb10c117" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-746e-8d7f-4f7905fbdee0" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7580-ad1e-28b5fb10c117" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-72ce-b910-2a0233adcc01" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7580-ad1e-28b5fb10c117" xlink:to="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-72ce-b910-2a0233adcc01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-72ce-b910-2a0233adcc01_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-72ce-b910-2a0233adcc01" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-72ce-b910-2a0233adcc01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77b5-a160-7883928c6932" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-72ce-b910-2a0233adcc01" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77b5-a160-7883928c6932" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7591-83b9-d71e10604328" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77b5-a160-7883928c6932" xlink:to="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7591-83b9-d71e10604328" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7138-a191-7550f0c34150" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-77b5-a160-7883928c6932" xlink:to="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7138-a191-7550f0c34150" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-702c-a466-29440d379db0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7580-ad1e-28b5fb10c117" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-702c-a466-29440d379db0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-702c-a466-29440d379db0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-702c-a466-29440d379db0" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-702c-a466-29440d379db0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-702c-a466-29440d379db0" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CommunicationsMember_01a00fe2-0464-74d0-a0e9-b6b9089abee0" xlink:href="mtz-20260930.xsd#mtz_CommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_mtz_CommunicationsMember_01a00fe2-0464-74d0-a0e9-b6b9089abee0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-7d5c-b164-1b8228a5a023" xlink:href="mtz-20260930.xsd#mtz_CleanEnergyAndInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-7d5c-b164-1b8228a5a023" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PowerDeliveryMember_01a00fe2-0464-719c-90ae-73bbc7e227bf" xlink:href="mtz-20260930.xsd#mtz_PowerDeliveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_mtz_PowerDeliveryMember_01a00fe2-0464-719c-90ae-73bbc7e227bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-78c3-ab19-7bc13872974f" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-78c3-ab19-7bc13872974f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7ad6-9bd2-56c3a9aab705" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7ad6-9bd2-56c3a9aab705" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_01a00fe2-0464-73b5-9105-37aef155943f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7171-a05d-1ce52e5f5596" xlink:to="loc_us-gaap_CorporateMember_01a00fe2-0464-73b5-9105-37aef155943f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-7ee9-b1fc-fc3f6023794d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationAdditionalInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-746e-8d7f-4f7905fbdee0" xlink:to="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-7ee9-b1fc-fc3f6023794d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_01a00fe2-0464-73e8-be37-116705d2cb2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-7ee9-b1fc-fc3f6023794d" xlink:to="loc_us-gaap_Assets_01a00fe2-0464-73e8-be37-116705d2cb2b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentCapitalExpendituresDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentCapitalExpendituresDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationScheduleofFinancialInformationbyReportableSegmentCapitalExpendituresDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77c8-9e0d-c87b09d23dd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-79e8-93e6-39922eb8ef76" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77c8-9e0d-c87b09d23dd6" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-79e8-93e6-39922eb8ef76" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-718c-a8d3-48ac267881fd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-79e8-93e6-39922eb8ef76" xlink:to="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-718c-a8d3-48ac267881fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-718c-a8d3-48ac267881fd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-718c-a8d3-48ac267881fd" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-718c-a8d3-48ac267881fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-784d-95f5-2e44f25ac8dd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_01a00fe2-0464-718c-a8d3-48ac267881fd" xlink:to="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-784d-95f5-2e44f25ac8dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7807-bae1-e14bbd1eec9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-784d-95f5-2e44f25ac8dd" xlink:to="loc_us-gaap_OperatingSegmentsMember_01a00fe2-0464-7807-bae1-e14bbd1eec9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7fd7-97ec-99781724547f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_01a00fe2-0464-784d-95f5-2e44f25ac8dd" xlink:to="loc_us-gaap_CorporateNonSegmentMember_01a00fe2-0464-7fd7-97ec-99781724547f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7f98-abb8-771de144d5f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-79e8-93e6-39922eb8ef76" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7f98-abb8-771de144d5f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-7f98-abb8-771de144d5f6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7f98-abb8-771de144d5f6" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-7f98-abb8-771de144d5f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_01a00fe2-0464-7f98-abb8-771de144d5f6" xlink:to="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CommunicationsMember_01a00fe2-0464-7b04-8512-1325bf5ed4bb" xlink:href="mtz-20260930.xsd#mtz_CommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:to="loc_mtz_CommunicationsMember_01a00fe2-0464-7b04-8512-1325bf5ed4bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-7139-8412-25f2d3cffc26" xlink:href="mtz-20260930.xsd#mtz_CleanEnergyAndInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:to="loc_mtz_CleanEnergyAndInfrastructureMember_01a00fe2-0464-7139-8412-25f2d3cffc26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7d0e-81db-c4f3e6428e65" xlink:href="mtz-20260930.xsd#mtz_PowerDeliveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:to="loc_mtz_PowerDeliveryMember_01a00fe2-0464-7d0e-81db-c4f3e6428e65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-7c48-9170-1d525263f483" xlink:href="mtz-20260930.xsd#mtz_PipelineInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:to="loc_mtz_PipelineInfrastructureMember_01a00fe2-0464-7c48-9170-1d525263f483" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7863-835f-fd3371de0a0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_01a00fe2-0464-7e03-9a62-caa2c4e1be59" xlink:to="loc_us-gaap_AllOtherSegmentsMember_01a00fe2-0464-7863-835f-fd3371de0a0b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-74ad-85ab-fdf5b1e5a219" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationAdditionalInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77c8-9e0d-c87b09d23dd6" xlink:to="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-74ad-85ab-fdf5b1e5a219" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_01a00fe2-0464-7cc0-9ecf-bc4a2afa3870" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentExpenditureAdditionToLongLivedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_01a00fe2-0464-74ad-85ab-fdf5b1e5a219" xlink:to="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_01a00fe2-0464-7cc0-9ecf-bc4a2afa3870" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationForeignOperationsandOtherNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationForeignOperationsandOtherNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationForeignOperationsandOtherNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_01a00fe2-0464-7a5e-af42-dd0b03305e89" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:to="loc_srt_StatementGeographicalAxis_01a00fe2-0464-7a5e-af42-dd0b03305e89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_01a00fe2-0464-7a5e-af42-dd0b03305e89_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_01a00fe2-0464-7a5e-af42-dd0b03305e89" xlink:to="loc_srt_SegmentGeographicalDomain_01a00fe2-0464-7a5e-af42-dd0b03305e89_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_01a00fe2-0464-7763-88e9-dc7eeb732b9e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_01a00fe2-0464-7a5e-af42-dd0b03305e89" xlink:to="loc_srt_SegmentGeographicalDomain_01a00fe2-0464-7763-88e9-dc7eeb732b9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_01a00fe2-0464-71fe-8b1a-9b9223feb972" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_01a00fe2-0464-7763-88e9-dc7eeb732b9e" xlink:to="loc_us-gaap_NonUsMember_01a00fe2-0464-71fe-8b1a-9b9223feb972" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_01a00fe2-0464-732d-91ca-93018604b92f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:to="loc_srt_MajorCustomersAxis_01a00fe2-0464-732d-91ca-93018604b92f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-732d-91ca-93018604b92f_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-732d-91ca-93018604b92f" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-732d-91ca-93018604b92f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7354-a27a-c00c634ddcdf" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-732d-91ca-93018604b92f" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7354-a27a-c00c634ddcdf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_GovernmentTransactionsMember_01a00fe2-0464-74e9-811a-af4909cc9fbd" xlink:href="mtz-20260930.xsd#mtz_GovernmentTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7354-a27a-c00c634ddcdf" xlink:to="loc_mtz_GovernmentTransactionsMember_01a00fe2-0464-74e9-811a-af4909cc9fbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-70ee-aa89-28b8b3417a77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-70ee-aa89-28b8b3417a77" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-70ee-aa89-28b8b3417a77_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-70ee-aa89-28b8b3417a77" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-70ee-aa89-28b8b3417a77_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-7a9d-b0a8-30596e249b12" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-70ee-aa89-28b8b3417a77" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-7a9d-b0a8-30596e249b12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7df4-ab9a-017be750986f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-7a9d-b0a8-30596e249b12" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7df4-ab9a-017be750986f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7584-aa87-ad27dc1179fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_01a00fe2-0464-7901-a001-b879c4129e8d" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7584-aa87-ad27dc1179fd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7584-aa87-ad27dc1179fd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7584-aa87-ad27dc1179fd" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7584-aa87-ad27dc1179fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-757c-a1c6-f83d1147e668" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7584-aa87-ad27dc1179fd" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-757c-a1c6-f83d1147e668" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7bb4-9192-802fa9589897" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-757c-a1c6-f83d1147e668" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7bb4-9192-802fa9589897" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a00fe2-0464-7d66-9bc6-98bd28759cde" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:to="loc_us-gaap_Revenues_01a00fe2-0464-7d66-9bc6-98bd28759cde" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-0464-7459-a69a-06846d089097" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_01a00fe2-0464-7459-a69a-06846d089097" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_01a00fe2-0464-7858-ab0a-9a4b117e4417" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetIncludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:to="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_01a00fe2-0464-7858-ab0a-9a4b117e4417" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-78e5-a7e0-01437adc3ab3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_01a00fe2-0464-77e7-9265-2baad8392941" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-78e5-a7e0-01437adc3ab3" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/SegmentsandRelatedInformationSignificantCustomersNarrativeDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#SegmentsandRelatedInformationSignificantCustomersNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/SegmentsandRelatedInformationSignificantCustomersNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_01a00fe2-0464-7f83-b31b-a06817670aaf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_01a00fe2-0464-7119-921c-3bfc638eb87e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_01a00fe2-0464-7f83-b31b-a06817670aaf" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_01a00fe2-0464-7119-921c-3bfc638eb87e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-721d-b322-9a05cc7b1edf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_01a00fe2-0464-7119-921c-3bfc638eb87e" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-721d-b322-9a05cc7b1edf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-721d-b322-9a05cc7b1edf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-721d-b322-9a05cc7b1edf" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-721d-b322-9a05cc7b1edf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-742e-8d22-b617284cd881" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-721d-b322-9a05cc7b1edf" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-742e-8d22-b617284cd881" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-753b-8bc9-a6b626104dac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-742e-8d22-b617284cd881" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-753b-8bc9-a6b626104dac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_01a00fe2-0464-779e-9d69-d1b4ea750906" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_01a00fe2-0464-7119-921c-3bfc638eb87e" xlink:to="loc_srt_MajorCustomersAxis_01a00fe2-0464-779e-9d69-d1b4ea750906" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-779e-9d69-d1b4ea750906_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-779e-9d69-d1b4ea750906" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-779e-9d69-d1b4ea750906_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76bb-bae3-a17a12f27394" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-779e-9d69-d1b4ea750906" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76bb-bae3-a17a12f27394" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ATTMember_01a00fe2-0464-7e50-baa7-177cd3515eeb" xlink:href="mtz-20260930.xsd#mtz_ATTMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76bb-bae3-a17a12f27394" xlink:to="loc_mtz_ATTMember_01a00fe2-0464-7e50-baa7-177cd3515eeb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_GovernmentTransactionsMember_01a00fe2-0464-77cf-abd0-076df0e182ed" xlink:href="mtz-20260930.xsd#mtz_GovernmentTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76bb-bae3-a17a12f27394" xlink:to="loc_mtz_GovernmentTransactionsMember_01a00fe2-0464-77cf-abd0-076df0e182ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7c85-8347-5a36ab441469" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_01a00fe2-0464-7119-921c-3bfc638eb87e" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7c85-8347-5a36ab441469" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7c85-8347-5a36ab441469_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7c85-8347-5a36ab441469" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7c85-8347-5a36ab441469_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7172-b282-6a0162dd790f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-7c85-8347-5a36ab441469" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7172-b282-6a0162dd790f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7966-b9d8-272182e99356" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-7172-b282-6a0162dd790f" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7966-b9d8-272182e99356" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-7438-85e3-1a02ed85a027" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_01a00fe2-0464-7f83-b31b-a06817670aaf" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-7438-85e3-1a02ed85a027" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#CommitmentsandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/CommitmentsandContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7b62-9383-1000962fbc23_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7b62-9383-1000962fbc23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiariesMember_01a00fe2-0464-7bb2-9617-cd9930388ab9" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:to="loc_srt_SubsidiariesMember_01a00fe2-0464-7bb2-9617-cd9930388ab9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7801-8af2-e5c571dadee5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7801-8af2-e5c571dadee5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceGuaranteeMember_01a00fe2-0464-750f-9442-422e109b5bba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_PerformanceGuaranteeMember_01a00fe2-0464-750f-9442-422e109b5bba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a00fe2-0464-7503-a74c-4692bc3de9ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialStandbyLetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a00fe2-0464-7503-a74c-4692bc3de9ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SuretyBondMember_01a00fe2-0464-78fd-878f-59ee895f5d5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SuretyBondMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_SuretyBondMember_01a00fe2-0464-78fd-878f-59ee895f5d5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateJointVentureMember_01a00fe2-0464-7cd7-b3b6-231463474a52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateJointVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:to="loc_us-gaap_CorporateJointVentureMember_01a00fe2-0464-7cd7-b3b6-231463474a52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CaptiveInsuranceCompanyMember_01a00fe2-0464-75af-af5f-0bdccd1d5286" xlink:href="mtz-20260930.xsd#mtz_CaptiveInsuranceCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:to="loc_mtz_CaptiveInsuranceCompanyMember_01a00fe2-0464-75af-af5f-0bdccd1d5286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_01a00fe2-0464-7f36-b7c4-da8e13b90d6d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfFinancialPositionLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_01a00fe2-0464-7f36-b7c4-da8e13b90d6d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-77ea-8efd-df8b07f866eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:to="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-77ea-8efd-df8b07f866eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:to="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UninsuredRiskMember_01a00fe2-0464-7b1c-a208-1c37d79b90f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UninsuredRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:to="loc_us-gaap_UninsuredRiskMember_01a00fe2-0464-7b1c-a208-1c37d79b90f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-0464-73a7-8d43-7ee06b38496e_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:to="loc_srt_RangeMember_01a00fe2-0464-73a7-8d43-7ee06b38496e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:to="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a00fe2-0464-7e25-8850-77bd06947047" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:to="loc_srt_MinimumMember_01a00fe2-0464-7e25-8850-77bd06947047" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-0464-7490-add7-5dd38bfde362" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:to="loc_srt_MaximumMember_01a00fe2-0464-7490-add7-5dd38bfde362" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-0464-74b3-ada6-21d47c1198fd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:to="loc_srt_OwnershipDomain_01a00fe2-0464-74b3-ada6-21d47c1198fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:to="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember_01a00fe2-0464-74ec-a3c6-a750ec81bb95" xlink:href="mtz-20260930.xsd#mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:to="loc_mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember_01a00fe2-0464-74ec-a3c6-a750ec81bb95" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_JointVentureCivilConstructionProjectMember_01a00fe2-0464-78ee-bc51-9dabe1df2b56" xlink:href="mtz-20260930.xsd#mtz_JointVentureCivilConstructionProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:to="loc_mtz_JointVentureCivilConstructionProjectMember_01a00fe2-0464-78ee-bc51-9dabe1df2b56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-7700-a3d1-babb081917c4_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-7700-a3d1-babb081917c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember_01a00fe2-0464-7ead-8d23-a1c24a756c22" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember_01a00fe2-0464-7ead-8d23-a1c24a756c22" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GroupPoliciesMember_01a00fe2-0464-72c0-a4c1-1a0860864f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GroupPoliciesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_GroupPoliciesMember_01a00fe2-0464-72c0-a4c1-1a0860864f8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccidentAndHealthInsuranceSegmentMember_01a00fe2-0464-77b9-acad-2a21a0f3dd65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccidentAndHealthInsuranceSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_AccidentAndHealthInsuranceSegmentMember_01a00fe2-0464-77b9-acad-2a21a0f3dd65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-7180-bfad-654447e4d0dd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-7180-bfad-654447e4d0dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_OneCustomerMember_01a00fe2-0464-7907-a896-1deaa9d356f8" xlink:href="mtz-20260930.xsd#mtz_OneCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:to="loc_mtz_OneCustomerMember_01a00fe2-0464-7907-a896-1deaa9d356f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76c7-9e4f-101f5df8f690_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76c7-9e4f-101f5df8f690_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_TenLargestCustomersMember_01a00fe2-0464-71bd-9670-eb311ab2197a" xlink:href="mtz-20260930.xsd#mtz_TenLargestCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:to="loc_mtz_TenLargestCustomersMember_01a00fe2-0464-71bd-9670-eb311ab2197a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-71b1-b125-8db8c764b1b5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-71b1-b125-8db8c764b1b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7afa-91ef-98539417abdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7afa-91ef-98539417abdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-752e-b8b7-26f942345906_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-752e-b8b7-26f942345906_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7edf-bf3b-6f55fed3bf27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7edf-bf3b-6f55fed3bf27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_01a00fe2-0464-7d3f-8d3b-3776b10bc949" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_01a00fe2-0464-7d3f-8d3b-3776b10bc949" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_01a00fe2-0464-7b97-90b6-6b84e145c67a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_01a00fe2-0464-7b97-90b6-6b84e145c67a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EstimatedCostsToCompleteProjectsSecuredByBonds_01a00fe2-0464-7e7c-a59e-69b171b19b45" xlink:href="mtz-20260930.xsd#mtz_EstimatedCostsToCompleteProjectsSecuredByBonds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_EstimatedCostsToCompleteProjectsSecuredByBonds_01a00fe2-0464-7e7c-a59e-69b171b19b45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage_01a00fe2-0464-7bc8-a88b-551e1d74ced5" xlink:href="mtz-20260930.xsd#mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage_01a00fe2-0464-7bc8-a88b-551e1d74ced5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_NumberOfJointVentures_01a00fe2-0464-7f56-b770-f48c18e5ad25" xlink:href="mtz-20260930.xsd#mtz_NumberOfJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_NumberOfJointVentures_01a00fe2-0464-7f56-b770-f48c18e5ad25" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a00fe2-0464-76cb-abe2-db247fba0b1f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a00fe2-0464-76cb-abe2-db247fba0b1f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserve_01a00fe2-0464-7de3-9d67-7db4da07f8a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SelfInsuranceReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_SelfInsuranceReserve_01a00fe2-0464-7de3-9d67-7db4da07f8a3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserveNoncurrent_01a00fe2-0464-77f3-adcb-ab05eed8df73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SelfInsuranceReserveNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_SelfInsuranceReserveNoncurrent_01a00fe2-0464-77f3-adcb-ab05eed8df73" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_01a00fe2-0464-764b-9d49-919fb10c1095" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InsuranceSettlementsReceivableNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_01a00fe2-0464-764b-9d49-919fb10c1095" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualAtCarryingValue_01a00fe2-0464-7e14-bb15-5afbe98071a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyAccrualAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LossContingencyAccrualAtCarryingValue_01a00fe2-0464-7e14-bb15-5afbe98071a0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_NumberOfCustomers_01a00fe2-0464-703b-92ca-24ecc757cc1b" xlink:href="mtz-20260930.xsd#mtz_NumberOfCustomers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_NumberOfCustomers_01a00fe2-0464-703b-92ca-24ecc757cc1b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-715c-a547-3b7fc6cfc4ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-715c-a547-3b7fc6cfc4ef" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/CommitmentsandContingenciesDetails_1" xlink:type="simple" xlink:href="mtz-20260930.xsd#CommitmentsandContingenciesDetails_1"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/CommitmentsandContingenciesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7b62-9383-1000962fbc23_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7b62-9383-1000962fbc23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_01a00fe2-0464-7b62-9383-1000962fbc23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiariesMember_01a00fe2-0464-7bb2-9617-cd9930388ab9" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_01a00fe2-0464-7a09-af7d-4aa5c6ffe6e2" xlink:to="loc_srt_SubsidiariesMember_01a00fe2-0464-7bb2-9617-cd9930388ab9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7801-8af2-e5c571dadee5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7801-8af2-e5c571dadee5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_01a00fe2-0464-7801-8af2-e5c571dadee5" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceGuaranteeMember_01a00fe2-0464-750f-9442-422e109b5bba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_PerformanceGuaranteeMember_01a00fe2-0464-750f-9442-422e109b5bba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a00fe2-0464-7503-a74c-4692bc3de9ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialStandbyLetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_FinancialStandbyLetterOfCreditMember_01a00fe2-0464-7503-a74c-4692bc3de9ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SuretyBondMember_01a00fe2-0464-78fd-878f-59ee895f5d5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SuretyBondMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_01a00fe2-0464-7717-890d-fde98620dbcf" xlink:to="loc_us-gaap_SuretyBondMember_01a00fe2-0464-78fd-878f-59ee895f5d5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7c6d-a692-8ce0c2ea45f0" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateJointVentureMember_01a00fe2-0464-7cd7-b3b6-231463474a52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateJointVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:to="loc_us-gaap_CorporateJointVentureMember_01a00fe2-0464-7cd7-b3b6-231463474a52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CaptiveInsuranceCompanyMember_01a00fe2-0464-75af-af5f-0bdccd1d5286" xlink:href="mtz-20260930.xsd#mtz_CaptiveInsuranceCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7482-b90e-1c9ac3200d07" xlink:to="loc_mtz_CaptiveInsuranceCompanyMember_01a00fe2-0464-75af-af5f-0bdccd1d5286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-77ea-8efd-df8b07f866eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:to="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-77ea-8efd-df8b07f866eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_01a00fe2-0464-77ea-8efd-df8b07f866eb" xlink:to="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UninsuredRiskMember_01a00fe2-0464-7b1c-a208-1c37d79b90f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UninsuredRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_01a00fe2-0464-7c0a-aeef-ae1e794fba49" xlink:to="loc_us-gaap_UninsuredRiskMember_01a00fe2-0464-7b1c-a208-1c37d79b90f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-0464-73a7-8d43-7ee06b38496e_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:to="loc_srt_RangeMember_01a00fe2-0464-73a7-8d43-7ee06b38496e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01a00fe2-0464-73a7-8d43-7ee06b38496e" xlink:to="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_01a00fe2-0464-7e25-8850-77bd06947047" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:to="loc_srt_MinimumMember_01a00fe2-0464-7e25-8850-77bd06947047" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_01a00fe2-0464-7490-add7-5dd38bfde362" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_01a00fe2-0464-7fd8-9d60-cb685ce3a51d" xlink:to="loc_srt_MaximumMember_01a00fe2-0464-7490-add7-5dd38bfde362" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-0464-74b3-ada6-21d47c1198fd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:to="loc_srt_OwnershipDomain_01a00fe2-0464-74b3-ada6-21d47c1198fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_01a00fe2-0464-74b3-ada6-21d47c1198fd" xlink:to="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember_01a00fe2-0464-74ec-a3c6-a750ec81bb95" xlink:href="mtz-20260930.xsd#mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:to="loc_mtz_JointVenturesThatProvideElectricalTransmissionInfrastructureServicesMember_01a00fe2-0464-74ec-a3c6-a750ec81bb95" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_JointVentureCivilConstructionProjectMember_01a00fe2-0464-78ee-bc51-9dabe1df2b56" xlink:href="mtz-20260930.xsd#mtz_JointVentureCivilConstructionProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_01a00fe2-0464-7fb9-bb5e-d9e793fe02ab" xlink:to="loc_mtz_JointVentureCivilConstructionProjectMember_01a00fe2-0464-78ee-bc51-9dabe1df2b56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-7700-a3d1-babb081917c4_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-7700-a3d1-babb081917c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_01a00fe2-0464-7700-a3d1-babb081917c4" xlink:to="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember_01a00fe2-0464-7ead-8d23-a1c24a756c22" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember_01a00fe2-0464-7ead-8d23-a1c24a756c22" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GroupPoliciesMember_01a00fe2-0464-72c0-a4c1-1a0860864f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GroupPoliciesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_GroupPoliciesMember_01a00fe2-0464-72c0-a4c1-1a0860864f8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccidentAndHealthInsuranceSegmentMember_01a00fe2-0464-77b9-acad-2a21a0f3dd65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccidentAndHealthInsuranceSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_01a00fe2-0464-759f-9db9-688a5eec4e85" xlink:to="loc_us-gaap_AccidentAndHealthInsuranceSegmentMember_01a00fe2-0464-77b9-acad-2a21a0f3dd65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-7180-bfad-654447e4d0dd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-7180-bfad-654447e4d0dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_01a00fe2-0464-7180-bfad-654447e4d0dd" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_OneCustomerMember_01a00fe2-0464-7907-a896-1deaa9d356f8" xlink:href="mtz-20260930.xsd#mtz_OneCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_01a00fe2-0464-74c6-bdf8-dfaded2f76c4" xlink:to="loc_mtz_OneCustomerMember_01a00fe2-0464-7907-a896-1deaa9d356f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76c7-9e4f-101f5df8f690_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-76c7-9e4f-101f5df8f690_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_01a00fe2-0464-76c7-9e4f-101f5df8f690" xlink:to="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_TenLargestCustomersMember_01a00fe2-0464-71bd-9670-eb311ab2197a" xlink:href="mtz-20260930.xsd#mtz_TenLargestCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_01a00fe2-0464-7d44-a326-8a4a88919e31" xlink:to="loc_mtz_TenLargestCustomersMember_01a00fe2-0464-71bd-9670-eb311ab2197a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-71b1-b125-8db8c764b1b5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-71b1-b125-8db8c764b1b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_01a00fe2-0464-71b1-b125-8db8c764b1b5" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7afa-91ef-98539417abdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_01a00fe2-0464-717a-ae48-3e403da25584" xlink:to="loc_us-gaap_SalesRevenueNetMember_01a00fe2-0464-7afa-91ef-98539417abdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_01a00fe2-0464-72e1-abd5-e6c22137c002" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-752e-b8b7-26f942345906_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-752e-b8b7-26f942345906_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_01a00fe2-0464-752e-b8b7-26f942345906" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7edf-bf3b-6f55fed3bf27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_01a00fe2-0464-74d4-ac76-bf68d29db8ab" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_01a00fe2-0464-7edf-bf3b-6f55fed3bf27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_01a00fe2-0464-7d3f-8d3b-3776b10bc949" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_01a00fe2-0464-7d3f-8d3b-3776b10bc949" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_01a00fe2-0464-7b97-90b6-6b84e145c67a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_01a00fe2-0464-7b97-90b6-6b84e145c67a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EstimatedCostsToCompleteProjectsSecuredByBonds_01a00fe2-0464-7e7c-a59e-69b171b19b45" xlink:href="mtz-20260930.xsd#mtz_EstimatedCostsToCompleteProjectsSecuredByBonds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_EstimatedCostsToCompleteProjectsSecuredByBonds_01a00fe2-0464-7e7c-a59e-69b171b19b45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage_01a00fe2-0464-7bc8-a88b-551e1d74ced5" xlink:href="mtz-20260930.xsd#mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_ProportionatelyConsolidatedJointVentureOwnershipPercentage_01a00fe2-0464-7bc8-a88b-551e1d74ced5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_NumberOfJointVentures_01a00fe2-0464-7f56-b770-f48c18e5ad25" xlink:href="mtz-20260930.xsd#mtz_NumberOfJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_NumberOfJointVentures_01a00fe2-0464-7f56-b770-f48c18e5ad25" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a00fe2-0464-76cb-abe2-db247fba0b1f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a00fe2-0464-76cb-abe2-db247fba0b1f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserve_01a00fe2-0464-7de3-9d67-7db4da07f8a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SelfInsuranceReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_SelfInsuranceReserve_01a00fe2-0464-7de3-9d67-7db4da07f8a3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserveNoncurrent_01a00fe2-0464-77f3-adcb-ab05eed8df73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SelfInsuranceReserveNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_SelfInsuranceReserveNoncurrent_01a00fe2-0464-77f3-adcb-ab05eed8df73" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_01a00fe2-0464-764b-9d49-919fb10c1095" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InsuranceSettlementsReceivableNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_01a00fe2-0464-764b-9d49-919fb10c1095" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualAtCarryingValue_01a00fe2-0464-7e14-bb15-5afbe98071a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyAccrualAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_LossContingencyAccrualAtCarryingValue_01a00fe2-0464-7e14-bb15-5afbe98071a0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_NumberOfCustomers_01a00fe2-0464-703b-92ca-24ecc757cc1b" xlink:href="mtz-20260930.xsd#mtz_NumberOfCustomers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_mtz_NumberOfCustomers_01a00fe2-0464-703b-92ca-24ecc757cc1b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-715c-a547-3b7fc6cfc4ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01a00fe2-0464-7e87-9db7-3bf6376463c4" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_01a00fe2-0464-715c-a547-3b7fc6cfc4ef" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mastec.com/role/RelatedPartyTransactionsDetails" xlink:type="simple" xlink:href="mtz-20260930.xsd#RelatedPartyTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.mastec.com/role/RelatedPartyTransactionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_01a00fe2-0464-7cd8-aada-6c9b51514bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_01a00fe2-0464-7cd8-aada-6c9b51514bc9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-0464-7f0d-bac2-fe55bf694693" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_01a00fe2-0464-7cd8-aada-6c9b51514bc9" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-0464-7f0d-bac2-fe55bf694693" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-0464-7f0d-bac2-fe55bf694693_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-0464-7f0d-bac2-fe55bf694693" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-0464-7f0d-bac2-fe55bf694693_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-0464-7152-8179-1c64ab3d91ef" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_01a00fe2-0464-7f0d-bac2-fe55bf694693" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-0464-7152-8179-1c64ab3d91ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-0464-7e3b-b785-fb135582c448" xlink:href="mtz-20260930.xsd#mtz_CrossCountryInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_01a00fe2-0464-7152-8179-1c64ab3d91ef" xlink:to="loc_mtz_CrossCountryInfrastructureMember_01a00fe2-0464-7e3b-b785-fb135582c448" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-0464-7eb3-b20d-9f5552692132" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_01a00fe2-0464-7cd8-aada-6c9b51514bc9" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-0464-7eb3-b20d-9f5552692132" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7eb3-b20d-9f5552692132_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-0464-7eb3-b20d-9f5552692132" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7eb3-b20d-9f5552692132_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_01a00fe2-0464-7eb3-b20d-9f5552692132" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentMember_01a00fe2-0464-7a9d-82c6-95825a941b3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:to="loc_us-gaap_EquipmentMember_01a00fe2-0464-7a9d-82c6-95825a941b3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_SubcontractingArrangementsMember_01a00fe2-0464-7ffc-abc2-7346fac28e8d" xlink:href="mtz-20260930.xsd#mtz_SubcontractingArrangementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:to="loc_mtz_SubcontractingArrangementsMember_01a00fe2-0464-7ffc-abc2-7346fac28e8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseAgreementsMember_01a00fe2-0464-7acb-9770-db3c1b39246b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:to="loc_us-gaap_LeaseAgreementsMember_01a00fe2-0464-7acb-9770-db3c1b39246b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_ConstructionServicesMember_01a00fe2-0464-72dd-bdeb-13dd3cdc20a7" xlink:href="mtz-20260930.xsd#mtz_ConstructionServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:to="loc_mtz_ConstructionServicesMember_01a00fe2-0464-72dd-bdeb-13dd3cdc20a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_EquipmentSuppliesAndServicesMember_01a00fe2-0464-73d0-b49a-6ade733ece68" xlink:href="mtz-20260930.xsd#mtz_EquipmentSuppliesAndServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_01a00fe2-0464-7d69-9368-e4925277cd0f" xlink:to="loc_mtz_EquipmentSuppliesAndServicesMember_01a00fe2-0464-73d0-b49a-6ade733ece68" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7198-a188-c32c227e9583" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_01a00fe2-0464-7cd8-aada-6c9b51514bc9" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7198-a188-c32c227e9583" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7198-a188-c32c227e9583_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7198-a188-c32c227e9583" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-7198-a188-c32c227e9583_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_01a00fe2-0464-7198-a188-c32c227e9583" xlink:to="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember_01a00fe2-0464-7d23-b618-3de8c655617a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:to="loc_us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember_01a00fe2-0464-7d23-b618-3de8c655617a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_01a00fe2-0464-7f2d-bcea-130e2c135bb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:to="loc_us-gaap_RelatedPartyMember_01a00fe2-0464-7f2d-bcea-130e2c135bb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ManagementMember_01a00fe2-0464-705f-9de9-11d6d186814e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ManagementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:to="loc_srt_ManagementMember_01a00fe2-0464-705f-9de9-11d6d186814e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_BoardOfDirectorsChairmanMember_01a00fe2-0464-7ae3-a0b5-4e26274d18d0" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_BoardOfDirectorsChairmanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:to="loc_srt_BoardOfDirectorsChairmanMember_01a00fe2-0464-7ae3-a0b5-4e26274d18d0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ExecutiveOfficerMember_01a00fe2-0464-7920-9b8a-99a6d7da2409" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ExecutiveOfficerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_01a00fe2-0464-70d1-8152-9399da7cf031" xlink:to="loc_srt_ExecutiveOfficerMember_01a00fe2-0464-7920-9b8a-99a6d7da2409" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingCostsAndExpenses_01a00fe2-0464-7816-9f9a-40d8710fef15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingCostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_OperatingCostsAndExpenses_01a00fe2-0464-7816-9f9a-40d8710fef15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_01a00fe2-0464-71b2-84f7-129623441c2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_01a00fe2-0464-71b2-84f7-129623441c2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a00fe2-0464-7ea4-9b4e-029bb9c864f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_Revenues_01a00fe2-0464-7ea4-9b4e-029bb9c864f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_NumberOfManagementMembers_01a00fe2-0464-78b0-8016-13342bf4aae6" xlink:href="mtz-20260930.xsd#mtz_NumberOfManagementMembers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_mtz_NumberOfManagementMembers_01a00fe2-0464-78b0-8016-13342bf4aae6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_01a00fe2-0464-78d0-8ec7-c77f593fdfe5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_AccountsReceivableNet_01a00fe2-0464-78d0-8ec7-c77f593fdfe5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueOfLifeInsurance_01a00fe2-0464-70c2-9b0c-de0d3b67d67b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashSurrenderValueOfLifeInsurance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_CashSurrenderValueOfLifeInsurance_01a00fe2-0464-70c2-9b0c-de0d3b67d67b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FinancingReceivableFaceAmount_01a00fe2-0464-78ed-9185-357d63a276a3" xlink:href="mtz-20260930.xsd#mtz_FinancingReceivableFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_mtz_FinancingReceivableFaceAmount_01a00fe2-0464-78ed-9185-357d63a276a3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_01a00fe2-0464-79f2-b983-f319361c5ea0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_01a00fe2-0464-79f2-b983-f319361c5ea0" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtz_FinancingReceivableInterestRate_01a00fe2-0464-7d78-bb14-4b68e2826d12" xlink:href="mtz-20260930.xsd#mtz_FinancingReceivableInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_01a00fe2-0464-7c0e-9ca4-b3c2ecd028a3" xlink:to="loc_mtz_FinancingReceivableInterestRate_01a00fe2-0464-7d78-bb14-4b68e2826d12" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-roles-2026.xsd#eedm1"/>
  <link:definitionLink xlink:role="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:type="arc" order="41"/>
  </link:definitionLink>
</link:linkbase>
