<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://quantaservices.com/role/Acquisitions" xlink:href="pwr-20180930.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:href="pwr-20180930.xsd#AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsTables" xlink:href="pwr-20180930.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganization" xlink:href="pwr-20180930.xsd#BusinessAndOrganization" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganizationDetail" xlink:href="pwr-20180930.xsd#BusinessAndOrganizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingencies" xlink:href="pwr-20180930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesIndemnitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesIndemnitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLegalProceedingsDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLegalProceedingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLettersOfCreditDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLettersOfCreditDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesTables" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheets" xlink:href="pwr-20180930.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="pwr-20180930.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfOperations" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligations" xlink:href="pwr-20180930.xsd#DebtObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:href="pwr-20180930.xsd#DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsLongTermDebtObligationsDetail" xlink:href="pwr-20180930.xsd#DebtObligationsLongTermDebtObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsOtherFacilitiesDetails" xlink:href="pwr-20180930.xsd#DebtObligationsOtherFacilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:href="pwr-20180930.xsd#DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsTables" xlink:href="pwr-20180930.xsd#DebtObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DocumentAndEntityInformation" xlink:href="pwr-20180930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/Equity" xlink:href="pwr-20180930.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensation" xlink:href="pwr-20180930.xsd#EquityBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationStockIncentivePlansDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationStockIncentivePlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationTables" xlink:href="pwr-20180930.xsd#EquityBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityExchangeableSharesAndPreferredStockDetail" xlink:href="pwr-20180930.xsd#EquityExchangeableSharesAndPreferredStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityNonControllingInterestsDetail" xlink:href="pwr-20180930.xsd#EquityNonControllingInterestsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityTreasuryStockDetail" xlink:href="pwr-20180930.xsd#EquityTreasuryStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncements" xlink:href="pwr-20180930.xsd#NewAccountingPronouncements" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncementsDetail" xlink:href="pwr-20180930.xsd#NewAccountingPronouncementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformation" xlink:href="pwr-20180930.xsd#PerShareInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:href="pwr-20180930.xsd#PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationDetail" xlink:href="pwr-20180930.xsd#PerShareInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationTables" xlink:href="pwr-20180930.xsd#PerShareInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformation" xlink:href="pwr-20180930.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationDetail" xlink:href="pwr-20180930.xsd#SegmentInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationSummarizedFinancialInformationDetail" xlink:href="pwr-20180930.xsd#SegmentInformationSummarizedFinancialInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationTables" xlink:href="pwr-20180930.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEvent" xlink:href="pwr-20180930.xsd#SubsequentEvent" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEventDetails" xlink:href="pwr-20180930.xsd#SubsequentEventDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformation" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationTables" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/Acquisitions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A3547CED7D5A52F1989DEEE97D60D089" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A3547CED7D5A52F1989DEEE97D60D089" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_0875C70A2F1776A9BE72EEE97D602B41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A3547CED7D5A52F1989DEEE97D60D089" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0875C70A2F1776A9BE72EEE97D602B41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0875C70A2F1776A9BE72EEE97D602B41" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0875C70A2F1776A9BE72EEE97D602B41" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_FC64259345BE2FEEB013EEE97D61F84B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D" xlink:to="loc_pwr_Acquisitions2018Member_FC64259345BE2FEEB013EEE97D61F84B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member" xlink:label="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_AEFBDACA3B6A007490B1EEE97D61CC1A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D" xlink:to="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_AEFBDACA3B6A007490B1EEE97D61CC1A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2017OtherThanStrongholdMember" xlink:label="loc_pwr_Acquisitions2017OtherThanStrongholdMember_A3171BAC850D17472488EEE97D61EE62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9F3006F4D2BF2E7BD468EEE97D61E59D" xlink:to="loc_pwr_Acquisitions2017OtherThanStrongholdMember_A3171BAC850D17472488EEE97D61EE62" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred" xlink:label="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_678C06D3AFE88205B19CEEE97D629B13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_678C06D3AFE88205B19CEEE97D629B13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_5B5B78773AB18300FF4AEEE97D6273A6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_5B5B78773AB18300FF4AEEE97D6273A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1310BF6F85DC52D40749EEE97D6208B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1310BF6F85DC52D40749EEE97D6208B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_EA3CB829AED084508032EEE97D623FC1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_EA3CB829AED084508032EEE97D623FC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_63746BAA05DD406537DFEEE97D685C07" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_63746BAA05DD406537DFEEE97D685C07" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent_BF3D4C999FC8AAFC5E91EEE97D68A87E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent_BF3D4C999FC8AAFC5E91EEE97D68A87E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_35A97D8624484D6A7EC0EEE97D6859C5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_35A97D8624484D6A7EC0EEE97D6859C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_3C7CDCF7C373F17441DAEEE97D682570" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_3C7CDCF7C373F17441DAEEE97D682570" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_E5B714573A986B1B71FEEEE97D68A4BC" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_E5B714573A986B1B71FEEEE97D68A4BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_468E4AEF7B2FB3C515D2EEE97D69310C" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_468E4AEF7B2FB3C515D2EEE97D69310C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities_7AF8D9B9262FA3A530BCEEE97D6951BF" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities_7AF8D9B9262FA3A530BCEEE97D6951BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_1D79FDCA1F074AD04E9FEEE97D692368" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_1D79FDCA1F074AD04E9FEEE97D692368" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_B13C97EAC1BB43A0111AEEE97D690237" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_B13C97EAC1BB43A0111AEEE97D690237" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_336F8ADED118B7E095D2EEE97D69A1E4" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_336F8ADED118B7E095D2EEE97D69A1E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_289421984EE95F946370EEE97D69FD69" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_289421984EE95F946370EEE97D69FD69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_57AA6A8061F015992E44EEE97D6956B8" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_57AA6A8061F015992E44EEE97D6956B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_6D2252C0F0E9F616FD72EEE97D6ADE24" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D9AE4619B1086421D251EEE97D61A80C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_6D2252C0F0E9F616FD72EEE97D6ADE24" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/AcquisitionsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EFF71F193CA148DE7682EEE97D86474F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EFF71F193CA148DE7682EEE97D86474F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B810DE3E97DA181732B7EEE97D878C31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EFF71F193CA148DE7682EEE97D86474F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B810DE3E97DA181732B7EEE97D878C31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B810DE3E97DA181732B7EEE97D878C31" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B810DE3E97DA181732B7EEE97D878C31" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_6BD8DB9F0A89CF24994FEEE97D87C8BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:to="loc_pwr_Acquisitions2018Member_6BD8DB9F0A89CF24994FEEE97D87C8BF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member" xlink:label="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_F562D5BF2313B1CD532CEEE97D88FAE0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:to="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_F562D5BF2313B1CD532CEEE97D88FAE0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2017OtherThanStrongholdMember" xlink:label="loc_pwr_Acquisitions2017OtherThanStrongholdMember_AC9D957B450B9EBFC1DDEEE97D886E60" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:to="loc_pwr_Acquisitions2017OtherThanStrongholdMember_AC9D957B450B9EBFC1DDEEE97D886E60" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2017Member" xlink:label="loc_pwr_Acquisitions2017Member_21F63513629FCD0F9E1FEEE97D8873BE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CA9F845083FB40EAEEC3EEE97D87A4EB" xlink:to="loc_pwr_Acquisitions2017Member_21F63513629FCD0F9E1FEEE97D8873BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_480D5186C45AA98815E9EEE97D881A49" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EFF71F193CA148DE7682EEE97D86474F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_480D5186C45AA98815E9EEE97D881A49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_480D5186C45AA98815E9EEE97D881A49" xlink:to="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_480D5186C45AA98815E9EEE97D881A49" xlink:to="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ElectricPowerDivisionMember" xlink:label="loc_pwr_ElectricPowerDivisionMember_26842876FAC268DBECA4EEE97D8EEE02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0" xlink:to="loc_pwr_ElectricPowerDivisionMember_26842876FAC268DBECA4EEE97D8EEE02" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OilAndGasDivisionMember" xlink:label="loc_pwr_OilAndGasDivisionMember_9F73495324A825F2EB1AEEE97D8EEE40" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6606190CDCE9C2276C8EEEE97D8D3DC0" xlink:to="loc_pwr_OilAndGasDivisionMember_9F73495324A825F2EB1AEEE97D8EEE40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_9A164D855651B2DD1E96EEE97D8E60AE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EFF71F193CA148DE7682EEE97D86474F" xlink:to="loc_srt_RangeAxis_9A164D855651B2DD1E96EEE97D8E60AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_9A164D855651B2DD1E96EEE97D8E60AE" xlink:to="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_9A164D855651B2DD1E96EEE97D8E60AE" xlink:to="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_CC4E6F7899A81FBB0394EEE97D8F64FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2" xlink:to="loc_srt_MinimumMember_CC4E6F7899A81FBB0394EEE97D8F64FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_2213E17211A977D3125CEEE97D8F276E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_46BA96E7149A56FE962AEEE97D8F91A2" xlink:to="loc_srt_MaximumMember_2213E17211A977D3125CEEE97D8F276E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred" xlink:label="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_E9F5DEBB54BF759F761CEEE97D8F6C88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_E9F5DEBB54BF759F761CEEE97D8F6C88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_B028261CA24035CD1AC6EEE97D903414" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_B028261CA24035CD1AC6EEE97D903414" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_C8E3BEB88D997C782F87EEE97D90C45C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_C8E3BEB88D997C782F87EEE97D90C45C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_841958A4C4789BE84769EEE97D90E5B9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_841958A4C4789BE84769EEE97D90E5B9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesTargetTerm" xlink:label="loc_pwr_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesTargetTerm_06DFF532B8CBBA75C273EEE97D90B176" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_pwr_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesTargetTerm_06DFF532B8CBBA75C273EEE97D90B176" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1DC8B8ECD0578FC08DABEEE97D906C6D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1DC8B8ECD0578FC08DABEEE97D906C6D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets_2FA9A29E6FB5C9181C10EEE97D91F7FD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets_2FA9A29E6FB5C9181C10EEE97D91F7FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinitelivedIntangibleAssetsAcquired1" xlink:label="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_3E2621F94454B18B3E27EEE97D91B537" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_3E2621F94454B18B3E27EEE97D91B537" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_6DEFB348DA615BF88BE9EEE97D9103B6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_6DEFB348DA615BF88BE9EEE97D9103B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_F316A2CBB74EDA5057FCEEE97D911CA5" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_F316A2CBB74EDA5057FCEEE97D911CA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_691BD469A26129A30C6BEEE97D91AF57" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_691BD469A26129A30C6BEEE97D91AF57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_7B30FCE0F8A47E36B1E5EEE97D91D1AE" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_7B30FCE0F8A47E36B1E5EEE97D91D1AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_1DEF4129B0E4BBCFADB9EEE97D920D8D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_B47F72CBB3AD71E55FBEEEE97D8F137F" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_1DEF4129B0E4BBCFADB9EEE97D920D8D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7243BB990CE666A2D0FEEEE97D435364" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_FA2FDBDCF85120AF565CEEE97D3BEB33" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7243BB990CE666A2D0FEEEE97D435364" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_FA2FDBDCF85120AF565CEEE97D3BEB33" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CA03CE603ED8E5251D37EEE97D3B16B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_FA2FDBDCF85120AF565CEEE97D3BEB33" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CA03CE603ED8E5251D37EEE97D3B16B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CA03CE603ED8E5251D37EEE97D3B16B9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CA03CE603ED8E5251D37EEE97D3B16B9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_92B5D1DC2FC6DBCFEF69EEE97D3C46E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:to="loc_us-gaap_CustomerRelationshipsMember_92B5D1DC2FC6DBCFEF69EEE97D3C46E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OrderOrProductionBacklogMember" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_4E0CF335A90C54C69B12EEE97D3CBE6B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_4E0CF335A90C54C69B12EEE97D3CBE6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_9A9536BDB03D7C2FE70FEEE97D4132BE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:to="loc_us-gaap_TradeNamesMember_9A9536BDB03D7C2FE70FEEE97D4132BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_0A5DD4C93F0438470D77EEE97D4154FF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_0A5DD4C93F0438470D77EEE97D4154FF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CurriculumMember" xlink:label="loc_pwr_CurriculumMember_82FB1A9308B174CF84D8EEE97D421DE7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2FCB55B07A39D158C513EEE97D3B61D1" xlink:to="loc_pwr_CurriculumMember_82FB1A9308B174CF84D8EEE97D421DE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_5F043264E8545BB16EF9EEE97D42DE00" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_FA2FDBDCF85120AF565CEEE97D3BEB33" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_5F043264E8545BB16EF9EEE97D42DE00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_58D35B7517427728B693EEE97D421ADF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5F043264E8545BB16EF9EEE97D42DE00" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_58D35B7517427728B693EEE97D421ADF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_58D35B7517427728B693EEE97D421ADF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5F043264E8545BB16EF9EEE97D42DE00" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_58D35B7517427728B693EEE97D421ADF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_6E4383852DAD322F2B75EEE97D42593B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_58D35B7517427728B693EEE97D421ADF" xlink:to="loc_pwr_Acquisitions2018Member_6E4383852DAD322F2B75EEE97D42593B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinitelivedIntangibleAssetsAcquired1" xlink:label="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_16EB0B3540397164D10CEEE97D43D86B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7243BB990CE666A2D0FEEEE97D435364" xlink:to="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_16EB0B3540397164D10CEEE97D43D86B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_DD0858278CAC8E80C329EEE97D438D93" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7243BB990CE666A2D0FEEEE97D435364" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_DD0858278CAC8E80C329EEE97D438D93" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/AcquisitionsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/BusinessAndOrganization" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/BusinessAndOrganizationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_19CE3CDB12190C0F8599EEE97B569C30" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationTable" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E4A2112D135DDEAA0117EEE97B55BF24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_19CE3CDB12190C0F8599EEE97B569C30" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E4A2112D135DDEAA0117EEE97B55BF24" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_3FA40C3BF65C46A55C7FEEE97B55DF25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E4A2112D135DDEAA0117EEE97B55BF24" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_3FA40C3BF65C46A55C7FEEE97B55DF25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_B93F33E13F5B50B80E2BEEE97B56349E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_3FA40C3BF65C46A55C7FEEE97B55DF25" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_B93F33E13F5B50B80E2BEEE97B56349E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_B93F33E13F5B50B80E2BEEE97B56349E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_3FA40C3BF65C46A55C7FEEE97B55DF25" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_B93F33E13F5B50B80E2BEEE97B56349E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_VehicleFleetCommittedCapitalMember" xlink:label="loc_pwr_VehicleFleetCommittedCapitalMember_6E287E9C0219A603EAE1EEE97B560DBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_B93F33E13F5B50B80E2BEEE97B56349E" xlink:to="loc_pwr_VehicleFleetCommittedCapitalMember_6E287E9C0219A603EAE1EEE97B560DBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_FD3383CB6673EE094CA3EEE97B56FB63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_19CE3CDB12190C0F8599EEE97B569C30" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_FD3383CB6673EE094CA3EEE97B56FB63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_AEDAECC487107D7E1214EEE97B5787F1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_19CE3CDB12190C0F8599EEE97B569C30" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_AEDAECC487107D7E1214EEE97B5787F1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_367290ADEC3A9C457263EEE97B44EA06" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_A65925E1A536CD9DCD2BEEE97B4173DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_367290ADEC3A9C457263EEE97B44EA06" xlink:to="loc_us-gaap_ConcentrationRiskTable_A65925E1A536CD9DCD2BEEE97B4173DA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1F06A6704B8CB1051EE0EEE97B41335F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A65925E1A536CD9DCD2BEEE97B4173DA" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1F06A6704B8CB1051EE0EEE97B41335F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CEABB3C16F06C74E4997EEE97B42E473_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1F06A6704B8CB1051EE0EEE97B41335F" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CEABB3C16F06C74E4997EEE97B42E473_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CEABB3C16F06C74E4997EEE97B42E473" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1F06A6704B8CB1051EE0EEE97B41335F" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CEABB3C16F06C74E4997EEE97B42E473" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_371340F973240A03D249EEE97B421659" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CEABB3C16F06C74E4997EEE97B42E473" xlink:to="loc_us-gaap_SalesRevenueNetMember_371340F973240A03D249EEE97B421659" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_EBD6183497B2D8851180EEE97B43ABA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A65925E1A536CD9DCD2BEEE97B4173DA" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_EBD6183497B2D8851180EEE97B43ABA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1FE830449336DDF788BCEEE97B433720_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_EBD6183497B2D8851180EEE97B43ABA1" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1FE830449336DDF788BCEEE97B433720_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1FE830449336DDF788BCEEE97B433720" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_EBD6183497B2D8851180EEE97B43ABA1" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1FE830449336DDF788BCEEE97B433720" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_49AB65DE2A79064421D7EEE97B43783C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_1FE830449336DDF788BCEEE97B433720" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_49AB65DE2A79064421D7EEE97B43783C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_63B1E1B38563E6E485C5EEE97B43E5F0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A65925E1A536CD9DCD2BEEE97B4173DA" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_63B1E1B38563E6E485C5EEE97B43E5F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_064EC6170F53D437FA0AEEE97B4412FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_63B1E1B38563E6E485C5EEE97B43E5F0" xlink:to="loc_us-gaap_SegmentDomain_064EC6170F53D437FA0AEEE97B4412FA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_064EC6170F53D437FA0AEEE97B4412FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_63B1E1B38563E6E485C5EEE97B43E5F0" xlink:to="loc_us-gaap_SegmentDomain_064EC6170F53D437FA0AEEE97B4412FA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OilAndGasInfrastructureServicesMember" xlink:label="loc_pwr_OilAndGasInfrastructureServicesMember_4E378867086DFEB734B7EEE97B44C5F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_064EC6170F53D437FA0AEEE97B4412FA" xlink:to="loc_pwr_OilAndGasInfrastructureServicesMember_4E378867086DFEB734B7EEE97B44C5F9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition" xlink:label="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition_0ED2C8B3D65F6B562A4BEEE97B451C1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_367290ADEC3A9C457263EEE97B44EA06" xlink:to="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition_0ED2C8B3D65F6B562A4BEEE97B451C1A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue" xlink:label="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue_AF3C53F1A89E6938A1B7EEE97B456C33" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_367290ADEC3A9C457263EEE97B44EA06" xlink:to="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue_AF3C53F1A89E6938A1B7EEE97B456C33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_DD21585AB0700FCBED18EEE97B4569A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_367290ADEC3A9C457263EEE97B44EA06" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_DD21585AB0700FCBED18EEE97B4569A1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_984FAA1B149D339D139DEEE97B5E977B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_78A633BD7C6FDA43801EEEE97B5C769E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_984FAA1B149D339D139DEEE97B5E977B" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_78A633BD7C6FDA43801EEEE97B5C769E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_77B558FF765692696D25EEE97B5C596A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_78A633BD7C6FDA43801EEEE97B5C769E" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_77B558FF765692696D25EEE97B5C596A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5C6C758C9038084FB75FEEE97B5DD168_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_77B558FF765692696D25EEE97B5C596A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5C6C758C9038084FB75FEEE97B5DD168_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5C6C758C9038084FB75FEEE97B5DD168" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_77B558FF765692696D25EEE97B5C596A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5C6C758C9038084FB75FEEE97B5DD168" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_887DDE1DE0540B791D1CEEE97B5D0306" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5C6C758C9038084FB75FEEE97B5DD168" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_887DDE1DE0540B791D1CEEE97B5D0306" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_D206AA4857428894B100EEE97B5E2AE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_984FAA1B149D339D139DEEE97B5E977B" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_D206AA4857428894B100EEE97B5E2AE3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesIndemnitiesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_40C568CAF3B84603BD37EEE97B206BDB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_E264190BE8E8156F52C6EEE97B1E116C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_40C568CAF3B84603BD37EEE97B206BDB" xlink:to="loc_us-gaap_LossContingenciesTable_E264190BE8E8156F52C6EEE97B1E116C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_07379196FAC39D997F05EEE97B1F2F48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_E264190BE8E8156F52C6EEE97B1E116C" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_07379196FAC39D997F05EEE97B1F2F48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_FEFCFE58DC3A5CC25672EEE97B1F731F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_07379196FAC39D997F05EEE97B1F2F48" xlink:to="loc_us-gaap_LossContingencyNatureDomain_FEFCFE58DC3A5CC25672EEE97B1F731F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_FEFCFE58DC3A5CC25672EEE97B1F731F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_07379196FAC39D997F05EEE97B1F2F48" xlink:to="loc_us-gaap_LossContingencyNatureDomain_FEFCFE58DC3A5CC25672EEE97B1F731F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndemnificationGuaranteeMember" xlink:label="loc_us-gaap_IndemnificationGuaranteeMember_C99183D71C9E8A07F052EEE97B1F12C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_FEFCFE58DC3A5CC25672EEE97B1F731F" xlink:to="loc_us-gaap_IndemnificationGuaranteeMember_C99183D71C9E8A07F052EEE97B1F12C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate" xlink:label="loc_us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_89F7B7BDD7C57661ADBDEEE97B201600" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_40C568CAF3B84603BD37EEE97B206BDB" xlink:to="loc_us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_89F7B7BDD7C57661ADBDEEE97B201600" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent" xlink:label="loc_us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent_3E40AC913CC3C537F162EEE97B20955E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_40C568CAF3B84603BD37EEE97B206BDB" xlink:to="loc_us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent_3E40AC913CC3C537F162EEE97B20955E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CommitmentAndContingenciesLineItems" xlink:label="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CommitmentAndContingenciesTable" xlink:label="loc_pwr_CommitmentAndContingenciesTable_FA933A607D8E1F74EB9DEEE97B3702EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_pwr_CommitmentAndContingenciesTable_FA933A607D8E1F74EB9DEEE97B3702EA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6DB8A3817A304B320C76EEE97B38366F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_CommitmentAndContingenciesTable_FA933A607D8E1F74EB9DEEE97B3702EA" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6DB8A3817A304B320C76EEE97B38366F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6DB8A3817A304B320C76EEE97B38366F" xlink:to="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6DB8A3817A304B320C76EEE97B38366F" xlink:to="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InsuranceClaimsMember" xlink:label="loc_us-gaap_InsuranceClaimsMember_5623B1BFA18B7404D181EEE97B38EDAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063" xlink:to="loc_us-gaap_InsuranceClaimsMember_5623B1BFA18B7404D181EEE97B38EDAF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_AtlanticBridgeProjectInsuranceClaimMember" xlink:label="loc_pwr_AtlanticBridgeProjectInsuranceClaimMember_6470FCB25B7EDAD0BEE6EEE97B39441B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_9B01EB31A93386DFD39BEEE97B385063" xlink:to="loc_pwr_AtlanticBridgeProjectInsuranceClaimMember_6470FCB25B7EDAD0BEE6EEE97B39441B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_ADB06E7A4ACCB90D6625EEE97B39590C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_ADB06E7A4ACCB90D6625EEE97B39590C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_A75EC03CB08B61771F1EEEE97B39CC3F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_A75EC03CB08B61771F1EEEE97B39CC3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InsuranceSettlementsReceivable" xlink:label="loc_us-gaap_InsuranceSettlementsReceivable_8397F74718C88DC4EBB4EEE97B3A008B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_us-gaap_InsuranceSettlementsReceivable_8397F74718C88DC4EBB4EEE97B3A008B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InsuranceSettlementsReceivableCurrent" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableCurrent_9F0EF1FF75C73F92048AEEE97B3A541C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableCurrent_9F0EF1FF75C73F92048AEEE97B3A541C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InsuranceSettlementsReceivableNoncurrent" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_D76921A854F67D757697EEE97B3A659B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DD1EA8453F5E9F47506DEEE97B397928" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_D76921A854F67D757697EEE97B3A659B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsLineItems" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsTable" xlink:label="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_B3FC948BED645876930BEEE97B7507A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:to="loc_dei_LegalEntityAxis_B3FC948BED645876930BEEE97B7507A1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_951462819E995DCAA36FEEE97B757AF7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_B3FC948BED645876930BEEE97B7507A1" xlink:to="loc_dei_EntityDomain_951462819E995DCAA36FEEE97B757AF7_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_951462819E995DCAA36FEEE97B757AF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_B3FC948BED645876930BEEE97B7507A1" xlink:to="loc_dei_EntityDomain_951462819E995DCAA36FEEE97B757AF7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_InfrastructureInvestorsPartnershipMember" xlink:label="loc_pwr_InfrastructureInvestorsPartnershipMember_3496BB84EE2A9255DC08EEE97B76FAB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_951462819E995DCAA36FEEE97B757AF7" xlink:to="loc_pwr_InfrastructureInvestorsPartnershipMember_3496BB84EE2A9255DC08EEE97B76FAB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_90DBAFEB741D3224779AEEE97B76F83C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:to="loc_us-gaap_TypeOfArrangementAxis_90DBAFEB741D3224779AEEE97B76F83C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CC6D2EDDF081D30153AEEE97B76C027_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_90DBAFEB741D3224779AEEE97B76F83C" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CC6D2EDDF081D30153AEEE97B76C027_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CC6D2EDDF081D30153AEEE97B76C027" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_90DBAFEB741D3224779AEEE97B76F83C" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CC6D2EDDF081D30153AEEE97B76C027" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EPCElectricTransmissionProjectMember" xlink:label="loc_pwr_EPCElectricTransmissionProjectMember_B3A0362A90CC18EF22CAEEE97B7732F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CC6D2EDDF081D30153AEEE97B76C027" xlink:to="loc_pwr_EPCElectricTransmissionProjectMember_B3A0362A90CC18EF22CAEEE97B7732F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="loc_us-gaap_OtherCommitmentsAxis_A757F2EA62C1C86FFECBEEE97B77A799" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:to="loc_us-gaap_OtherCommitmentsAxis_A757F2EA62C1C86FFECBEEE97B77A799" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_A757F2EA62C1C86FFECBEEE97B77A799" xlink:to="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_A757F2EA62C1C86FFECBEEE97B77A799" xlink:to="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CapitalforInfrastructureProjectsMember" xlink:label="loc_pwr_CapitalforInfrastructureProjectsMember_14A288BEC2902C81865DEEE97B77558B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C" xlink:to="loc_pwr_CapitalforInfrastructureProjectsMember_14A288BEC2902C81865DEEE97B77558B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember" xlink:label="loc_pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember_E84A4958854141010A67EEE97B78DA98" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_E1A6F8AE1CDFDCD64281EEE97B77D33C" xlink:to="loc_pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember_E84A4958854141010A67EEE97B78DA98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_BE42D4B7B5F3D7AB4E3AEEE97B78B45D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_C42FA2D2F4FD223E674DEEE97B75028E" xlink:to="loc_us-gaap_StatementScenarioAxis_BE42D4B7B5F3D7AB4E3AEEE97B78B45D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_ACAF22A999BE63FE30C1EEE97B7861AC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_BE42D4B7B5F3D7AB4E3AEEE97B78B45D" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_ACAF22A999BE63FE30C1EEE97B7861AC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_ACAF22A999BE63FE30C1EEE97B7861AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_BE42D4B7B5F3D7AB4E3AEEE97B78B45D" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_ACAF22A999BE63FE30C1EEE97B7861AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_9C6E460D9E18FC0D39E4EEE97B7911E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_ACAF22A999BE63FE30C1EEE97B7861AC" xlink:to="loc_us-gaap_ScenarioForecastMember_9C6E460D9E18FC0D39E4EEE97B7911E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_115C4BA4F9A761EB5ECBEEE97B79C75B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_us-gaap_OtherCommitment_115C4BA4F9A761EB5ECBEEE97B79C75B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LengthOfTransmissionLine" xlink:label="loc_pwr_LengthOfTransmissionLine_22C9F3D91350EDFA9356EEE97B7A0540" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_pwr_LengthOfTransmissionLine_22C9F3D91350EDFA9356EEE97B7A0540" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfSubstations" xlink:label="loc_pwr_NumberOfSubstations_F072C840AAB63DB8C0FFEEE97B7ABDA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_pwr_NumberOfSubstations_F072C840AAB63DB8C0FFEEE97B7ABDA4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_VoltageOfSubstations" xlink:label="loc_pwr_VoltageOfSubstations_2F25D8B61E44976E75FFEEE97B7A11E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_pwr_VoltageOfSubstations_2F25D8B61E44976E75FFEEE97B7A11E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_611FA18D3D62AC397318EEE97B7A0F9B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_611FA18D3D62AC397318EEE97B7A0F9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital" xlink:label="loc_us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital_0C8706435A813B8B4685EEE97B7B4C32" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_8AA509DD769F7A00A195EEE97B7905A7" xlink:to="loc_us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital_0C8706435A813B8B4685EEE97B7B4C32" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OperatingLeasesLineItems" xlink:label="loc_pwr_OperatingLeasesLineItems_9F9E76481749773E0C71EEE97B64D7BD" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable" xlink:label="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_65F4FF58C873ABAF3409EEE97B631E59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_OperatingLeasesLineItems_9F9E76481749773E0C71EEE97B64D7BD" xlink:to="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_65F4FF58C873ABAF3409EEE97B631E59" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_06139CD34E7E7DA2A02FEEE97B638D54" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_65F4FF58C873ABAF3409EEE97B631E59" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_06139CD34E7E7DA2A02FEEE97B638D54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_F7F28BD077482F9161DEEEE97B63FFC4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_06139CD34E7E7DA2A02FEEE97B638D54" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_F7F28BD077482F9161DEEEE97B63FFC4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_F7F28BD077482F9161DEEEE97B63FFC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_06139CD34E7E7DA2A02FEEE97B638D54" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_F7F28BD077482F9161DEEEE97B63FFC4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ResidualValueGuaranteesMember" xlink:label="loc_pwr_ResidualValueGuaranteesMember_EC60627120891C7C4067EEE97B64B81D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_F7F28BD077482F9161DEEEE97B63FFC4" xlink:to="loc_pwr_ResidualValueGuaranteesMember_EC60627120891C7C4067EEE97B64B81D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="loc_us-gaap_LeaseAndRentalExpense_D2EE018FD83B504E4210EEE97B642ACC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_OperatingLeasesLineItems_9F9E76481749773E0C71EEE97B64D7BD" xlink:to="loc_us-gaap_LeaseAndRentalExpense_D2EE018FD83B504E4210EEE97B642ACC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_92EB9BAFDFD087DF83FBEEE97B64CF5C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_OperatingLeasesLineItems_9F9E76481749773E0C71EEE97B64D7BD" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_92EB9BAFDFD087DF83FBEEE97B64CF5C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLegalProceedingsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_32486082CC8D6E6C7743EEE97B4E7FD9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_20B2517C3C8B3D1FD95AEEE97B4BC042" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_32486082CC8D6E6C7743EEE97B4E7FD9" xlink:to="loc_us-gaap_LossContingenciesTable_20B2517C3C8B3D1FD95AEEE97B4BC042" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseAxis" xlink:label="loc_srt_LitigationCaseAxis_9AC1D33D9BCF4B3681F0EEE97B4C77B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_20B2517C3C8B3D1FD95AEEE97B4BC042" xlink:to="loc_srt_LitigationCaseAxis_9AC1D33D9BCF4B3681F0EEE97B4C77B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseTypeDomain" xlink:label="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_9AC1D33D9BCF4B3681F0EEE97B4C77B9" xlink:to="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_LitigationCaseTypeDomain" xlink:label="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_9AC1D33D9BCF4B3681F0EEE97B4C77B9" xlink:to="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_MaurepasProjectDisputeMember" xlink:label="loc_pwr_MaurepasProjectDisputeMember_70D8D2D86F52AA871F91EEE97B4C758C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243" xlink:to="loc_pwr_MaurepasProjectDisputeMember_70D8D2D86F52AA871F91EEE97B4C758C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember" xlink:label="loc_pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember_E4DBDB22150A68A1C671EEE97B4DD53D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_58505094AE9A5F7787B8EEE97B4C5243" xlink:to="loc_pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember_E4DBDB22150A68A1C671EEE97B4DD53D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_4D4D4635C2F7CEC42E21EEE97B4D62C5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_20B2517C3C8B3D1FD95AEEE97B4BC042" xlink:to="loc_srt_RangeAxis_4D4D4635C2F7CEC42E21EEE97B4D62C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A8A6A8C73772DD8F2A42EEE97B4DBA4E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_4D4D4635C2F7CEC42E21EEE97B4D62C5" xlink:to="loc_srt_RangeMember_A8A6A8C73772DD8F2A42EEE97B4DBA4E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A8A6A8C73772DD8F2A42EEE97B4DBA4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_4D4D4635C2F7CEC42E21EEE97B4D62C5" xlink:to="loc_srt_RangeMember_A8A6A8C73772DD8F2A42EEE97B4DBA4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_FB5AE2984166392D548BEEE97B4DB5D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A8A6A8C73772DD8F2A42EEE97B4DBA4E" xlink:to="loc_srt_MaximumMember_FB5AE2984166392D548BEEE97B4DB5D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss" xlink:label="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_B45F5C5F6044EA1E1857EEE97B4E597D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_32486082CC8D6E6C7743EEE97B4E7FD9" xlink:to="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_B45F5C5F6044EA1E1857EEE97B4E597D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyDamagesSoughtValue" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_47FCC6AC90D2334473DDEEE97B4EF53F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_32486082CC8D6E6C7743EEE97B4E7FD9" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_47FCC6AC90D2334473DDEEE97B4EF53F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLettersOfCreditDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_5D7FB399FEC9678B0035EEE97B3018E1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_1E4F53154E08FB363128EEE97B2F4E86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_5D7FB399FEC9678B0035EEE97B3018E1" xlink:to="loc_us-gaap_LossContingenciesTable_1E4F53154E08FB363128EEE97B2F4E86" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_79E73EF2EDE056E6502DEEE97B2F2CBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_1E4F53154E08FB363128EEE97B2F4E86" xlink:to="loc_us-gaap_CreditFacilityAxis_79E73EF2EDE056E6502DEEE97B2F2CBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_1289B69ED89A5F6CEBB3EEE97B30815D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_79E73EF2EDE056E6502DEEE97B2F2CBF" xlink:to="loc_us-gaap_CreditFacilityDomain_1289B69ED89A5F6CEBB3EEE97B30815D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_1289B69ED89A5F6CEBB3EEE97B30815D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_79E73EF2EDE056E6502DEEE97B2F2CBF" xlink:to="loc_us-gaap_CreditFacilityDomain_1289B69ED89A5F6CEBB3EEE97B30815D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_D5FC68B29ADD03BCB8CEEEE97B305E04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_1289B69ED89A5F6CEBB3EEE97B30815D" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_D5FC68B29ADD03BCB8CEEEE97B305E04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_1D80F636C752EBFC5EF5EEE97B30EF25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_5D7FB399FEC9678B0035EEE97B3018E1" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_1D80F636C752EBFC5EF5EEE97B30EF25" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_C9D086FBF75E57877D92EEE97B28726E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_F9F4CE0ADEA157C3ECDDEEE97B2600F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C9D086FBF75E57877D92EEE97B28726E" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_F9F4CE0ADEA157C3ECDDEEE97B2600F8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_AC4943E838448C925DEEEEE97B2668AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_F9F4CE0ADEA157C3ECDDEEE97B2600F8" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_AC4943E838448C925DEEEEE97B2668AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_6C3465D0A477F26DFEB6EEE97B27B210_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_AC4943E838448C925DEEEEE97B2668AE" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_6C3465D0A477F26DFEB6EEE97B27B210_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_6C3465D0A477F26DFEB6EEE97B27B210" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_AC4943E838448C925DEEEEE97B2668AE" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_6C3465D0A477F26DFEB6EEE97B27B210" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceGuaranteeMember" xlink:label="loc_us-gaap_PerformanceGuaranteeMember_8661E63363191456470CEEE97B27B3FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_6C3465D0A477F26DFEB6EEE97B27B210" xlink:to="loc_us-gaap_PerformanceGuaranteeMember_8661E63363191456470CEEE97B27B3FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_824FF2A8B7AE0646D53EEEE97B2871A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_F9F4CE0ADEA157C3ECDDEEE97B2600F8" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_824FF2A8B7AE0646D53EEEE97B2871A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_334A777EC65AFE7EC471EEE97B28D750_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_824FF2A8B7AE0646D53EEEE97B2871A2" xlink:to="loc_us-gaap_LossContingencyNatureDomain_334A777EC65AFE7EC471EEE97B28D750_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_334A777EC65AFE7EC471EEE97B28D750" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_824FF2A8B7AE0646D53EEEE97B2871A2" xlink:to="loc_us-gaap_LossContingencyNatureDomain_334A777EC65AFE7EC471EEE97B28D750" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EstimateMember" xlink:label="loc_pwr_EstimateMember_01921F1825F441627287EEE97B28E01D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_334A777EC65AFE7EC471EEE97B28D750" xlink:to="loc_pwr_EstimateMember_01921F1825F441627287EEE97B28E01D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_859849E17917B8EF2B12EEE97B291C58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C9D086FBF75E57877D92EEE97B28726E" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_859849E17917B8EF2B12EEE97B291C58" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EstimatedCostsToCompleteBondedProjects" xlink:label="loc_pwr_EstimatedCostsToCompleteBondedProjects_5DAA33C73935C8DC20C9EEE97B29C8FC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C9D086FBF75E57877D92EEE97B28726E" xlink:to="loc_pwr_EstimatedCostsToCompleteBondedProjects_5DAA33C73935C8DC20C9EEE97B29C8FC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_A81D38C52CCCDDF227C2EEE97E35AB6C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_DEDACFF890B7BFE168D6EEE97E33B3AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_A81D38C52CCCDDF227C2EEE97E35AB6C" xlink:to="loc_us-gaap_StatementTable_DEDACFF890B7BFE168D6EEE97E33B3AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_23E7599312C38418D422EEE97E347277" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_DEDACFF890B7BFE168D6EEE97E33B3AB" xlink:to="loc_us-gaap_StatementClassOfStockAxis_23E7599312C38418D422EEE97E347277" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_23E7599312C38418D422EEE97E347277" xlink:to="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_23E7599312C38418D422EEE97E347277" xlink:to="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_5AF131C7ABDE5C3DC3B3EEE97E34FE81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE" xlink:to="loc_pwr_ExchangeableSharesMember_5AF131C7ABDE5C3DC3B3EEE97E34FE81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_C6B3EABFD84741618446EEE97E35E147" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BCBCD56E9DCC3DD10CC5EEE97E348EDE" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_C6B3EABFD84741618446EEE97E35E147" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A81D38C52CCCDDF227C2EEE97E35AB6C" xlink:to="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_20AC30B352D1BAE060A3EEE97E369516" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_20AC30B352D1BAE060A3EEE97E369516" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_27D7A6261AEE61E74BA4EEE97E36066C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_27D7A6261AEE61E74BA4EEE97E36066C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNet" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_BB6C6DA3C9FF83D2F678EEE97E366351" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_BB6C6DA3C9FF83D2F678EEE97E366351" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_580A16F66DE8C48A4669EEE97E362CCA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_InventoryNet_580A16F66DE8C48A4669EEE97E362CCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_DFC01AA5DA2A36C07AA4EEE97E36E80D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_DFC01AA5DA2A36C07AA4EEE97E36E80D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_BB67E14DA41D6A628B33EEE97E37BBD2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_DB28F7607360C5B68194EEE97E3514C0" xlink:to="loc_us-gaap_AssetsCurrent_BB67E14DA41D6A628B33EEE97E37BBD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_04AD71BC5BB9B15343B4EEE97E37A8FC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_04AD71BC5BB9B15343B4EEE97E37A8FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_DBFD275F2069A8A875F2EEE97E371D23" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_DBFD275F2069A8A875F2EEE97E371D23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_91B7DE2DCC04E175EAEDEEE97E375C55" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_91B7DE2DCC04E175EAEDEEE97E375C55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_3DC49D77DFC414E04938EEE97E375F6F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_Goodwill_3DC49D77DFC414E04938EEE97E375F6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_B4AA00219FDCCE1B472DEEE97E37A388" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3659432CF5E96F19B5EAEEE97E354F12" xlink:to="loc_us-gaap_Assets_B4AA00219FDCCE1B472DEEE97E37A388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A81D38C52CCCDDF227C2EEE97E35AB6C" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtCurrent" xlink:label="loc_us-gaap_DebtCurrent_F5CCD8727BC791E19866EEE97E384A75" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:to="loc_us-gaap_DebtCurrent_F5CCD8727BC791E19866EEE97E384A75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_4FEE2E967B0EF3C2881CEEE97E38350F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_4FEE2E967B0EF3C2881CEEE97E38350F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_EEDE35EF71E731798392EEE97E38D5A0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:to="loc_us-gaap_ContractWithCustomerLiability_EEDE35EF71E731798392EEE97E38D5A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_697A37AF464D8509347AEEE97E397D9C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_0BD0EFF0D088CC2C5604EEE97E38DF41" xlink:to="loc_us-gaap_LiabilitiesCurrent_697A37AF464D8509347AEEE97E397D9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_C824C8FE2F2141B84A63EEE97E391649" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_C824C8FE2F2141B84A63EEE97E391649" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_C07B1CEEC164239D8491EEE97E39A86E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_C07B1CEEC164239D8491EEE97E39A86E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_EE76105D0D38E5EEA607EEE97E3923C7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_EE76105D0D38E5EEA607EEE97E3923C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_F5D288A7050E9C910F34EEE97E399C33" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_Liabilities_F5D288A7050E9C910F34EEE97E399C33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_A137AD1DE133968E88A1EEE97E3A854D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_CommitmentsAndContingencies_A137AD1DE133968E88A1EEE97E3A854D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_648EA684A71120FDB20FEEE97E3A8489" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_CommonStockValue_648EA684A71120FDB20FEEE97E3A8489" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_24520CD1BF46B702AD2BEEE97E3AE31E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_PreferredStockValue_24520CD1BF46B702AD2BEEE97E3AE31E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_497E02EC9311EBDF23DAEEE97E3A4B68" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_497E02EC9311EBDF23DAEEE97E3A4B68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_BC4EDF18E369E0167DB5EEE97E3B9E7F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_BC4EDF18E369E0167DB5EEE97E3B9E7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_497EA9551F6BF5F3DAD8EEE97E3B02F8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_497EA9551F6BF5F3DAD8EEE97E3B02F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_C2474733F4CDA18D3278EEE97E3B5824" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_TreasuryStockValue_C2474733F4CDA18D3278EEE97E3B5824" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_AC5A78C29ED35A8CCF72EEE97E3BBA7C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_StockholdersEquity_AC5A78C29ED35A8CCF72EEE97E3BBA7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_7392605FDD60898923DEEEE97E3B27EC" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_MinorityInterest_7392605FDD60898923DEEEE97E3B27EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4E208F42BBC2FDCE4DC5EEE97E3B38B1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A0F5081F23DC4F5E295DEEE97E3A202F" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4E208F42BBC2FDCE4DC5EEE97E3B38B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_BCC9D8D5AE99D6205C9DEEE97E3BAE1F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_26201B697A1FBE2494A0EEE97E384681" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_BCC9D8D5AE99D6205C9DEEE97E3BAE1F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_115BE75FE55FB6AA9700EEE97E210779" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_StatementTable_115BE75FE55FB6AA9700EEE97E210779" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_7804BA2ED372E1521113EEE97E21F0CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_115BE75FE55FB6AA9700EEE97E210779" xlink:to="loc_us-gaap_StatementClassOfStockAxis_7804BA2ED372E1521113EEE97E21F0CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7804BA2ED372E1521113EEE97E21F0CC" xlink:to="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7804BA2ED372E1521113EEE97E21F0CC" xlink:to="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_3AD6CAF10BFE91425C20EEE97E22DDA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B" xlink:to="loc_pwr_ExchangeableSharesMember_3AD6CAF10BFE91425C20EEE97E22DDA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_D12DB7A501391AED7777EEE97E22FE11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_A29D1687046DB6ADF879EEE97E21711B" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_D12DB7A501391AED7777EEE97E22FE11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_A9FBFD33FA8C1BE6F68DEEE97E22BCA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_A9FBFD33FA8C1BE6F68DEEE97E22BCA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_73F2CD9B0AE12A90E7FEEEE97E237A25" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_73F2CD9B0AE12A90E7FEEEE97E237A25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_41411EF8B76F91ECD502EEE97E23D889" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_41411EF8B76F91ECD502EEE97E23D889" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_A0F5DC77DD69ABC2E787EEE97E2306E1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_A0F5DC77DD69ABC2E787EEE97E2306E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_AB76E474B49A9882263EEEE97E23911D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_AB76E474B49A9882263EEEE97E23911D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockNoParValue" xlink:label="loc_us-gaap_CommonStockNoParValue_6506254A0A04C9D2F58BEEE97E23E5C6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_CommonStockNoParValue_6506254A0A04C9D2F58BEEE97E23E5C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_3C8BB05ED7F7A13F1C55EEE97E23EC90" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_CommonStockSharesIssued_3C8BB05ED7F7A13F1C55EEE97E23EC90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_0659B51595A4FC1AFDDAEEE97E247BC2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_0659B51595A4FC1AFDDAEEE97E247BC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_BC9613FB63E99818CC05EEE97E2468D7" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_BC9613FB63E99818CC05EEE97E2468D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_529A149C39DEC19776D3EEE97E242DDB" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_529A149C39DEC19776D3EEE97E242DDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_6B8713B9039C03312ABAEEE97E240A2E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_PreferredStockSharesIssued_6B8713B9039C03312ABAEEE97E240A2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_906A6C35831B1B64BBEAEEE97E25E98C" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_906A6C35831B1B64BBEAEEE97E25E98C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_A83DEEA65E559BCC0F40EEE97E253EB8" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ED810A0EEE86435D4BE1EEE97E22BCD8" xlink:to="loc_us-gaap_TreasuryStockShares_A83DEEA65E559BCC0F40EEE97E253EB8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfOperations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_3E19F87CEF61852654FAEEE97C1FF680" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_5F7A9E9AB9FF0632C652EEE97C1788F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_3E19F87CEF61852654FAEEE97C1FF680" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_5F7A9E9AB9FF0632C652EEE97C1788F5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_864DDD97BE989B5642C0EEE97C186037" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_5F7A9E9AB9FF0632C652EEE97C1788F5" xlink:to="loc_us-gaap_CreditFacilityAxis_864DDD97BE989B5642C0EEE97C186037" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_864DDD97BE989B5642C0EEE97C186037" xlink:to="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_864DDD97BE989B5642C0EEE97C186037" xlink:to="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_E7182A83DC90FE23ACE9EEE97C189006" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_E7182A83DC90FE23ACE9EEE97C189006" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BorrowingsUnderCreditFacilityMember" xlink:label="loc_pwr_BorrowingsUnderCreditFacilityMember_44B794943275125E2328EEE97C1945B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_8968D17D4D71B2F2CEB2EEE97C18C4BC" xlink:to="loc_pwr_BorrowingsUnderCreditFacilityMember_44B794943275125E2328EEE97C1945B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_64140BDAA6515BA6387EEEE97C19EC0E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_5F7A9E9AB9FF0632C652EEE97C1788F5" xlink:to="loc_srt_CurrencyAxis_64140BDAA6515BA6387EEEE97C19EC0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_64140BDAA6515BA6387EEEE97C19EC0E" xlink:to="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_64140BDAA6515BA6387EEEE97C19EC0E" xlink:to="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_USD" xlink:label="loc_currency_USD_8F1954FE973C779E629AEEE97C19EFE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:to="loc_currency_USD_8F1954FE973C779E629AEEE97C19EFE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_CAD" xlink:label="loc_currency_CAD_C9608E62F010076CB5D5EEE97C19E50F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:to="loc_currency_CAD_C9608E62F010076CB5D5EEE97C19E50F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CanadianAndAustralianDollarsMember" xlink:label="loc_pwr_CanadianAndAustralianDollarsMember_C9ECB8835CFC14F09A19EEE97C1A4D6A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:to="loc_pwr_CanadianAndAustralianDollarsMember_C9ECB8835CFC14F09A19EEE97C1A4D6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AUD" xlink:label="loc_currency_AUD_F0A6445C79B2D30BAE97EEE97C1FF993" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_996159BF0652793D588BEEE97C19F1F9" xlink:to="loc_currency_AUD_F0A6445C79B2D30BAE97EEE97C1FF993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_9EF2644485A831586B14EEE97C1FE779" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_3E19F87CEF61852654FAEEE97C1FF680" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_9EF2644485A831586B14EEE97C1FE779" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_7FF9E741D2BEC2DCCC3DEEE97C206001" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_3E19F87CEF61852654FAEEE97C1FF680" xlink:to="loc_us-gaap_LineOfCredit_7FF9E741D2BEC2DCCC3DEEE97C206001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_1EC05114F1E0BF754BB1EEE97C209FFE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_3E19F87CEF61852654FAEEE97C1FF680" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_1EC05114F1E0BF754BB1EEE97C209FFE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_56D10F9FD0FF6C0383E1EEE97BECF6E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:to="loc_us-gaap_DebtInstrumentAxis_56D10F9FD0FF6C0383E1EEE97BECF6E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8FBD39AB06A35D9971E2EEE97BEC9514_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_56D10F9FD0FF6C0383E1EEE97BECF6E4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8FBD39AB06A35D9971E2EEE97BEC9514_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8FBD39AB06A35D9971E2EEE97BEC9514" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_56D10F9FD0FF6C0383E1EEE97BECF6E4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8FBD39AB06A35D9971E2EEE97BEC9514" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SeniorSecuredCreditFacilityMember" xlink:label="loc_pwr_SeniorSecuredCreditFacilityMember_85CC4CD303ECF1A3C2E9EEE97BEC1424" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8FBD39AB06A35D9971E2EEE97BEC9514" xlink:to="loc_pwr_SeniorSecuredCreditFacilityMember_85CC4CD303ECF1A3C2E9EEE97BEC1424" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_CA1611A51101E6254036EEE97BEDC7D6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:to="loc_us-gaap_VariableRateAxis_CA1611A51101E6254036EEE97BEDC7D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_CA1611A51101E6254036EEE97BEDC7D6" xlink:to="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_CA1611A51101E6254036EEE97BEDC7D6" xlink:to="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember" xlink:label="loc_pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember_99FE709E778E65183E92EEE97BED49E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:to="loc_pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember_99FE709E778E65183E92EEE97BED49E4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember" xlink:label="loc_pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember_29DA0F88596D57D31408EEE97BEDA634" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:to="loc_pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember_29DA0F88596D57D31408EEE97BEDA634" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember" xlink:label="loc_pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember_F217342695F751816E3EEEE97BEED818" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:to="loc_pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember_F217342695F751816E3EEEE97BEED818" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExcessOfFederalFundsRateMember" xlink:label="loc_pwr_ExcessOfFederalFundsRateMember_6F3C4D8D69BB21F0ECF5EEE97BEEA386" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:to="loc_pwr_ExcessOfFederalFundsRateMember_6F3C4D8D69BB21F0ECF5EEE97BEEA386" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExcessOfEuroCurrencyRateMember" xlink:label="loc_pwr_ExcessOfEuroCurrencyRateMember_DD91270CA392082B8D96EEE97BEE8670" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4AB1FC8B4763B877EAF5EEE97BEDED2A" xlink:to="loc_pwr_ExcessOfEuroCurrencyRateMember_DD91270CA392082B8D96EEE97BEE8670" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_F49E4D38E85E1A0BE75EEEE97BEE6EF1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:to="loc_us-gaap_CreditFacilityAxis_F49E4D38E85E1A0BE75EEEE97BEE6EF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_F49E4D38E85E1A0BE75EEEE97BEE6EF1" xlink:to="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_F49E4D38E85E1A0BE75EEEE97BEE6EF1" xlink:to="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StandbyLettersOfCreditMember" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_34B1E9CB85D54FD717FEEEE97BEFCF5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_34B1E9CB85D54FD717FEEEE97BEFCF5C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PerformanceLettersOfCreditMember" xlink:label="loc_pwr_PerformanceLettersOfCreditMember_4A0A8051354EE127C3FBEEE97BEFD02B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_103F18FD0067A3501C74EEE97BEE9899" xlink:to="loc_pwr_PerformanceLettersOfCreditMember_4A0A8051354EE127C3FBEEE97BEFD02B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_692612DE27EB6072AF3EEEE97BEFBB66" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:to="loc_srt_RangeAxis_692612DE27EB6072AF3EEEE97BEFBB66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_692612DE27EB6072AF3EEEE97BEFBB66" xlink:to="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_692612DE27EB6072AF3EEEE97BEFBB66" xlink:to="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_AC9D0ABDC78440C4B3BEEEE97BEFBF50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389" xlink:to="loc_srt_MinimumMember_AC9D0ABDC78440C4B3BEEEE97BEFBF50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_27289EF9F4EF47814F08EEE97BF0EFB0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_E0E7F6322607D47A6105EEE97BEF7389" xlink:to="loc_srt_MaximumMember_27289EF9F4EF47814F08EEE97BF0EFB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_755AB00ECE60F613ED94EEE97BF0C4F1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_38885F6C479635115184EEE97BEB2F46" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_755AB00ECE60F613ED94EEE97BF0C4F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_67DF8619F70F57A8B4CCEEE97BF011A0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_755AB00ECE60F613ED94EEE97BF0C4F1" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_67DF8619F70F57A8B4CCEEE97BF011A0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_67DF8619F70F57A8B4CCEEE97BF011A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_755AB00ECE60F613ED94EEE97BF0C4F1" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_67DF8619F70F57A8B4CCEEE97BF011A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_C0270CCCFDE26F725381EEE97BF0ABC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_67DF8619F70F57A8B4CCEEE97BF011A0" xlink:to="loc_us-gaap_SubsequentEventMember_C0270CCCFDE26F725381EEE97BF0ABC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_B158866DFF9719FDD5DFEEE97BF1B650" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_B158866DFF9719FDD5DFEEE97BF1B650" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DebtInstrumentIncreaseDecreaseInMaximumAdditionalInterestAndFeeRates" xlink:label="loc_pwr_DebtInstrumentIncreaseDecreaseInMaximumAdditionalInterestAndFeeRates_71A3AE1143FA309966E5EEE97BF131F4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_DebtInstrumentIncreaseDecreaseInMaximumAdditionalInterestAndFeeRates_71A3AE1143FA309966E5EEE97BF131F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_426183C4D66DDB93651DEEE97BF17C9D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_426183C4D66DDB93651DEEE97BF17C9D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount" xlink:label="loc_pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount_53CDDA896B8F3B2F2376EEE97BF23749" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount_53CDDA896B8F3B2F2376EEE97BF23749" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement" xlink:label="loc_pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement_42C38ACF0D0166BB1460EEE97BF2D35F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement_42C38ACF0D0166BB1460EEE97BF2D35F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DebtInstrumentCovenantLeverageRatioMaximum" xlink:label="loc_pwr_DebtInstrumentCovenantLeverageRatioMaximum_BB20BF70B77BEDD78EC7EEE97BF76598" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_DebtInstrumentCovenantLeverageRatioMaximum_BB20BF70B77BEDD78EC7EEE97BF76598" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio" xlink:label="loc_pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio_2618607797E7C56A1CA7EEE97BF7D890" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio_2618607797E7C56A1CA7EEE97BF7D890" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum" xlink:label="loc_pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum_B786AA54830250A5AA5CEEE97BF76495" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum_B786AA54830250A5AA5CEEE97BF76495" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum" xlink:label="loc_pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum_B774325CA1FF706CB087EEE97BF7D3D9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum_B774325CA1FF706CB087EEE97BF7D3D9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases" xlink:label="loc_pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases_8DFD36AFA6CB56939CB8EEE97BF8BAE9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases_8DFD36AFA6CB56939CB8EEE97BF8BAE9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CrossDefaultProvisions" xlink:label="loc_pwr_CrossDefaultProvisions_717407910AF13CBFEE5EEEE97BF87248" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0A4EFFA9766707F9C094EEE97BF19156" xlink:to="loc_pwr_CrossDefaultProvisions_717407910AF13CBFEE5EEEE97BF87248" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsLongTermDebtObligationsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_72DC44B3A9617BEDF34AEEE97C660C86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_DebtInstrumentTable_72DC44B3A9617BEDF34AEEE97C660C86" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_A25A51C21565C9421DBDEEE97C662E97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_72DC44B3A9617BEDF34AEEE97C660C86" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_A25A51C21565C9421DBDEEE97C662E97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_A25A51C21565C9421DBDEEE97C662E97" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_A25A51C21565C9421DBDEEE97C662E97" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OtherLongTermDebtMember" xlink:label="loc_pwr_OtherLongTermDebtMember_AA528FC49AD71AB8A6C4EEE97C676CFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59" xlink:to="loc_pwr_OtherLongTermDebtMember_AA528FC49AD71AB8A6C4EEE97C676CFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_F3BF09C55EAB23DC829FEEE97C6739AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8484EF480DFD96C3BA0EEEE97C672B59" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_F3BF09C55EAB23DC829FEEE97C6739AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_89F0F789279843736089EEE97C688E45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_72DC44B3A9617BEDF34AEEE97C660C86" xlink:to="loc_srt_RangeAxis_89F0F789279843736089EEE97C688E45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_89F0F789279843736089EEE97C688E45" xlink:to="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_89F0F789279843736089EEE97C688E45" xlink:to="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_F79C700771E9EC6C1C19EEE97C68386C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04" xlink:to="loc_srt_MinimumMember_F79C700771E9EC6C1C19EEE97C68386C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_2989801352A9861EADA7EEE97C690AC9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_20E561020A2B4CCE20F4EEE97C689C04" xlink:to="loc_srt_MaximumMember_2989801352A9861EADA7EEE97C690AC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_48B2CFE938118E216DACEEE97C697C90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_LineOfCredit_48B2CFE938118E216DACEEE97C697C90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaap_OtherLongTermDebt_B9E3496F46B622CEC0E7EEE97C69E88D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_OtherLongTermDebt_B9E3496F46B622CEC0E7EEE97C69E88D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligations" xlink:label="loc_us-gaap_CapitalLeaseObligations_C9213AEC345FFE812161EEE97C69D64B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_CapitalLeaseObligations_C9213AEC345FFE812161EEE97C69D64B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_567B89AE544C5BB563B1EEE97C695B1F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_LongTermDebt_567B89AE544C5BB563B1EEE97C695B1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_A0519B44CEA2576550EAEEE97C6A573B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_LongTermDebtCurrent_A0519B44CEA2576550EAEEE97C6A573B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_295A7B4432412533BAA9EEE97C6AEF0B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_295A7B4432412533BAA9EEE97C6AEF0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7060E97CC782C029E9EEEEE97C6A4889" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5DA7307C9A31B6952A94EEE97C69EAF2" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7060E97CC782C029E9EEEEE97C6A4889" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsOtherFacilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_D8FE88D22B12ED488823EEE97BCFAAA4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_E2140A59B63125A1E5E8EEE97BCE4DD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D8FE88D22B12ED488823EEE97BCFAAA4" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_E2140A59B63125A1E5E8EEE97BCE4DD7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_B7C2050315080B83149AEEE97BCEA5ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E2140A59B63125A1E5E8EEE97BCE4DD7" xlink:to="loc_us-gaap_DebtInstrumentAxis_B7C2050315080B83149AEEE97BCEA5ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_F684F48B555415B9EF5BEEE97BCE0603_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_B7C2050315080B83149AEEE97BCEA5ED" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_F684F48B555415B9EF5BEEE97BCE0603_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_F684F48B555415B9EF5BEEE97BCE0603" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_B7C2050315080B83149AEEE97BCEA5ED" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_F684F48B555415B9EF5BEEE97BCE0603" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OtherCreditFacilitiesMember" xlink:label="loc_pwr_OtherCreditFacilitiesMember_2D82CF47D5D3E900C2BAEEE97BCF5417" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_F684F48B555415B9EF5BEEE97BCE0603" xlink:to="loc_pwr_OtherCreditFacilitiesMember_2D82CF47D5D3E900C2BAEEE97BCF5417" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_798276B56FEA20BB1800EEE97BCFBA12" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E2140A59B63125A1E5E8EEE97BCE4DD7" xlink:to="loc_us-gaap_CreditFacilityAxis_798276B56FEA20BB1800EEE97BCFBA12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_E044F7A38CE7852CAA48EEE97BCFA5BD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_798276B56FEA20BB1800EEE97BCFBA12" xlink:to="loc_us-gaap_CreditFacilityDomain_E044F7A38CE7852CAA48EEE97BCFA5BD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_E044F7A38CE7852CAA48EEE97BCFA5BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_798276B56FEA20BB1800EEE97BCFBA12" xlink:to="loc_us-gaap_CreditFacilityDomain_E044F7A38CE7852CAA48EEE97BCFA5BD" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_FD42D74448CBBD220D69EEE97BCFC89D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_E044F7A38CE7852CAA48EEE97BCFA5BD" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_FD42D74448CBBD220D69EEE97BCFC89D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_20D6F70290A8AB34B995EEE97BD02489" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D8FE88D22B12ED488823EEE97BCFAAA4" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_20D6F70290A8AB34B995EEE97BD02489" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_206E81820BB6E6C97A1EEEE97BD0D7BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D8FE88D22B12ED488823EEE97BCFAAA4" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_206E81820BB6E6C97A1EEEE97BD0D7BC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_E40C1624ECCAB8B0B096EEE97C41721B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_E40C1624ECCAB8B0B096EEE97C41721B" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_E2747A40CD86FF2CEA99EEE97C38ACA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:to="loc_srt_CurrencyAxis_E2747A40CD86FF2CEA99EEE97C38ACA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_E2747A40CD86FF2CEA99EEE97C38ACA4" xlink:to="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_E2747A40CD86FF2CEA99EEE97C38ACA4" xlink:to="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_USD" xlink:label="loc_currency_USD_3EA35E9291E9BF5089E7EEE97C386508" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B" xlink:to="loc_currency_USD_3EA35E9291E9BF5089E7EEE97C386508" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_CAD" xlink:label="loc_currency_CAD_12AC89EF6E7C0AF8A067EEE97C39591C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B" xlink:to="loc_currency_CAD_12AC89EF6E7C0AF8A067EEE97C39591C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AUD" xlink:label="loc_currency_AUD_FAE4A4AEF04241F50CAAEEE97C3973E7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_C449AFA46932D8498613EEE97C38003B" xlink:to="loc_currency_AUD_FAE4A4AEF04241F50CAAEEE97C3973E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_332B3010C9687D904728EEE97C39EE77" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:to="loc_us-gaap_DebtInstrumentAxis_332B3010C9687D904728EEE97C39EE77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_94986067AFE1715F8621EEE97C394919_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_332B3010C9687D904728EEE97C39EE77" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_94986067AFE1715F8621EEE97C394919_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_94986067AFE1715F8621EEE97C394919" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_332B3010C9687D904728EEE97C39EE77" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_94986067AFE1715F8621EEE97C394919" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SeniorSecuredCreditFacilityMember" xlink:label="loc_pwr_SeniorSecuredCreditFacilityMember_F00FC4E531CDB6CD4681EEE97C398854" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_94986067AFE1715F8621EEE97C394919" xlink:to="loc_pwr_SeniorSecuredCreditFacilityMember_F00FC4E531CDB6CD4681EEE97C398854" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_D7F41017721C0BA5760AEEE97C3FA3CE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:to="loc_us-gaap_CreditFacilityAxis_D7F41017721C0BA5760AEEE97C3FA3CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_D7F41017721C0BA5760AEEE97C3FA3CE" xlink:to="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_D7F41017721C0BA5760AEEE97C3FA3CE" xlink:to="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_2C05563DD147B590DA99EEE97C3F9738" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_2C05563DD147B590DA99EEE97C3F9738" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TermLoanMember" xlink:label="loc_pwr_TermLoanMember_FEA4F963C31F453BA284EEE97C4040C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:to="loc_pwr_TermLoanMember_FEA4F963C31F453BA284EEE97C4040C2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember" xlink:label="loc_pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember_C079F512DBE5B0A3693DEEE97C407315" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:to="loc_pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember_C079F512DBE5B0A3693DEEE97C407315" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SwingLinesLoanMember" xlink:label="loc_pwr_SwingLinesLoanMember_436793F21F63930D5ABEEEE97C4095A8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_3627B8713CD0102751A4EEE97C3F83E2" xlink:to="loc_pwr_SwingLinesLoanMember_436793F21F63930D5ABEEEE97C4095A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_11724F493E73509BBD74EEE97C40A1EE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_3CC35B8190F1D5D975B0EEE97C371792" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_11724F493E73509BBD74EEE97C40A1EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_AE28B8DD81B4616A56AAEEE97C4014B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_11724F493E73509BBD74EEE97C40A1EE" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_AE28B8DD81B4616A56AAEEE97C4014B7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_AE28B8DD81B4616A56AAEEE97C4014B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_11724F493E73509BBD74EEE97C40A1EE" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_AE28B8DD81B4616A56AAEEE97C4014B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_E9A5CD9869291E995289EEE97C4029D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_AE28B8DD81B4616A56AAEEE97C4014B7" xlink:to="loc_us-gaap_SubsequentEventMember_E9A5CD9869291E995289EEE97C4029D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_8FCAFA91DA54CB73C6CAEEE97C41AC40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_E40C1624ECCAB8B0B096EEE97C41721B" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_8FCAFA91DA54CB73C6CAEEE97C41AC40" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity" xlink:label="loc_pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity_D6C14DC35DC0E6B55BB7EEE97C4176E2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_E40C1624ECCAB8B0B096EEE97C41721B" xlink:to="loc_pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity_D6C14DC35DC0E6B55BB7EEE97C4176E2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement" xlink:label="loc_pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement_D87103FF0BB13C9F7D8AEEE97C41CE0B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_E40C1624ECCAB8B0B096EEE97C41721B" xlink:to="loc_pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement_D87103FF0BB13C9F7D8AEEE97C41CE0B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/DocumentAndEntityInformation" xlink:type="extended">
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:type="locator" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_1497F38F97272AA330F7EF33487026CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_DocumentInformationTable_1497F38F97272AA330F7EF33487026CB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_DDEBA54267FF03BC7806EF33487780B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_1497F38F97272AA330F7EF33487026CB" xlink:to="loc_us-gaap_StatementClassOfStockAxis_DDEBA54267FF03BC7806EF33487780B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_DDEBA54267FF03BC7806EF33487780B8" xlink:to="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_DDEBA54267FF03BC7806EF33487780B8" xlink:to="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CommonStockClassUndefinedMember" xlink:label="loc_pwr_CommonStockClassUndefinedMember_09113B7F1DF1F42E805FEF334878C486" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0" xlink:to="loc_pwr_CommonStockClassUndefinedMember_09113B7F1DF1F42E805FEF334878C486" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_C2790783E326AE47377CEF334879D192" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0" xlink:to="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_C2790783E326AE47377CEF334879D192" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember_FB229642EDCBF686F80DEF3348794EB2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_170CD59A0788A830E275EF3348772EF0" xlink:to="loc_pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember_FB229642EDCBF686F80DEF3348794EB2" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_3225FD7DDDE62ECDA02FEF33487A4016" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_DocumentType_3225FD7DDDE62ECDA02FEF33487A4016" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_473FE7BAD95407B78CC4EF33487F75E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_AmendmentFlag_473FE7BAD95407B78CC4EF33487F75E1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_3141322069133C5B885AEF33487F5C2D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_DocumentPeriodEndDate_3141322069133C5B885AEF33487F5C2D" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_4332642C87BFD4189B19EF33487F98B4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_DocumentFiscalYearFocus_4332642C87BFD4189B19EF33487F98B4" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_382AF89A25B4889A5924EF334880ECC7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_DocumentFiscalPeriodFocus_382AF89A25B4889A5924EF334880ECC7" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_819C406BB0D5B28B225FEF33488042C6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_TradingSymbol_819C406BB0D5B28B225FEF33488042C6" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_D402B1F345939DFF0D35EF334881A4ED" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntityRegistrantName_D402B1F345939DFF0D35EF334881A4ED" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_14D806B895C02B92075DEF3348811107" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntityCentralIndexKey_14D806B895C02B92075DEF3348811107" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_A3EDD5032EF413261A44EF3348815679" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_CurrentFiscalYearEndDate_A3EDD5032EF413261A44EF3348815679" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_C60FCBA95FDF750B154EEF334882046F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntityFilerCategory_C60FCBA95FDF750B154EEF334882046F" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_7F564DBC2B80109E88C5EF3348826F75" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntityEmergingGrowthCompany_7F564DBC2B80109E88C5EF3348826F75" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_48E19A65FFA2D63A567AEF334882F835" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntitySmallBusiness_48E19A65FFA2D63A567AEF334882F835" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_EA0FCF1BF7361F57A3ADEF334882DDC7" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_7913A68B6D7F99675D0DEF33487AE516" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_EA0FCF1BF7361F57A3ADEF334882DDC7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/Equity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8CBA3150E6A527FF1FCDEEE97B949A56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8CBA3150E6A527FF1FCDEEE97B949A56" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_F335874178562CDC4354EEE97B94C695" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8CBA3150E6A527FF1FCDEEE97B949A56" xlink:to="loc_us-gaap_AwardTypeAxis_F335874178562CDC4354EEE97B94C695" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FCE7A3832CFC94C79B25EEE97B957142_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_F335874178562CDC4354EEE97B94C695" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FCE7A3832CFC94C79B25EEE97B957142_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FCE7A3832CFC94C79B25EEE97B957142" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_F335874178562CDC4354EEE97B94C695" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FCE7A3832CFC94C79B25EEE97B957142" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PerformanceUnitsMember" xlink:label="loc_pwr_PerformanceUnitsMember_161BA606E5D911D713ABEEE97B958C10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FCE7A3832CFC94C79B25EEE97B957142" xlink:to="loc_pwr_PerformanceUnitsMember_161BA606E5D911D713ABEEE97B958C10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_AB017F119DE588353F90EEE97B951CF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:to="loc_us-gaap_SharePrice_AB017F119DE588353F90EEE97B951CF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_7933667AC00465611857EEE97B95FF80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_7933667AC00465611857EEE97B95FF80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_A0BA0F013D4272D8EADBEEE97B96B747" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_A0BA0F013D4272D8EADBEEE97B96B747" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_1AF4CA60E31DE6DB9999EEE97B96C6C9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_754327A32F2787DD9136EEE97B95A309" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_1AF4CA60E31DE6DB9999EEE97B96C6C9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1B83597673FAD397183EEEE97B9B9C3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1B83597673FAD397183EEEE97B9B9C3B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_A151139B777A0C8CDF7AEEE97B9B1541" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1B83597673FAD397183EEEE97B9B9C3B" xlink:to="loc_us-gaap_AwardTypeAxis_A151139B777A0C8CDF7AEEE97B9B1541" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7F809ECDB27D90934C7DEEE97B9B8A6D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_A151139B777A0C8CDF7AEEE97B9B1541" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7F809ECDB27D90934C7DEEE97B9B8A6D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7F809ECDB27D90934C7DEEE97B9B8A6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_A151139B777A0C8CDF7AEEE97B9B1541" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7F809ECDB27D90934C7DEEE97B9B8A6D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PerformanceUnitsMember" xlink:label="loc_pwr_PerformanceUnitsMember_717D838384747FA73A43EEE97B9BE940" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7F809ECDB27D90934C7DEEE97B9B8A6D" xlink:to="loc_pwr_PerformanceUnitsMember_717D838384747FA73A43EEE97B9BE940" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_D2F6BBE84E50790E85E0EEE97B9C79D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1B83597673FAD397183EEEE97B9B9C3B" xlink:to="loc_srt_RangeAxis_D2F6BBE84E50790E85E0EEE97B9C79D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_D2F6BBE84E50790E85E0EEE97B9C79D8" xlink:to="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_D2F6BBE84E50790E85E0EEE97B9C79D8" xlink:to="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_170DF2073EB498747B39EEE97B9C0370" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57" xlink:to="loc_srt_MinimumMember_170DF2073EB498747B39EEE97B9C0370" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_5532FED51FF78CF30546EEE97B9DDB7C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9F21200BDFB0F680DA82EEE97B9CFC57" xlink:to="loc_srt_MaximumMember_5532FED51FF78CF30546EEE97B9DDB7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1_880FC3FF7A96D9C49075EEE97B9D0D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1_880FC3FF7A96D9C49075EEE97B9D0D2B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PerformanceBasedAwardPerformancePercentage" xlink:label="loc_pwr_PerformanceBasedAwardPerformancePercentage_BACB28AA6A4B7D1FEDCDEEE97B9DEF71" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_pwr_PerformanceBasedAwardPerformancePercentage_BACB28AA6A4B7D1FEDCDEEE97B9DEF71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5D06BC3B6EB3C11F65CBEEE97B9E0B61" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5D06BC3B6EB3C11F65CBEEE97B9E0B61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_AD8AD44EC046378AF693EEE97B9E0515" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_AD8AD44EC046378AF693EEE97B9E0515" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_FCF750C3FACDED421607EEE97B9E8A26" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensation_FCF750C3FACDED421607EEE97B9E8A26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_50F725ED62FB501C1E85EEE97B9EA871" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_50F725ED62FB501C1E85EEE97B9EA871" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_CC3997B95FA24272672BEEE97B9E3F31" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB2D8F26635D1AC55687EEE97B9D9878" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_CC3997B95FA24272672BEEE97B9E3F31" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E6B2F03F40283494E1EAEEE97B8AC9F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E6B2F03F40283494E1EAEEE97B8AC9F1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_713FCFFCCBF050E19AB1EEE97B8BCDFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E6B2F03F40283494E1EAEEE97B8AC9F1" xlink:to="loc_us-gaap_AwardTypeAxis_713FCFFCCBF050E19AB1EEE97B8BCDFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_713FCFFCCBF050E19AB1EEE97B8BCDFC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_713FCFFCCBF050E19AB1EEE97B8BCDFC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RestrictedStockUnitsToBeSettledInCommonStockMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_3E4EA2D564DE601F29FEEEE97B8BCA6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_3E4EA2D564DE601F29FEEEE97B8BCA6C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RestrictedStockUnitsToBeSettledInCashMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_1C04F63DE33C739EDEF1EEE97B8CC15C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_898C06D0B27D63297C3AEEE97B8BB6AB" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_1C04F63DE33C739EDEF1EEE97B8CC15C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_F368E325E6033ECBB513EEE97B8C5EF7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E6B2F03F40283494E1EAEEE97B8AC9F1" xlink:to="loc_srt_RangeAxis_F368E325E6033ECBB513EEE97B8C5EF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_F368E325E6033ECBB513EEE97B8C5EF7" xlink:to="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_F368E325E6033ECBB513EEE97B8C5EF7" xlink:to="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_A8C1F8AA28D865070475EEE97B8D060A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845" xlink:to="loc_srt_MinimumMember_A8C1F8AA28D865070475EEE97B8D060A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_C595B132965A06D29954EEE97B8DDA11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7E0E886ED8C0E803E87AEEE97B8D2845" xlink:to="loc_srt_MaximumMember_C595B132965A06D29954EEE97B8DDA11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_EC486F73FCE8BDC5A081EEE97B8E5CA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_EC486F73FCE8BDC5A081EEE97B8E5CA4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares" xlink:label="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_92470C28E833C6202009EEE97B8E0E3A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_92470C28E833C6202009EEE97B8E0E3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_BB9A2C325A850CEF3FBDEEE97B8EED64" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_BB9A2C325A850CEF3FBDEEE97B8EED64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_6F0123E66336D1FFE0F8EEE97B8F6C18" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_6F0123E66336D1FFE0F8EEE97B8F6C18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent" xlink:label="loc_us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_ECE329C37E391A7F22F7EEE97B8F14A0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7BA767981E1844CF1E32EEE97B8E1A76" xlink:to="loc_us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_ECE329C37E391A7F22F7EEE97B8F14A0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ECF70D352A66E366B017EEE97BA48D3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ECF70D352A66E366B017EEE97BA48D3E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_DAEB9BC4E367D08B331CEEE97BA40215" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ECF70D352A66E366B017EEE97BA48D3E" xlink:to="loc_us-gaap_VestingAxis_DAEB9BC4E367D08B331CEEE97BA40215" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_DAEB9BC4E367D08B331CEEE97BA40215" xlink:to="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_DAEB9BC4E367D08B331CEEE97BA40215" xlink:to="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_06825AE1E2242BACB753EEE97BA5C2F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_06825AE1E2242BACB753EEE97BA5C2F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_D10B45E9CA82248D5C64EEE97BA52966" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_D10B45E9CA82248D5C64EEE97BA52966" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_10E96BA61E63005F4C11EEE97BA57776" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_2AC97AC044D1ABA88E52EEE97BA4C739" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_10E96BA61E63005F4C11EEE97BA57776" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_44CABC44F98F551E88CEEEE97BA50163" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ECF70D352A66E366B017EEE97BA48D3E" xlink:to="loc_us-gaap_AwardTypeAxis_44CABC44F98F551E88CEEEE97BA50163" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_352AF961B04D9D3B497FEEE97BA5490E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_44CABC44F98F551E88CEEEE97BA50163" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_352AF961B04D9D3B497FEEE97BA5490E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_352AF961B04D9D3B497FEEE97BA5490E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_44CABC44F98F551E88CEEEE97BA50163" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_352AF961B04D9D3B497FEEE97BA5490E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RestrictedStockUnitsToBeSettledInCommonStockMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_2C8D160E7FF5649B4DD1EEE97BA61C25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_352AF961B04D9D3B497FEEE97BA5490E" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_2C8D160E7FF5649B4DD1EEE97BA61C25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_A3D78D675DF7185D640BEEE97BA6BEC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_A3D78D675DF7185D640BEEE97BA6BEC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_92B1BC2CE1FC6040A410EEE97BA63761" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_92B1BC2CE1FC6040A410EEE97BA63761" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_A2927046172E0C81177CEEE97BA7F4F7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_A2927046172E0C81177CEEE97BA7F4F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_1AD292E75DDDFFD444E3EEE97BA753EB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_1AD292E75DDDFFD444E3EEE97BA753EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_7C18961BA675A3C8028DEEE97BA7D154" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_7C18961BA675A3C8028DEEE97BA7D154" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_533EBD981C1BD84AD77BEEE97BA77113" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_ShareBasedCompensation_533EBD981C1BD84AD77BEEE97BA77113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_1BB7DA3731853B5EE92FEEE97BA7C1C3" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_1BB7DA3731853B5EE92FEEE97BA7C1C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_3B8C9E8610D3D449FE45EEE97BA7E358" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9A888531CC16CEC0451CEEE97BA65A00" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_3B8C9E8610D3D449FE45EEE97BA7E358" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationStockIncentivePlansDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AA500F84593B9679E5F0EEE97BAD28E0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4153B16CB1FCE0991904EEE97BABABE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AA500F84593B9679E5F0EEE97BAD28E0" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4153B16CB1FCE0991904EEE97BABABE6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_508B754F671AE656F1E3EEE97BAC078B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4153B16CB1FCE0991904EEE97BABABE6" xlink:to="loc_us-gaap_PlanNameAxis_508B754F671AE656F1E3EEE97BAC078B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_2CED43C6B23840C8F1DEEEE97BAC4D18_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_508B754F671AE656F1E3EEE97BAC078B" xlink:to="loc_us-gaap_PlanNameDomain_2CED43C6B23840C8F1DEEEE97BAC4D18_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_2CED43C6B23840C8F1DEEEE97BAC4D18" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_508B754F671AE656F1E3EEE97BAC078B" xlink:to="loc_us-gaap_PlanNameDomain_2CED43C6B23840C8F1DEEEE97BAC4D18" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TwoThousandAndElevenPlanMember" xlink:label="loc_pwr_TwoThousandAndElevenPlanMember_A2E4982DDEE224068D03EEE97BACB14A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_2CED43C6B23840C8F1DEEEE97BAC4D18" xlink:to="loc_pwr_TwoThousandAndElevenPlanMember_A2E4982DDEE224068D03EEE97BACB14A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_CE5DE6FAB4F20CFEE4ACEEE97BAD6A76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AA500F84593B9679E5F0EEE97BAD28E0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_CE5DE6FAB4F20CFEE4ACEEE97BAD6A76" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityExchangeableSharesAndPreferredStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_15E72399AE531D371A9CEEE97BC3E5F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_15E72399AE531D371A9CEEE97BC3E5F2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_2C90116CE269EEEA4014EEE97BC4B03F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_15E72399AE531D371A9CEEE97BC3E5F2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2C90116CE269EEEA4014EEE97BC4B03F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2C90116CE269EEEA4014EEE97BC4B03F" xlink:to="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2C90116CE269EEEA4014EEE97BC4B03F" xlink:to="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesFPreferredStockMember" xlink:label="loc_us-gaap_SeriesFPreferredStockMember_D89A63C73575AA8F6AE6EEE97BC4412B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:to="loc_us-gaap_SeriesFPreferredStockMember_D89A63C73575AA8F6AE6EEE97BC4412B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_2C69587C6E017B1C9E2DEEE97BC5DE42" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_2C69587C6E017B1C9E2DEEE97BC5DE42" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesForCommonStockMember" xlink:label="loc_pwr_ExchangeableSharesForCommonStockMember_8E768091BC069CEEA8DDEEE97BC51B12" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:to="loc_pwr_ExchangeableSharesForCommonStockMember_8E768091BC069CEEA8DDEEE97BC51B12" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_C138B35D1FFD91B77305EEE97BC5F3E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:to="loc_pwr_ExchangeableSharesMember_C138B35D1FFD91B77305EEE97BC5F3E3" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_CB755A4A8A7731E6B1CEEEE97BC59691" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_135681E9331AA9440A76EEE97BC4DC8E" xlink:to="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_CB755A4A8A7731E6B1CEEEE97BC59691" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare" xlink:label="loc_pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare_78B33AF7B4244A597714EEE97BC552A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare_78B33AF7B4244A597714EEE97BC552A7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess" xlink:label="loc_pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess_EE0B6A45F80D0C9C4C42EEE97BC670F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess_EE0B6A45F80D0C9C4C42EEE97BC670F7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts" xlink:label="loc_pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts_214B2AC65B8C62A10D5EEEE97BC627C9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts_214B2AC65B8C62A10D5EEEE97BC627C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_4C7E10939AA459D4A5A6EEE97BC60B4D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_us-gaap_PreferredStockSharesIssued_4C7E10939AA459D4A5A6EEE97BC60B4D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PreferredStockSharesRetired" xlink:label="loc_pwr_PreferredStockSharesRetired_FCCB5744562800CD7C0BEEE97BC64557" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_pwr_PreferredStockSharesRetired_FCCB5744562800CD7C0BEEE97BC64557" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConversionOfStockSharesConverted1" xlink:label="loc_us-gaap_ConversionOfStockSharesConverted1_5D8D198C4DCF8358382BEEE97BC6036C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_us-gaap_ConversionOfStockSharesConverted1_5D8D198C4DCF8358382BEEE97BC6036C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_BFCC9D69DB6D7711C0D6EEE97BC68A81" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_16CCFC22EB6FF8A2FB2AEEE97BC5A44B" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_BFCC9D69DB6D7711C0D6EEE97BC68A81" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityNonControllingInterestsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/EquityTreasuryStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_07811EF20375920CBF2AEEE97BBD4F13" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_07811EF20375920CBF2AEEE97BBD4F13" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0551EEF659694E0182B4EEE97BBA8B87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0551EEF659694E0182B4EEE97BBA8B87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7CD9721E83876BE38898EEE97BBA2952_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0551EEF659694E0182B4EEE97BBA8B87" xlink:to="loc_us-gaap_ClassOfStockDomain_7CD9721E83876BE38898EEE97BBA2952_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7CD9721E83876BE38898EEE97BBA2952" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0551EEF659694E0182B4EEE97BBA8B87" xlink:to="loc_us-gaap_ClassOfStockDomain_7CD9721E83876BE38898EEE97BBA2952" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember" xlink:label="loc_pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember_09453394E83394F87224EEE97BBB0F0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7CD9721E83876BE38898EEE97BBA2952" xlink:to="loc_pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember_09453394E83394F87224EEE97BBB0F0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_00598FE0D6CAECE909BDEEE97BBBFC6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:to="loc_us-gaap_PlanNameAxis_00598FE0D6CAECE909BDEEE97BBBFC6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_5D763FE37205622882B6EEE97BBBB7A9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_00598FE0D6CAECE909BDEEE97BBBFC6D" xlink:to="loc_us-gaap_PlanNameDomain_5D763FE37205622882B6EEE97BBBB7A9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_5D763FE37205622882B6EEE97BBBB7A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_00598FE0D6CAECE909BDEEE97BBBFC6D" xlink:to="loc_us-gaap_PlanNameDomain_5D763FE37205622882B6EEE97BBBB7A9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember" xlink:label="loc_pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember_89530115211540C39855EEE97BBCD8B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_5D763FE37205622882B6EEE97BBBB7A9" xlink:to="loc_pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember_89530115211540C39855EEE97BBCD8B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_DBFEC1E747ADA2D6BD4DEEE97BBC46DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_DBFEC1E747ADA2D6BD4DEEE97BBC46DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_DBFEC1E747ADA2D6BD4DEEE97BBC46DB" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_DBFEC1E747ADA2D6BD4DEEE97BBC46DB" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_A2018RepurchaseProgramMember" xlink:label="loc_pwr_A2018RepurchaseProgramMember_6819A95F0E861DC4E21CEEE97BBC14A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053" xlink:to="loc_pwr_A2018RepurchaseProgramMember_6819A95F0E861DC4E21CEEE97BBC14A7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_A2017RepurchaseProgramMember" xlink:label="loc_pwr_A2017RepurchaseProgramMember_E39C901191D1C6CBE4D1EEE97BBCD167" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_3E552A9BEC4583092EB6EEE97BBC5053" xlink:to="loc_pwr_A2017RepurchaseProgramMember_E39C901191D1C6CBE4D1EEE97BBCD167" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_A1C42806A946BE200252EEE97BBD5771" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_F35715E98D37FC6C4563EEE97BBA2B6F" xlink:to="loc_srt_RangeAxis_A1C42806A946BE200252EEE97BBD5771" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_D198D35E042443880FC0EEE97BBDDF5E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_A1C42806A946BE200252EEE97BBD5771" xlink:to="loc_srt_RangeMember_D198D35E042443880FC0EEE97BBDDF5E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_D198D35E042443880FC0EEE97BBDDF5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_A1C42806A946BE200252EEE97BBD5771" xlink:to="loc_srt_RangeMember_D198D35E042443880FC0EEE97BBDDF5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_9931354AAF4F27668184EEE97BBDD7E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D198D35E042443880FC0EEE97BBDDF5E" xlink:to="loc_srt_MaximumMember_9931354AAF4F27668184EEE97BBDD7E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_8570AF2236A5B987079AEEE97BBE7F6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_07811EF20375920CBF2AEEE97BBD4F13" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_8570AF2236A5B987079AEEE97BBE7F6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_C6064608B505AB59B784EEE97BBE1FC0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_07811EF20375920CBF2AEEE97BBD4F13" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_C6064608B505AB59B784EEE97BBE1FC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_EEFDEC84A77009AD6B13EEE97BBE6088" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_07811EF20375920CBF2AEEE97BBD4F13" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_EEFDEC84A77009AD6B13EEE97BBE6088" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AEDB9AEFBAB956CBB8F1EEE97CD41B32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AEDB9AEFBAB956CBB8F1EEE97CD41B32" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_72E35C81E9D6D572ABF3EEE97CD45186" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_AEDB9AEFBAB956CBB8F1EEE97CD41B32" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_72E35C81E9D6D572ABF3EEE97CD45186" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_72E35C81E9D6D572ABF3EEE97CD45186" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_72E35C81E9D6D572ABF3EEE97CD45186" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_2EE2904C555AA8A239F3EEE97CD483B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_us-gaap_CustomerRelationshipsMember_2EE2904C555AA8A239F3EEE97CD483B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OrderOrProductionBacklogMember" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_EFDDA5A34FC3AD022254EEE97CD59DFC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_EFDDA5A34FC3AD022254EEE97CD59DFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_937CEC437F899584B564EEE97CD520FC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_us-gaap_TradeNamesMember_937CEC437F899584B564EEE97CD520FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_FA299BB41CC02AF43D81EEE97CD5A5FD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_FA299BB41CC02AF43D81EEE97CD5A5FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_0F6A9287BB50F9EAF4C5EEE97CD5BD69" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_0F6A9287BB50F9EAF4C5EEE97CD5BD69" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CurriculumMember" xlink:label="loc_pwr_CurriculumMember_2D38F4531AEB9D3E2015EEE97CD59B50" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0776CF0130F26CE08CAAEEE97CD457C5" xlink:to="loc_pwr_CurriculumMember_2D38F4531AEB9D3E2015EEE97CD59B50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_15771B3E2A6B23F77C93EEE97CD66CE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_15771B3E2A6B23F77C93EEE97CD66CE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8D41242E56113BE1A826EEE97CD69A01" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8D41242E56113BE1A826EEE97CD69A01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8AFD234FA22BE14AAB63EEE97CD639FF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8AFD234FA22BE14AAB63EEE97CD639FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_96DB1ADF56F0AA3D27F8EEE97CD62529" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0D9550AE3F1938F34DD9EEE97CD617AE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_96DB1ADF56F0AA3D27F8EEE97CD62529" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_82F44035722438E9A712EEE97CDD6B0D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_B4C2B933E99E09268282EEE97CD727AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_82F44035722438E9A712EEE97CDD6B0D" xlink:to="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_B4C2B933E99E09268282EEE97CD727AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_282B51187D575A75AFC4EEE97CD76120" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_B4C2B933E99E09268282EEE97CD727AB" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_282B51187D575A75AFC4EEE97CD76120" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9BE90C4411FA88F868BEEEE97CDCB92D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_282B51187D575A75AFC4EEE97CD76120" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9BE90C4411FA88F868BEEEE97CDCB92D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9BE90C4411FA88F868BEEEE97CDCB92D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_282B51187D575A75AFC4EEE97CD76120" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9BE90C4411FA88F868BEEEE97CDCB92D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_00CA03F3FF47B7F1AB6DEEE97CDC6D0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9BE90C4411FA88F868BEEEE97CDCB92D" xlink:to="loc_us-gaap_LicensingAgreementsMember_00CA03F3FF47B7F1AB6DEEE97CDC6D0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5D4BE4279C63918A9935EEE97CDD2026" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_82F44035722438E9A712EEE97CDD6B0D" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5D4BE4279C63918A9935EEE97CDD2026" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_80C818FEAFBB4B0AB200EEE97CFD35DD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_B551D1CEFB96593E8DDEEEE97CFC3891" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_80C818FEAFBB4B0AB200EEE97CFD35DD" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_B551D1CEFB96593E8DDEEEE97CFC3891" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_DB854BDC948375805010EEE97CFCBF6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_B551D1CEFB96593E8DDEEEE97CFC3891" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_DB854BDC948375805010EEE97CFCBF6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DB854BDC948375805010EEE97CFCBF6A" xlink:to="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DB854BDC948375805010EEE97CFCBF6A" xlink:to="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ElectricPowerDivisionMember" xlink:label="loc_pwr_ElectricPowerDivisionMember_C132A36E89CC5CA80113EEE97CFDAA9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD" xlink:to="loc_pwr_ElectricPowerDivisionMember_C132A36E89CC5CA80113EEE97CFDAA9C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OilAndGasDivisionMember" xlink:label="loc_pwr_OilAndGasDivisionMember_85A81938855EA698346AEEE97CFDD48D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DCE6354A56E61A69187DEEE97CFCCEDD" xlink:to="loc_pwr_OilAndGasDivisionMember_85A81938855EA698346AEEE97CFDD48D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_80C818FEAFBB4B0AB200EEE97CFD35DD" xlink:to="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_6BAA6D7F4310592F73F4EEE97CFE190D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_GoodwillGross_6BAA6D7F4310592F73F4EEE97CFE190D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_E0F663E52CEB19F97CB1EEE97CFE9D41" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_E0F663E52CEB19F97CB1EEE97CFE9D41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_D24327EA77EEE1266353EEE97CFE4022" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_Goodwill_D24327EA77EEE1266353EEE97CFE4022" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_6570329C06DEF725A965EEE97CFEFF10" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_6570329C06DEF725A965EEE97CFEFF10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_3C71D7ABFE97976A41B9EEE97CFEA2D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_3C71D7ABFE97976A41B9EEE97CFEA2D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_7A2175EF7FE808DB0152EEE97D033B4A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_604A8E4F63F43895FFE8EEE97CFD6869" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_7A2175EF7FE808DB0152EEE97D033B4A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/NewAccountingPronouncements" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/NewAccountingPronouncementsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_55FBB60E201ACFF93B97EEE97DBA9986" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_B502E54B12CF3C757B19EEE97DB8BB86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_55FBB60E201ACFF93B97EEE97DBA9986" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_B502E54B12CF3C757B19EEE97DB8BB86" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C53DC43DE9F264E06712EEE97DB9AAC3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_B502E54B12CF3C757B19EEE97DB8BB86" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C53DC43DE9F264E06712EEE97DB9AAC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_71CA878ED46CED7CFB2AEEE97DB99CA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C53DC43DE9F264E06712EEE97DB9AAC3" xlink:to="loc_us-gaap_TypeOfAdoptionMember_71CA878ED46CED7CFB2AEEE97DB99CA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_71CA878ED46CED7CFB2AEEE97DB99CA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C53DC43DE9F264E06712EEE97DB9AAC3" xlink:to="loc_us-gaap_TypeOfAdoptionMember_71CA878ED46CED7CFB2AEEE97DB99CA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_9E9EBEEBE47F76680734EEE97DB941BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_71CA878ED46CED7CFB2AEEE97DB99CA0" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_9E9EBEEBE47F76680734EEE97DB941BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_C6EC50DBE9159B0CBA5EEEE97DBA944C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_B502E54B12CF3C757B19EEE97DB8BB86" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_C6EC50DBE9159B0CBA5EEEE97DBA944C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_ADA264E0E11912B7ADB1EEE97DBADAF4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_C6EC50DBE9159B0CBA5EEEE97DBA944C" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_ADA264E0E11912B7ADB1EEE97DBADAF4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_ADA264E0E11912B7ADB1EEE97DBADAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_C6EC50DBE9159B0CBA5EEEE97DBA944C" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_ADA264E0E11912B7ADB1EEE97DBADAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member" xlink:label="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_DED308137BD760FD7BE1EEE97DBADE1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_ADA264E0E11912B7ADB1EEE97DBADAF4" xlink:to="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_DED308137BD760FD7BE1EEE97DBADE1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_181B366D0811F072E3FDEEE97DBAA7EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_55FBB60E201ACFF93B97EEE97DBA9986" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_181B366D0811F072E3FDEEE97DBAA7EF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/PerShareInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/PerShareInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/PerShareInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SegmentInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SegmentInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3559F9138097D2357E98EEE97B0B4115" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3559F9138097D2357E98EEE97B0B4115" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicDistributionAxis" xlink:label="loc_us-gaap_GeographicDistributionAxis_75B3F14F2036A3A79B84EEE97B0B06E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3559F9138097D2357E98EEE97B0B4115" xlink:to="loc_us-gaap_GeographicDistributionAxis_75B3F14F2036A3A79B84EEE97B0B06E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicDistributionDomain" xlink:label="loc_us-gaap_GeographicDistributionDomain_F432431EFFE4E27309EDEEE97B0C1590_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GeographicDistributionAxis_75B3F14F2036A3A79B84EEE97B0B06E1" xlink:to="loc_us-gaap_GeographicDistributionDomain_F432431EFFE4E27309EDEEE97B0C1590_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicDistributionDomain" xlink:label="loc_us-gaap_GeographicDistributionDomain_F432431EFFE4E27309EDEEE97B0C1590" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GeographicDistributionAxis_75B3F14F2036A3A79B84EEE97B0B06E1" xlink:to="loc_us-gaap_GeographicDistributionDomain_F432431EFFE4E27309EDEEE97B0C1590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicDistributionForeignMember" xlink:label="loc_us-gaap_GeographicDistributionForeignMember_4A36A4E8C0E013AC48BEEEE97B0C4CEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GeographicDistributionDomain_F432431EFFE4E27309EDEEE97B0C1590" xlink:to="loc_us-gaap_GeographicDistributionForeignMember_4A36A4E8C0E013AC48BEEEE97B0C4CEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_E9F52B526B7899EF1C33EEE97B0C2860" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3559F9138097D2357E98EEE97B0B4115" xlink:to="loc_srt_StatementGeographicalAxis_E9F52B526B7899EF1C33EEE97B0C2860" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_2AA43183831E89D85F15EEE97B0DADFE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_E9F52B526B7899EF1C33EEE97B0C2860" xlink:to="loc_srt_SegmentGeographicalDomain_2AA43183831E89D85F15EEE97B0DADFE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_2AA43183831E89D85F15EEE97B0DADFE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_E9F52B526B7899EF1C33EEE97B0C2860" xlink:to="loc_srt_SegmentGeographicalDomain_2AA43183831E89D85F15EEE97B0DADFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_F527AD296DB81E0D2417EEE97B0D0D86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2AA43183831E89D85F15EEE97B0DADFE" xlink:to="loc_country_CA_F527AD296DB81E0D2417EEE97B0D0D86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_201112D072EA9B6A973AEEE97B0E5A7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_us-gaap_NumberOfReportableSegments_201112D072EA9B6A973AEEE97B0E5A7E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfInternalDivisions" xlink:label="loc_pwr_NumberOfInternalDivisions_87E5576AE5BB292B0730EEE97B0E2363" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_pwr_NumberOfInternalDivisions_87E5576AE5BB292B0730EEE97B0E2363" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_EE06991EE6D003FD2F20EEE97B0EF4ED" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_EE06991EE6D003FD2F20EEE97B0EF4ED" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_PercentageOfForeignRevenue" xlink:label="loc_pwr_PercentageOfForeignRevenue_60A9783A0AA01EA483A1EEE97B0F27EB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_pwr_PercentageOfForeignRevenue_60A9783A0AA01EA483A1EEE97B0F27EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_746C84922E1C6E6B0A92EEE97B0FF0B9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_46AB2C76F7414E54CF49EEE97B0EA2EF" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_746C84922E1C6E6B0A92EEE97B0FF0B9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SegmentInformationSummarizedFinancialInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_A30712A38C5918E1644AEEE97B02638F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_69956D6F9594C815289CEEE97AFFA4D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A30712A38C5918E1644AEEE97B02638F" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_69956D6F9594C815289CEEE97AFFA4D6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_4935634012571EBB615BEEE97AFF54BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_69956D6F9594C815289CEEE97AFFA4D6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_4935634012571EBB615BEEE97AFF54BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4935634012571EBB615BEEE97AFF54BD" xlink:to="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_4935634012571EBB615BEEE97AFF54BD" xlink:to="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ElectricPowerInfrastructureMember" xlink:label="loc_pwr_ElectricPowerInfrastructureMember_84B30929534CA01E3271EEE97B004A84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE" xlink:to="loc_pwr_ElectricPowerInfrastructureMember_84B30929534CA01E3271EEE97B004A84" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OilAndGasInfrastructureServicesMember" xlink:label="loc_pwr_OilAndGasInfrastructureServicesMember_C702ED4A3DBD95A8436AEEE97B010E53" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E8D98DDB5235F607BC62EEE97B003BEE" xlink:to="loc_pwr_OilAndGasInfrastructureServicesMember_C702ED4A3DBD95A8436AEEE97B010E53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_F4955E6A5812C3C7115DEEE97B01345B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_69956D6F9594C815289CEEE97AFFA4D6" xlink:to="loc_srt_ConsolidationItemsAxis_F4955E6A5812C3C7115DEEE97B01345B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_F4955E6A5812C3C7115DEEE97B01345B" xlink:to="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_F4955E6A5812C3C7115DEEE97B01345B" xlink:to="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_499436DBC09A35ADDD87EEE97B01F5C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56" xlink:to="loc_us-gaap_OperatingSegmentsMember_499436DBC09A35ADDD87EEE97B01F5C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_E883F2B2AAF72FFCF888EEE97B02D78D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DA35361368338AF31AD5EEE97B019A56" xlink:to="loc_us-gaap_CorporateNonSegmentMember_E883F2B2AAF72FFCF888EEE97B02D78D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_98204877ED4F18746023EEE97B0208D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A30712A38C5918E1644AEEE97B02638F" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_98204877ED4F18746023EEE97B0208D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_DC60A4F3276ADD7F2E9FEEE97B020BEC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A30712A38C5918E1644AEEE97B02638F" xlink:to="loc_us-gaap_OperatingIncomeLoss_DC60A4F3276ADD7F2E9FEEE97B020BEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_520734CD205B5A578A39EEE97B03A0AD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A30712A38C5918E1644AEEE97B02638F" xlink:to="loc_us-gaap_Depreciation_520734CD205B5A578A39EEE97B03A0AD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SubsequentEvent" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SubsequentEventDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_1404D9A2A3FB6C4F55B4EEE97AC0A45F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_us-gaap_DebtInstrumentAxis_1404D9A2A3FB6C4F55B4EEE97AC0A45F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_32286626FFB0AD06858CEEE97AC00391_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_1404D9A2A3FB6C4F55B4EEE97AC0A45F" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_32286626FFB0AD06858CEEE97AC00391_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_32286626FFB0AD06858CEEE97AC00391" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_1404D9A2A3FB6C4F55B4EEE97AC0A45F" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_32286626FFB0AD06858CEEE97AC00391" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SeniorSecuredCreditFacilityMember" xlink:label="loc_pwr_SeniorSecuredCreditFacilityMember_DDBFA1FD91F3AA22F095EEE97AC0EAA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_32286626FFB0AD06858CEEE97AC00391" xlink:to="loc_pwr_SeniorSecuredCreditFacilityMember_DDBFA1FD91F3AA22F095EEE97AC0EAA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_F87A42B7C08047D3E0A0EEE97AC1244C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_us-gaap_CreditFacilityAxis_F87A42B7C08047D3E0A0EEE97AC1244C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_F87A42B7C08047D3E0A0EEE97AC1244C" xlink:to="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_F87A42B7C08047D3E0A0EEE97AC1244C" xlink:to="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_DBE01E8A08E564580577EEE97AC1B19D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_DBE01E8A08E564580577EEE97AC1B19D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TermLoanMember" xlink:label="loc_pwr_TermLoanMember_5DE0CC26655969AAF07AEEE97AC235DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882" xlink:to="loc_pwr_TermLoanMember_5DE0CC26655969AAF07AEEE97AC235DD" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SwingLinesLoanMember" xlink:label="loc_pwr_SwingLinesLoanMember_6B4A5246A8A2A96AC195EEE97AC21AB7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_66F66AC7B1F649660F4CEEE97AC19882" xlink:to="loc_pwr_SwingLinesLoanMember_6B4A5246A8A2A96AC195EEE97AC21AB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_2E6391BB4EF68F5FE7D1EEE97AC23CFE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_srt_CurrencyAxis_2E6391BB4EF68F5FE7D1EEE97AC23CFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_46847F9AE314604E88ACEEE97AC23F64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_2E6391BB4EF68F5FE7D1EEE97AC23CFE" xlink:to="loc_currency_AllCurrenciesDomain_46847F9AE314604E88ACEEE97AC23F64_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_46847F9AE314604E88ACEEE97AC23F64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_2E6391BB4EF68F5FE7D1EEE97AC23CFE" xlink:to="loc_currency_AllCurrenciesDomain_46847F9AE314604E88ACEEE97AC23F64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd#currency_AUD" xlink:label="loc_currency_AUD_4ADFBFFC849178AE491EEEE97AC39632" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_46847F9AE314604E88ACEEE97AC23F64" xlink:to="loc_currency_AUD_4ADFBFFC849178AE491EEEE97AC39632" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_70E03158C42C4B886143EEE97AC33FF9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_us-gaap_VariableRateAxis_70E03158C42C4B886143EEE97AC33FF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_70E03158C42C4B886143EEE97AC33FF9" xlink:to="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_70E03158C42C4B886143EEE97AC33FF9" xlink:to="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EurocurrencyRateMember" xlink:label="loc_pwr_EurocurrencyRateMember_FA5BC7367A14FB19B4BCEEE97AC4FE78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25" xlink:to="loc_pwr_EurocurrencyRateMember_FA5BC7367A14FB19B4BCEEE97AC4FE78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BaseRateMember" xlink:label="loc_us-gaap_BaseRateMember_0D884686EAC034B8D859EEE97AC43A63" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_296CE22AB69422FF09B7EEE97AC3EC25" xlink:to="loc_us-gaap_BaseRateMember_0D884686EAC034B8D859EEE97AC43A63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_6E8A848CAFB8CB123AE0EEE97AC4174F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_srt_RangeAxis_6E8A848CAFB8CB123AE0EEE97AC4174F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_6E8A848CAFB8CB123AE0EEE97AC4174F" xlink:to="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_6E8A848CAFB8CB123AE0EEE97AC4174F" xlink:to="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_D1E0AA152D551343110AEEE97AC5BF63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F" xlink:to="loc_srt_MinimumMember_D1E0AA152D551343110AEEE97AC5BF63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_F19752D7EB9C7D6930FBEEE97AC51940" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_B0312C350A7D70023A51EEE97AC4F56F" xlink:to="loc_srt_MaximumMember_F19752D7EB9C7D6930FBEEE97AC51940" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_66B1E3BB976F2F2B60E4EEE97AC5B003" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0092E0D5D6824E5A500DEEE97ABFA049" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_66B1E3BB976F2F2B60E4EEE97AC5B003" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_78989526673E0D4B4936EEE97AC6D126_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_66B1E3BB976F2F2B60E4EEE97AC5B003" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_78989526673E0D4B4936EEE97AC6D126_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_78989526673E0D4B4936EEE97AC6D126" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_66B1E3BB976F2F2B60E4EEE97AC5B003" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_78989526673E0D4B4936EEE97AC6D126" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_741707910265F4D03862EEE97AC6867F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_78989526673E0D4B4936EEE97AC6D126" xlink:to="loc_us-gaap_SubsequentEventMember_741707910265F4D03862EEE97AC6867F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity" xlink:label="loc_pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity_1B223AD5F0348837F326EEE97AC6B4B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_pwr_LineOfCreditFacilityIncreaseInMaximumBorrowingCapacity_1B223AD5F0348837F326EEE97AC6B4B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_A3E9055703A10DF298C0EEE97AC70D5D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_A3E9055703A10DF298C0EEE97AC70D5D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LineOfCreditFacilityOptionToIncreaseAmount" xlink:label="loc_pwr_LineOfCreditFacilityOptionToIncreaseAmount_C3408040FB1181A98502EEE97AC74D83" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_pwr_LineOfCreditFacilityOptionToIncreaseAmount_C3408040FB1181A98502EEE97AC74D83" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CrossDefaultProvisions" xlink:label="loc_pwr_CrossDefaultProvisions_7211DD1E44270801A317EEE97AC79255" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_pwr_CrossDefaultProvisions_7211DD1E44270801A317EEE97AC79255" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_6B4EA33FE85CB05902C6EEE97AC7AA57" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_6B4EA33FE85CB05902C6EEE97AC7AA57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentPrincipal" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_D10A377BC7FF8A536A58EEE97AC8330E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_0F7794808F8D609F880DEEE97AC60E71" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_D10A377BC7FF8A536A58EEE97AC8330E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsLineItems" xlink:label="loc_us-gaap_CashAndCashEquivalentsLineItems_CCE6784B18A8F4AFC16DEEE905FB0CA8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTable" xlink:label="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_ACFB8B111E8366D4CB31EEE905F9B5F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_CCE6784B18A8F4AFC16DEEE905FB0CA8" xlink:to="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_ACFB8B111E8366D4CB31EEE905F9B5F9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAxis" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_6680F5872E5C1820CC55EEE905F9AB29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_ACFB8B111E8366D4CB31EEE905F9B5F9" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_6680F5872E5C1820CC55EEE905F9AB29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_6680F5872E5C1820CC55EEE905F9AB29" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_6680F5872E5C1820CC55EEE905F9AB29" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DomesticBankAccountsMember" xlink:label="loc_pwr_DomesticBankAccountsMember_FBF0FFB20A4ED117A414EEE905FA2925" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:to="loc_pwr_DomesticBankAccountsMember_FBF0FFB20A4ED117A414EEE905FA2925" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ForeignBankAccountsMember" xlink:label="loc_pwr_ForeignBankAccountsMember_4D3021E1833D60430A94EEE905FA1746" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:to="loc_pwr_ForeignBankAccountsMember_4D3021E1833D60430A94EEE905FA1746" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_InvestmentsInJointVenturesMember" xlink:label="loc_pwr_InvestmentsInJointVenturesMember_FE3FFEB8E1FF917C903FEEE905FA1155" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:to="loc_pwr_InvestmentsInJointVenturesMember_FE3FFEB8E1FF917C903FEEE905FA1155" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DomesticJointVenturesMember" xlink:label="loc_pwr_DomesticJointVenturesMember_C15E40F7DEF4807B8B47EEE905FB3F2F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_33B456A0A09C640EA282EEE905FA7549" xlink:to="loc_pwr_DomesticJointVenturesMember_C15E40F7DEF4807B8B47EEE905FB3F2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_6AF3C94EB3E5EFC1B7CFEEE905FBF5BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_CCE6784B18A8F4AFC16DEEE905FB0CA8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_6AF3C94EB3E5EFC1B7CFEEE905FBF5BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_740F107DE03D57BFE586EEE905FBE7DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_CCE6784B18A8F4AFC16DEEE905FB0CA8" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_740F107DE03D57BFE586EEE905FBE7DD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_48DBE27A2EC2D3CC51EFEEE91E1579BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_48DBE27A2EC2D3CC51EFEEE91E1579BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_48DBE27A2EC2D3CC51EFEEE91E1579BC" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_48DBE27A2EC2D3CC51EFEEE91E1579BC" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputPriceVolatilityMember" xlink:label="loc_us-gaap_MeasurementInputPriceVolatilityMember_5456F51B425E489F7977EEE91E1562DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757" xlink:to="loc_us-gaap_MeasurementInputPriceVolatilityMember_5456F51B425E489F7977EEE91E1562DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDiscountRateMember" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_4F30CD7DC55A182ADD4AEEE91E16E3E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_6BDB546523138CE96580EEE91E156757" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_4F30CD7DC55A182ADD4AEEE91E16E3E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_54DFE6F2B5C204BD8AE0EEE91E1663F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_54DFE6F2B5C204BD8AE0EEE91E1663F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F49D92EC1FC7CE59CCF8EEE91E168A60_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_54DFE6F2B5C204BD8AE0EEE91E1663F7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F49D92EC1FC7CE59CCF8EEE91E168A60_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F49D92EC1FC7CE59CCF8EEE91E168A60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_54DFE6F2B5C204BD8AE0EEE91E1663F7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F49D92EC1FC7CE59CCF8EEE91E168A60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_9DF81047123600B0D097EEE91E1694FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F49D92EC1FC7CE59CCF8EEE91E168A60" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_9DF81047123600B0D097EEE91E1694FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_F2B6A490CF4167CEBFE7EEE91E1773C8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_F2B6A490CF4167CEBFE7EEE91E1773C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_F2B6A490CF4167CEBFE7EEE91E1773C8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_F2B6A490CF4167CEBFE7EEE91E1773C8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_AcquisitionWithoutMaximumEarnOutMember" xlink:label="loc_pwr_AcquisitionWithoutMaximumEarnOutMember_58D9DFE67119545FC4EEEEE91E177046" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:to="loc_pwr_AcquisitionWithoutMaximumEarnOutMember_58D9DFE67119545FC4EEEEE91E177046" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2018Q3Member" xlink:label="loc_pwr_Acquisitions2018Q3Member_A0B5AD6E23AA5336F768EEE91E17E699" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:to="loc_pwr_Acquisitions2018Q3Member_A0B5AD6E23AA5336F768EEE91E17E699" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_8F53F91F272725ADDB27EEE91E17E9D1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:to="loc_pwr_Acquisitions2018Member_8F53F91F272725ADDB27EEE91E17E9D1" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member" xlink:label="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_B2CE371D539E8CD9C185EEE91E187C26" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0B977D16B77D688EC0B9EEE91E17A547" xlink:to="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_B2CE371D539E8CD9C185EEE91E187C26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_007469CE278D472BA366EEE91E182A9D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_329A1E78F3B097A45628EEE91E0F2448" xlink:to="loc_srt_RangeAxis_007469CE278D472BA366EEE91E182A9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_007469CE278D472BA366EEE91E182A9D" xlink:to="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_007469CE278D472BA366EEE91E182A9D" xlink:to="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_B0495C88EC7781DEE2C4EEE91E1805BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0" xlink:to="loc_srt_MinimumMember_B0495C88EC7781DEE2C4EEE91E1805BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_EE3F8B7B8FF7D5910F20EEE91E191642" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7AE8EE8920702628B0C7EEE91E181DA0" xlink:to="loc_srt_MaximumMember_EE3F8B7B8FF7D5910F20EEE91E191642" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput_67617C86C24ED5120350EEE91E19177A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput_67617C86C24ED5120350EEE91E19177A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_63786602CAE83A112BE8EEE91E1903D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_63786602CAE83A112BE8EEE91E1903D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_BBAEFC9D7823EC937C0BEEE91E1A2A7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_BBAEFC9D7823EC937C0BEEE91E1A2A7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_3A2855883464F3409A40EEE91E1A4CAB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_3A2855883464F3409A40EEE91E1A4CAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_B131AB79AAA469D2C452EEE91E1A0219" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CF24676B130D60764E09EEE91E1953AC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_B131AB79AAA469D2C452EEE91E1A0219" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_GoodwillAndIntangibleAssetsLineItems" xlink:label="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_GoodwillAndIntangibleAssetsTable" xlink:label="loc_pwr_GoodwillAndIntangibleAssetsTable_BE77EB5DB93B673315AEEEE9155F28AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_pwr_GoodwillAndIntangibleAssetsTable_BE77EB5DB93B673315AEEEE9155F28AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_DE910694F78604526EBAEEE9155F3776" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsTable_BE77EB5DB93B673315AEEEE9155F28AB" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_DE910694F78604526EBAEEE9155F3776" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_4B7ABD03439094CDB079EEE91560095C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DE910694F78604526EBAEEE9155F3776" xlink:to="loc_us-gaap_SegmentDomain_4B7ABD03439094CDB079EEE91560095C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_4B7ABD03439094CDB079EEE91560095C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DE910694F78604526EBAEEE9155F3776" xlink:to="loc_us-gaap_SegmentDomain_4B7ABD03439094CDB079EEE91560095C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember" xlink:label="loc_pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember_77F8EBE782E73F624C88EEE91561E068" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4B7ABD03439094CDB079EEE91560095C" xlink:to="loc_pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember_77F8EBE782E73F624C88EEE91561E068" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfInternalDivisions" xlink:label="loc_pwr_NumberOfInternalDivisions_172CFC5BD334BF2223C0EEE91561C847" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_pwr_NumberOfInternalDivisions_172CFC5BD334BF2223C0EEE91561C847" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfReportingUnitsImpactedByImpairmentCharges" xlink:label="loc_pwr_NumberOfReportingUnitsImpactedByImpairmentCharges_340BA6C1275F8B759A82EEE915615E9F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_pwr_NumberOfReportingUnitsImpactedByImpairmentCharges_340BA6C1275F8B759A82EEE915615E9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_EE5C22352A3525CB0E5CEEE91562413F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_EE5C22352A3525CB0E5CEEE91562413F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation" xlink:label="loc_pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation_0C78D7B08BFB0481F740EEE91562676D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation_0C78D7B08BFB0481F740EEE91562676D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NumberOfReportingUnitsWithFairValuesThatApproximatedCarryingValuesAfterSensitivityOfADecreaseInFairValue" xlink:label="loc_pwr_NumberOfReportingUnitsWithFairValuesThatApproximatedCarryingValuesAfterSensitivityOfADecreaseInFairValue_B8091A557DF23BC60C95EEE91563419D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_pwr_NumberOfReportingUnitsWithFairValuesThatApproximatedCarryingValuesAfterSensitivityOfADecreaseInFairValue_B8091A557DF23BC60C95EEE91563419D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_10A783D6A919E8B59BF8EEE91564DD7E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_us-gaap_Goodwill_10A783D6A919E8B59BF8EEE91564DD7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_CA6E14A62195B02D1300EEE91564CE2A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_1370E6F10E9476C30955EEE91561A041" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_CA6E14A62195B02D1300EEE91564CE2A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_IncomeTaxesLineItems" xlink:label="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_IncomeTaxesTable" xlink:label="loc_pwr_IncomeTaxesTable_67822B0F461F687F8793EEE90851B6C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_IncomeTaxesTable_67822B0F461F687F8793EEE90851B6C1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_C05F22D8F251E53ED2E9EEE908514911" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_IncomeTaxesTable_67822B0F461F687F8793EEE90851B6C1" xlink:to="loc_srt_RangeAxis_C05F22D8F251E53ED2E9EEE908514911" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1F469970F82A9187C0E5EEE908512200_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_C05F22D8F251E53ED2E9EEE908514911" xlink:to="loc_srt_RangeMember_1F469970F82A9187C0E5EEE908512200_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1F469970F82A9187C0E5EEE908512200" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_C05F22D8F251E53ED2E9EEE908514911" xlink:to="loc_srt_RangeMember_1F469970F82A9187C0E5EEE908512200" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_AE06283C16DB8C0CE21CEEE90851DC39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1F469970F82A9187C0E5EEE908512200" xlink:to="loc_srt_MaximumMember_AE06283C16DB8C0CE21CEEE90851DC39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_48B8CAC3948996C63FB6EEE908526C79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_48B8CAC3948996C63FB6EEE908526C79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_7763374FE6DF7017EFFAEEE908526BC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_7763374FE6DF7017EFFAEEE908526BC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible" xlink:label="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_1C5C0755DB09BA4B9BC7EEE908526E4A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_1C5C0755DB09BA4B9BC7EEE908526E4A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_25F0D706C8524DCF5FADEEE9085373F8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_25F0D706C8524DCF5FADEEE9085373F8" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit_5B1F83FD60EAD5146AFDEEE908533246" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit_5B1F83FD60EAD5146AFDEEE908533246" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_72BD442DF7A732A9EBF7EEE90853490B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_72BD442DF7A732A9EBF7EEE90853490B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit_F3629BF48102BDD110A0EEE90858B267" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit_F3629BF48102BDD110A0EEE90858B267" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense_877C34E6BCEC93BEA4A7EEE90859E393" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense_877C34E6BCEC93BEA4A7EEE90859E393" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationIncreaseDecreaseInProvisionalIncomeTaxBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationIncreaseDecreaseInProvisionalIncomeTaxBenefit_D3C03D34997580A5D141EEE908594017" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_67D25589DA8E9A5FCB6DEEE90852837F" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingEntityRestructuringAndRecapitalizationIncreaseDecreaseInProvisionalIncomeTaxBenefit_D3C03D34997580A5D141EEE908594017" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SummaryOfSignificantAccountingPoliciesLineItems" xlink:label="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_7262169D8D9FA7B964C4EEE921DE605A" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_SummaryOfSignificantAccountingPoliciesTable" xlink:label="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_F146481CD76A72048530EEE921D55800" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_7262169D8D9FA7B964C4EEE921DE605A" xlink:to="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_F146481CD76A72048530EEE921D55800" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_453CB663278C356FDFE8EEE921D6B1DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_F146481CD76A72048530EEE921D55800" xlink:to="loc_dei_LegalEntityAxis_453CB663278C356FDFE8EEE921D6B1DE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CAF337A4A9E190FE6508EEE921D66B20_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_453CB663278C356FDFE8EEE921D6B1DE" xlink:to="loc_dei_EntityDomain_CAF337A4A9E190FE6508EEE921D66B20_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CAF337A4A9E190FE6508EEE921D66B20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_453CB663278C356FDFE8EEE921D6B1DE" xlink:to="loc_dei_EntityDomain_CAF337A4A9E190FE6508EEE921D66B20" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_InfrastructureInvestorsPartnershipMember" xlink:label="loc_pwr_InfrastructureInvestorsPartnershipMember_FE558F31FC21BF71FB72EEE921D603D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_CAF337A4A9E190FE6508EEE921D66B20" xlink:to="loc_pwr_InfrastructureInvestorsPartnershipMember_FE558F31FC21BF71FB72EEE921D603D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="loc_us-gaap_OtherCommitmentsAxis_1242FF05249BAC65AEC5EEE921DC015A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_F146481CD76A72048530EEE921D55800" xlink:to="loc_us-gaap_OtherCommitmentsAxis_1242FF05249BAC65AEC5EEE921DC015A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_4C6262BB6E71D537621EEEE921DC08B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_1242FF05249BAC65AEC5EEE921DC015A" xlink:to="loc_us-gaap_OtherCommitmentsDomain_4C6262BB6E71D537621EEEE921DC08B7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_4C6262BB6E71D537621EEEE921DC08B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_1242FF05249BAC65AEC5EEE921DC015A" xlink:to="loc_us-gaap_OtherCommitmentsDomain_4C6262BB6E71D537621EEEE921DC08B7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_CapitalforInfrastructureProjectsMember" xlink:label="loc_pwr_CapitalforInfrastructureProjectsMember_F05A17E3F776ADEA3252EEE921DCF53E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_4C6262BB6E71D537621EEEE921DC08B7" xlink:to="loc_pwr_CapitalforInfrastructureProjectsMember_F05A17E3F776ADEA3252EEE921DCF53E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9E7B0710B3CA371C5030EEE921DD8762" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_F146481CD76A72048530EEE921D55800" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9E7B0710B3CA371C5030EEE921DD8762" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_4B8C15C26688308C445CEEE921DD7590_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9E7B0710B3CA371C5030EEE921DD8762" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_4B8C15C26688308C445CEEE921DD7590_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_4B8C15C26688308C445CEEE921DD7590" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9E7B0710B3CA371C5030EEE921DD8762" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_4B8C15C26688308C445CEEE921DD7590" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_WaterandGasPipelineInfrastructureContractorMember" xlink:label="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_DFE2CC3C84A281286404EEE921DD8309" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_4B8C15C26688308C445CEEE921DD7590" xlink:to="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_DFE2CC3C84A281286404EEE921DD8309" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_503BD1B97497E4DE6FE4EEE921DE525C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_7262169D8D9FA7B964C4EEE921DE605A" xlink:to="loc_us-gaap_OtherCommitment_503BD1B97497E4DE6FE4EEE921DE525C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EquitySecuritiesWithoutReadilyDeterminableFairValueOwnershipPercentage" xlink:label="loc_pwr_EquitySecuritiesWithoutReadilyDeterminableFairValueOwnershipPercentage_ACB8ACE857A22FA38BACEEE921DE8CE8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_7262169D8D9FA7B964C4EEE921DE605A" xlink:to="loc_pwr_EquitySecuritiesWithoutReadilyDeterminableFairValueOwnershipPercentage_ACB8ACE857A22FA38BACEEE921DE8CE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_AC8E755D0339AE0FCA57EEE921DEEB4E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_7262169D8D9FA7B964C4EEE921DE605A" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_AC8E755D0339AE0FCA57EEE921DEEB4E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_69068E5617F07F2F0C73EEE91FE02913" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_180013BCC900E827B101EEE91FDFE36D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_69068E5617F07F2F0C73EEE91FE02913" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_180013BCC900E827B101EEE91FDFE36D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_7C750B8A20296A5A6B24EEE91FDF6C5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_180013BCC900E827B101EEE91FDFE36D" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_7C750B8A20296A5A6B24EEE91FDF6C5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_B5C97D9077D3143A1A7DEEE91FE01ACB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_69068E5617F07F2F0C73EEE91FE02913" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_B5C97D9077D3143A1A7DEEE91FE01ACB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_B8305D9199326E694CE3EEE91FE05B62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_69068E5617F07F2F0C73EEE91FE02913" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_B8305D9199326E694CE3EEE91FE05B62" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_D81A8697341A8FFB1815EEE97DE2DBA5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_2906D90D2AA7FF072E93EEE97DD991B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_D81A8697341A8FFB1815EEE97DE2DBA5" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_2906D90D2AA7FF072E93EEE97DD991B1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_61B820914633E00FF028EEE97DD93D4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_2906D90D2AA7FF072E93EEE97DD991B1" xlink:to="loc_srt_StatementGeographicalAxis_61B820914633E00FF028EEE97DD93D4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_61B820914633E00FF028EEE97DD93D4A" xlink:to="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_61B820914633E00FF028EEE97DD93D4A" xlink:to="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_D9E5099B7711DC07E51FEEE97DDAC6E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:to="loc_country_US_D9E5099B7711DC07E51FEEE97DDAC6E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_D55B776F428DD57592BFEEE97DDAA326" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:to="loc_country_CA_D55B776F428DD57592BFEEE97DDAA326" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_AU" xlink:label="loc_country_AU_02BF6DD96AD1374CD03FEEE97DDA78D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:to="loc_country_AU_02BF6DD96AD1374CD03FEEE97DDA78D0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_LatinAmericaandOtherMember" xlink:label="loc_pwr_LatinAmericaandOtherMember_4E47919F6A2156D10057EEE97DE01DD9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_74730DA584219334AD56EEE97DD965C4" xlink:to="loc_pwr_LatinAmericaandOtherMember_4E47919F6A2156D10057EEE97DE01DD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingAxis" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0F3A3247A75FB7FB958DEEE97DE1F7B2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_2906D90D2AA7FF072E93EEE97DD991B1" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0F3A3247A75FB7FB958DEEE97DE1F7B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0F3A3247A75FB7FB958DEEE97DE1F7B2" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0F3A3247A75FB7FB958DEEE97DE1F7B2" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_UnitPriceContractsMember" xlink:label="loc_pwr_UnitPriceContractsMember_FDB12EE4871C58ADB6CAEEE97DE1DE7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6" xlink:to="loc_pwr_UnitPriceContractsMember_FDB12EE4871C58ADB6CAEEE97DE1DE7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FixedPriceContractMember" xlink:label="loc_us-gaap_FixedPriceContractMember_CCF83D4E7F5B8421FCBDEEE97DE23842" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6" xlink:to="loc_us-gaap_FixedPriceContractMember_CCF83D4E7F5B8421FCBDEEE97DE23842" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TimeAndMaterialsContractMember" xlink:label="loc_us-gaap_TimeAndMaterialsContractMember_BBD04721E2F6E9DFE2D6EEE97DE2B273" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_D502F8FA8D44B24E5848EEE97DE12AA6" xlink:to="loc_us-gaap_TimeAndMaterialsContractMember_BBD04721E2F6E9DFE2D6EEE97DE2B273" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_09C78DE07ACC40D5FB36EEE97DE227CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_D81A8697341A8FFB1815EEE97DE2DBA5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_09C78DE07ACC40D5FB36EEE97DE227CF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable" xlink:label="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_96D329EEC45128F64189EEE9133A2AE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_96D329EEC45128F64189EEE9133A2AE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_926156E8E2F6393CDEEAEEE9133ACEB2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_96D329EEC45128F64189EEE9133A2AE6" xlink:to="loc_us-gaap_TypeOfAdoptionMember_926156E8E2F6393CDEEAEEE9133ACEB2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_926156E8E2F6393CDEEAEEE9133ACEB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_96D329EEC45128F64189EEE9133A2AE6" xlink:to="loc_us-gaap_TypeOfAdoptionMember_926156E8E2F6393CDEEAEEE9133ACEB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_7426DF8ED35EB8222DCAEEE9133BA0CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_926156E8E2F6393CDEEAEEE9133ACEB2" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_7426DF8ED35EB8222DCAEEE9133BA0CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B88E7ABDCEEDD8CEA749EEE9133BBC38" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B88E7ABDCEEDD8CEA749EEE9133BBC38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_664C14CD17F3DDF18661EEE9133B26B3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B88E7ABDCEEDD8CEA749EEE9133BBC38" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_664C14CD17F3DDF18661EEE9133B26B3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain" xlink:label="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_664C14CD17F3DDF18661EEE9133B26B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionAxis_B88E7ABDCEEDD8CEA749EEE9133BBC38" xlink:to="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_664C14CD17F3DDF18661EEE9133B26B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member" xlink:label="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_ADEFFAF717DC6BC876A4EEE9133C60E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InitialApplicationPeriodCumulativeEffectTransitionDomain_664C14CD17F3DDF18661EEE9133B26B3" xlink:to="loc_us-gaap_DifferenceBetweenRevenueGuidanceInEffectBeforeAndAfterTopic606Member_ADEFFAF717DC6BC876A4EEE9133C60E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_D177497657B71AE15791EEE9133C67A6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_D177497657B71AE15791EEE9133C67A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_63D1392CE24B7F234EC0EEE9133CE4C2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_D177497657B71AE15791EEE9133C67A6" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_63D1392CE24B7F234EC0EEE9133CE4C2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_63D1392CE24B7F234EC0EEE9133CE4C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_D177497657B71AE15791EEE9133C67A6" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_63D1392CE24B7F234EC0EEE9133CE4C2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_UnearnedRevenueMember" xlink:label="loc_pwr_UnearnedRevenueMember_4AFFA1BE8DE137838536EEE9133D9BE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_63D1392CE24B7F234EC0EEE9133CE4C2" xlink:to="loc_pwr_UnearnedRevenueMember_4AFFA1BE8DE137838536EEE9133D9BE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_2CBAA2D1456CD9DBD6D9EEE9133E86F6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:to="loc_us-gaap_TypeOfArrangementAxis_2CBAA2D1456CD9DBD6D9EEE9133E86F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_2CBAA2D1456CD9DBD6D9EEE9133E86F6" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_2CBAA2D1456CD9DBD6D9EEE9133E86F6" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_EPCElectricTransmissionProjectMember" xlink:label="loc_pwr_EPCElectricTransmissionProjectMember_C633CA08982F9083898EEEE9133E25FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:to="loc_pwr_EPCElectricTransmissionProjectMember_C633CA08982F9083898EEEE9133E25FA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ProcessingFacilityConstructionProjectTexasMember" xlink:label="loc_pwr_ProcessingFacilityConstructionProjectTexasMember_9BFA299C75E98EA8809CEEE9133F1246" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:to="loc_pwr_ProcessingFacilityConstructionProjectTexasMember_9BFA299C75E98EA8809CEEE9133F1246" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates1Member" xlink:label="loc_pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates1Member_A63B6A27F4FF9F6F7E25EEE9133F4C19" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:to="loc_pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates1Member_A63B6A27F4FF9F6F7E25EEE9133F4C19" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates2Member" xlink:label="loc_pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates2Member_F45AF318400310A4F38BEEE9133F4C23" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_916D03A0264A6E34F4BDEEE9133EF3AB" xlink:to="loc_pwr_NaturalGasPipelineConstructionProjectNortheastUnitedStates2Member_F45AF318400310A4F38BEEE9133F4C23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_4FC0B1CCEDA30E4FDC73EEE9133F8618" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionTable_259B3379A36717E12860EEE913341ECD" xlink:to="loc_srt_RangeAxis_4FC0B1CCEDA30E4FDC73EEE9133F8618" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_B65D473FFEE44D0659E1EEE91340A724_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_4FC0B1CCEDA30E4FDC73EEE9133F8618" xlink:to="loc_srt_RangeMember_B65D473FFEE44D0659E1EEE91340A724_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_B65D473FFEE44D0659E1EEE91340A724" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_4FC0B1CCEDA30E4FDC73EEE9133F8618" xlink:to="loc_srt_RangeMember_B65D473FFEE44D0659E1EEE91340A724" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_3D61CE58AC1CFDAC58FEEEE91340C53D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_B65D473FFEE44D0659E1EEE91340A724" xlink:to="loc_srt_MaximumMember_3D61CE58AC1CFDAC58FEEEE91340C53D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_2755F943907FC01AF992EEE91340A083" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_2755F943907FC01AF992EEE91340A083" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_4A7B2063A9B50B8ABED4EEE9134136D1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_4A7B2063A9B50B8ABED4EEE9134136D1" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims" xlink:label="loc_pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims_79E5D892F87CC4C8D2C6EEE913418424" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims_79E5D892F87CC4C8D2C6EEE913418424" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_A670FD342D5014CCB90AEEE91341053A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_A670FD342D5014CCB90AEEE91341053A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToGrossProfitChangeInEstimate" xlink:label="loc_pwr_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToGrossProfitChangeInEstimate_7B55F20BA58D7E2FF058EEE91341492C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_pwr_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToGrossProfitChangeInEstimate_7B55F20BA58D7E2FF058EEE91341492C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ContractWithCustomerPercentageOfCompletion" xlink:label="loc_pwr_ContractWithCustomerPercentageOfCompletion_791F0F6CCD00530CAFB6EEE913428CF2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_pwr_ContractWithCustomerPercentageOfCompletion_791F0F6CCD00530CAFB6EEE913428CF2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ContractWithCustomerContractValue" xlink:label="loc_pwr_ContractWithCustomerContractValue_4178E26395687967BA12EEE913422B3B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_pwr_ContractWithCustomerContractValue_4178E26395687967BA12EEE913422B3B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_ContractWithCustomerPercentAggregateChangeInContractEstimatesImpactOnGrossMargin" xlink:label="loc_pwr_ContractWithCustomerPercentAggregateChangeInContractEstimatesImpactOnGrossMargin_629D923B6077DF98EC06EEE91342F33A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_pwr_ContractWithCustomerPercentAggregateChangeInContractEstimatesImpactOnGrossMargin_629D923B6077DF98EC06EEE91342F33A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_7496654F916B83D466D7EEE9134269E0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_7496654F916B83D466D7EEE9134269E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_B9EFF5364AF08262ADEFEEE913421BC0" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueInitialApplicationPeriodCumulativeEffectTransitionLineItems_E77035AD69FA35615773EEE91340CC0F" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_B9EFF5364AF08262ADEFEEE913421BC0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_79354BF7A8FC270929BEEEE97DE8B879" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_137DF1A59545DAA31437EEE97DE751D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_79354BF7A8FC270929BEEEE97DE8B879" xlink:to="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_137DF1A59545DAA31437EEE97DE751D0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_68030BB1D42E0A00FE83EEE97DE7AA61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_137DF1A59545DAA31437EEE97DE751D0" xlink:to="loc_srt_RangeAxis_68030BB1D42E0A00FE83EEE97DE7AA61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_68030BB1D42E0A00FE83EEE97DE7AA61" xlink:to="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_68030BB1D42E0A00FE83EEE97DE7AA61" xlink:to="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_1F8DC75BECE4DCB32FAFEEE97DE856E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF" xlink:to="loc_srt_MinimumMember_1F8DC75BECE4DCB32FAFEEE97DE856E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_1720D7A9E0BBD0F71E60EEE97DE8B464" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0301550F10C224F13CD2EEE97DE7EAEF" xlink:to="loc_srt_MaximumMember_1720D7A9E0BBD0F71E60EEE97DE8B464" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_FairValueInputsRateOfReturn" xlink:label="loc_pwr_FairValueInputsRateOfReturn_06CBB654B6FBE329D6A7EEE97DE8E833" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_79354BF7A8FC270929BEEEE97DE8B879" xlink:to="loc_pwr_FairValueInputsRateOfReturn_06CBB654B6FBE329D6A7EEE97DE8E833" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_FairValueInputsCustomerAttritionRates" xlink:label="loc_pwr_FairValueInputsCustomerAttritionRates_C828EDDA70EA0733027BEEE97DE9DEB4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_79354BF7A8FC270929BEEEE97DE8B879" xlink:to="loc_pwr_FairValueInputsCustomerAttritionRates_C828EDDA70EA0733027BEEE97DE9DEB4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_059D8040337C345CE5C3EEE9245FC45D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4E98D0DA1F735C454092EEE9245E922D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_059D8040337C345CE5C3EEE9245FC45D" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4E98D0DA1F735C454092EEE9245E922D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_FF42892D9C1EF839A734EEE9245FF10E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4E98D0DA1F735C454092EEE9245E922D" xlink:to="loc_us-gaap_AwardTypeAxis_FF42892D9C1EF839A734EEE9245FF10E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E7972FF3003B4E796014EEE9245FA0C0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_FF42892D9C1EF839A734EEE9245FF10E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E7972FF3003B4E796014EEE9245FA0C0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E7972FF3003B4E796014EEE9245FA0C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_FF42892D9C1EF839A734EEE9245FF10E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E7972FF3003B4E796014EEE9245FA0C0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_RestrictedStockUnitsToBeSettledInCashMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_D20254DABB568AA10076EEE9245F28B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E7972FF3003B4E796014EEE9245FA0C0" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_D20254DABB568AA10076EEE9245F28B4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares" xlink:label="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_AE3D7DCD796D4D0C4771EEE92460ABCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_059D8040337C345CE5C3EEE9245FC45D" xlink:to="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_AE3D7DCD796D4D0C4771EEE92460ABCF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsLineItems" xlink:label="loc_us-gaap_CashAndCashEquivalentsLineItems_FE58B8BDB8EF328B958DEEE97AE5D5ED" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTable" xlink:label="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_2DC8FDBDB36D4D4AB219EEE97AE32AAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_FE58B8BDB8EF328B958DEEE97AE5D5ED" xlink:to="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_2DC8FDBDB36D4D4AB219EEE97AE32AAE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_B5ED910D97ABEA04D763EEE97AE4A666" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_2DC8FDBDB36D4D4AB219EEE97AE32AAE" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_B5ED910D97ABEA04D763EEE97AE4A666" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_B5ED910D97ABEA04D763EEE97AE4A666" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_B5ED910D97ABEA04D763EEE97AE4A666" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_C7776ED957F19AA9A9FEEEE97AE44FD6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_C7776ED957F19AA9A9FEEEE97AE44FD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_A6D7CC7A201F5842D13DEEE97AE5E2EA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1B7DAF3C04B6A01EE65AEEE97AE4D09D" xlink:to="loc_us-gaap_OtherAssetsMember_A6D7CC7A201F5842D13DEEE97AE5E2EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1DB97C4778785E99687BEEE97AE51694" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_FE58B8BDB8EF328B958DEEE97AE5D5ED" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1DB97C4778785E99687BEEE97AE51694" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_14C4DEF007C6A117C781EEE97AE6764C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_FE58B8BDB8EF328B958DEEE97AE5D5ED" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_14C4DEF007C6A117C781EEE97AE6764C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0DC7CBE0DA6063BBACD0EEE97AE6FB43" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_FE58B8BDB8EF328B958DEEE97AE5D5ED" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0DC7CBE0DA6063BBACD0EEE97AE6FB43" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:type="extended" />
</link:linkbase>
