<?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-20180630.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsBusinessAcquisitionPurchasePriceAllocationAssetsAcquiredAndLiabilitiesAssumedDetail" xlink:href="pwr-20180630.xsd#AcquisitionsBusinessAcquisitionPurchasePriceAllocationAssetsAcquiredAndLiabilitiesAssumedDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsDetail" xlink:href="pwr-20180630.xsd#AcquisitionsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:href="pwr-20180630.xsd#AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsTables" xlink:href="pwr-20180630.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:href="pwr-20180630.xsd#AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganization" xlink:href="pwr-20180630.xsd#BusinessAndOrganization" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganizationDetail" xlink:href="pwr-20180630.xsd#BusinessAndOrganizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingencies" xlink:href="pwr-20180630.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesContingentConsiderationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesIndemnitiesDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesIndemnitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesLeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLegalProceedingsDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesLegalProceedingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLettersOfCreditDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesLettersOfCreditDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesTables" xlink:href="pwr-20180630.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheets" xlink:href="pwr-20180630.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="pwr-20180630.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="pwr-20180630.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="pwr-20180630.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="pwr-20180630.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfOperations" xlink:href="pwr-20180630.xsd#CondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligations" xlink:href="pwr-20180630.xsd#DebtObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityAmendedAndRestatedCreditAgreementDetail" xlink:href="pwr-20180630.xsd#DebtObligationsCreditFacilityAmendedAndRestatedCreditAgreementDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:href="pwr-20180630.xsd#DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:href="pwr-20180630.xsd#DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:href="pwr-20180630.xsd#DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsInformationOnBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:href="pwr-20180630.xsd#DebtObligationsInformationOnBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsLongTermDebtObligationsDetail" xlink:href="pwr-20180630.xsd#DebtObligationsLongTermDebtObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsOtherFacilitiesDetails" xlink:href="pwr-20180630.xsd#DebtObligationsOtherFacilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsTables" xlink:href="pwr-20180630.xsd#DebtObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DocumentAndEntityInformation" xlink:href="pwr-20180630.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/Equity" xlink:href="pwr-20180630.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensation" xlink:href="pwr-20180630.xsd#EquityBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:href="pwr-20180630.xsd#EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:href="pwr-20180630.xsd#EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:href="pwr-20180630.xsd#EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:href="pwr-20180630.xsd#EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationStockIncentivePlansDetail" xlink:href="pwr-20180630.xsd#EquityBasedCompensationStockIncentivePlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationTables" xlink:href="pwr-20180630.xsd#EquityBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityExchangeableSharesAndSeriesFAndSeriesGPreferredStockDetail" xlink:href="pwr-20180630.xsd#EquityExchangeableSharesAndSeriesFAndSeriesGPreferredStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityNonControllingInterestsDetail" xlink:href="pwr-20180630.xsd#EquityNonControllingInterestsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityTreasuryStockDetail" xlink:href="pwr-20180630.xsd#EquityTreasuryStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInQuantasGoodwillDetail" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssetsSummaryOfChangesInQuantasGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="pwr-20180630.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncements" xlink:href="pwr-20180630.xsd#NewAccountingPronouncements" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncementsDetail" xlink:href="pwr-20180630.xsd#NewAccountingPronouncementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformation" xlink:href="pwr-20180630.xsd#PerShareInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:href="pwr-20180630.xsd#PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationNarrativeDetails" xlink:href="pwr-20180630.xsd#PerShareInformationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationTables" xlink:href="pwr-20180630.xsd#PerShareInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformation" xlink:href="pwr-20180630.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationDetail" xlink:href="pwr-20180630.xsd#SegmentInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationSummarizedFinancialInformationDetail" xlink:href="pwr-20180630.xsd#SegmentInformationSummarizedFinancialInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationTables" xlink:href="pwr-20180630.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEvent" xlink:href="pwr-20180630.xsd#SubsequentEvent" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEventDetail" xlink:href="pwr-20180630.xsd#SubsequentEventDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractWithCustomerAssetAndLiabilityDetails" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesContractWithCustomerAssetAndLiabilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesDisaggregationOfRevenueDetails" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesDisaggregationOfRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="pwr-20180630.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformation" xlink:href="pwr-20180630.xsd#SupplementalCashFlowInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationNarrativeDetails" xlink:href="pwr-20180630.xsd#SupplementalCashFlowInformationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:href="pwr-20180630.xsd#SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationScheduleOfAdditionalSupplementalCashFlowInformationDetail" xlink:href="pwr-20180630.xsd#SupplementalCashFlowInformationScheduleOfAdditionalSupplementalCashFlowInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationScheduleOfEffectOfChangesInOperatingAssetsAndLiabilitiesNetOfNonCashTransactionsOnCashFlowsFromOperatingActivitiesOfContinuingOperationsDetail" xlink:href="pwr-20180630.xsd#SupplementalCashFlowInformationScheduleOfEffectOfChangesInOperatingAssetsAndLiabilitiesNetOfNonCashTransactionsOnCashFlowsFromOperatingActivitiesOfContinuingOperationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:href="pwr-20180630.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/AcquisitionsBusinessAcquisitionPurchasePriceAllocationAssetsAcquiredAndLiabilitiesAssumedDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B3CE886B7E1F016A2EB19AC0CB5AEB0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B3CE886B7E1F016A2EB19AC0CB5AEB0C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B849074369104DAD6DB29AC0CB5B6A5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B3CE886B7E1F016A2EB19AC0CB5AEB0C" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B849074369104DAD6DB29AC0CB5B6A5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B849074369104DAD6DB29AC0CB5B6A5C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B849074369104DAD6DB29AC0CB5B6A5C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_402B88FAA2EE890200579AC0CB5B3367" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535" xlink:to="loc_pwr_Acquisitions2018Member_402B88FAA2EE890200579AC0CB5B3367" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member" xlink:label="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_90BDB4A711974AD941FE9AC0CB5CA2E7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535" xlink:to="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_90BDB4A711974AD941FE9AC0CB5CA2E7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2017OtherThanStrongholdMember" xlink:label="loc_pwr_Acquisitions2017OtherThanStrongholdMember_4DF9DC9B0C30FEE7F7DB9AC0CB5C0AA6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1527814384FA3CC670059AC0CB5B4535" xlink:to="loc_pwr_Acquisitions2017OtherThanStrongholdMember_4DF9DC9B0C30FEE7F7DB9AC0CB5C0AA6" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred" xlink:label="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_F107813A4E5369452B549AC0CB5C25E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_F107813A4E5369452B549AC0CB5C25E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_10B898367B6CEBD8979F9AC0CB5D464B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_10B898367B6CEBD8979F9AC0CB5D464B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_605F16132E98B109F2B69AC0CB5D2808" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_605F16132E98B109F2B69AC0CB5D2808" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_81D3FE004C870CF898F99AC0CB5D1377" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_81D3FE004C870CF898F99AC0CB5D1377" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_BA5850C69C964B1346379AC0CB5DBBC7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_BA5850C69C964B1346379AC0CB5DBBC7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractAssetsCurrent" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractAssetsCurrent_AA1145BF14734CACC00A9AC0CB5E83BF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractAssetsCurrent_AA1145BF14734CACC00A9AC0CB5E83BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_FB54EB42EA313A78E1BB9AC0CB5EEF1F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_FB54EB42EA313A78E1BB9AC0CB5EEF1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_F6AEDB3FD0E1168EBF219AC0CB5E3B42" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_F6AEDB3FD0E1168EBF219AC0CB5E3B42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_220C297FA59D9C7826409AC0CB5FB810" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_220C297FA59D9C7826409AC0CB5FB810" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_728D7A55B812C201DD6E9AC0CB5F86AD" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_728D7A55B812C201DD6E9AC0CB5F86AD" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractLiabilities" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractLiabilities_CF660B7156AE0B7293C29AC0CB5F9F1F" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedContractLiabilities_CF660B7156AE0B7293C29AC0CB5F9F1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_6B4E55ED932266AE32DB9AC0CB5FD259" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_6B4E55ED932266AE32DB9AC0CB5FD259" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_C8C251ECD2162382E4FB9AC0CB604616" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_C8C251ECD2162382E4FB9AC0CB604616" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_065E30437D4B2A0482729AC0CB609B05" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_065E30437D4B2A0482729AC0CB609B05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_97346EEAC2C14D93EA069AC0CB653BAD" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_97346EEAC2C14D93EA069AC0CB653BAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_59E2BC1E635BB7E2E6979AC0CB65346B" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_59E2BC1E635BB7E2E6979AC0CB65346B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_8A099F2BE8A917B042229AC0CB66219B" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8174AA556D3A7AB748F59AC0CB5CF1AD" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_8A099F2BE8A917B042229AC0CB66219B" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_00BE701A14858AB6056A14B7AAEDD09D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_00BE701A14858AB6056A14B7AAEDD09D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_AE5A2A4A43020EFC089814B7AAEDC16A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_00BE701A14858AB6056A14B7AAEDD09D" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_AE5A2A4A43020EFC089814B7AAEDC16A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AE5A2A4A43020EFC089814B7AAEDC16A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AE5A2A4A43020EFC089814B7AAEDC16A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_CFF6BB1D9C421A6368AB14B7AAED79E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:to="loc_pwr_Acquisitions2018Member_CFF6BB1D9C421A6368AB14B7AAED79E6" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member" xlink:label="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_AE10C4F6EAB7BEBFB36514B7AAEDBE2A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:to="loc_pwr_StrongholdLtd.andStrongholdSpecialtyLtd.Member_AE10C4F6EAB7BEBFB36514B7AAEDBE2A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2017OtherThanStrongholdMember" xlink:label="loc_pwr_Acquisitions2017OtherThanStrongholdMember_E1FBC749D30B5E5050DF14B7AAED6EFA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:to="loc_pwr_Acquisitions2017OtherThanStrongholdMember_E1FBC749D30B5E5050DF14B7AAED6EFA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2017Member" xlink:label="loc_pwr_Acquisitions2017Member_C02C4E002D32393AE95414B7AAED763D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A95DA9B697092EE67EF614B7AAED1EA0" xlink:to="loc_pwr_Acquisitions2017Member_C02C4E002D32393AE95414B7AAED763D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_73C8B42AC0BEA0A30EC414B7AAEDC693" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_00BE701A14858AB6056A14B7AAEDD09D" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_73C8B42AC0BEA0A30EC414B7AAEDC693" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_73C8B42AC0BEA0A30EC414B7AAEDC693" xlink:to="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_73C8B42AC0BEA0A30EC414B7AAEDC693" xlink:to="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ElectricPowerDivisionMember" xlink:label="loc_pwr_ElectricPowerDivisionMember_1B653CCBF7C7C70F8B4B14B7AAED1771" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F" xlink:to="loc_pwr_ElectricPowerDivisionMember_1B653CCBF7C7C70F8B4B14B7AAED1771" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasDivisionMember" xlink:label="loc_pwr_OilAndGasDivisionMember_29142BF8DD3BECF864D914B7AAED3B19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6F69FC5B509963E918BB14B7AAED554F" xlink:to="loc_pwr_OilAndGasDivisionMember_29142BF8DD3BECF864D914B7AAED3B19" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred" xlink:label="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_E3C56EE4D77D576B9A4614B7AAED7637" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_pwr_BusinessCombinationCashConsiderationTransferredOrToBeTransferred_E3C56EE4D77D576B9A4614B7AAED7637" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_D3F9F7B54C34D6B234BF14B7AAED4247" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_D3F9F7B54C34D6B234BF14B7AAED4247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_64BD7C084E9B07FDAC2A14B7AAEDE3EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_64BD7C084E9B07FDAC2A14B7AAEDE3EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_2303BD3548ACAAE08AFA14B7AAED4E79" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_2303BD3548ACAAE08AFA14B7AAED4E79" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesTargetTerm" xlink:label="loc_pwr_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesTargetTerm_75373AE50EBBD27A75F614B7AAED379F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_pwr_BusinessCombinationContingentConsiderationArrangementsRangeofOutcomesTargetTerm_75373AE50EBBD27A75F614B7AAED379F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_96D89CFA9F8AF86AC3A914B7AAED9C32" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_96D89CFA9F8AF86AC3A914B7AAED9C32" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets_A9EE1BD30F40797DD69414B7AAEDD20F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleAssets_A9EE1BD30F40797DD69414B7AAEDD20F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinitelivedIntangibleAssetsAcquired1" xlink:label="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_ED9F085A84847FB1424614B7AAED30BA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_ED9F085A84847FB1424614B7AAED30BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_328F3AC5A3390D43D31114B7AAEDDB5F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_328F3AC5A3390D43D31114B7AAEDDB5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_72DB40A0E8C41141E04214B7AAEDC581" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_72DB40A0E8C41141E04214B7AAEDC581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueServicesNet" xlink:label="loc_us-gaap_SalesRevenueServicesNet_FEF2506B607B9A59EE0614B7AAED17A7" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_SalesRevenueServicesNet_FEF2506B607B9A59EE0614B7AAED17A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5365525D57A5CDA4022714B7AAED89EF" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5365525D57A5CDA4022714B7AAED89EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_D28D2601866ACD5A49EE14B7AAED4FE6" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AC33BF87AD08B20524D414B7AAEDF79F" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_D28D2601866ACD5A49EE14B7AAED4FE6" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_57245FF5C740531AA9B5957D372E462B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CF03B508CEB65761A3149A33C8595558" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_57245FF5C740531AA9B5957D372E462B" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CF03B508CEB65761A3149A33C8595558" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D9F3F47B81D85918BAB0F7F08296A3DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CF03B508CEB65761A3149A33C8595558" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D9F3F47B81D85918BAB0F7F08296A3DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C68C3FCA7E7A7991B9372C12849B8F3F_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D9F3F47B81D85918BAB0F7F08296A3DF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C68C3FCA7E7A7991B9372C12849B8F3F_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D9F3F47B81D85918BAB0F7F08296A3DF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_FBD91E91ECE75467ADC0DE69F9C34C59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:to="loc_us-gaap_CustomerRelationshipsMember_FBD91E91ECE75467ADC0DE69F9C34C59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OrderOrProductionBacklogMember" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_CA33791B055A51878EEB205260FF628D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_CA33791B055A51878EEB205260FF628D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_4A530B4FFEC55B9CB5D5EF30368D8530" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:to="loc_us-gaap_TradeNamesMember_4A530B4FFEC55B9CB5D5EF30368D8530" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_A5FE8DA116965FD19225EAD6ADB58197" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_A5FE8DA116965FD19225EAD6ADB58197" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CurriculumMember" xlink:label="loc_pwr_CurriculumMember_C80A70C9049C5EDF9499EA178E8137A7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25C5F20C96C3588EA384CABF5B99332A" xlink:to="loc_pwr_CurriculumMember_C80A70C9049C5EDF9499EA178E8137A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_A0B714B51BE4552F8AEF699B41F3F03E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CF03B508CEB65761A3149A33C8595558" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_A0B714B51BE4552F8AEF699B41F3F03E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_56007514C7932FC941BF2C12849E5C1C_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A0B714B51BE4552F8AEF699B41F3F03E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_56007514C7932FC941BF2C12849E5C1C_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5F8B4D036F065EE1BA3D0296A8EECAD5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A0B714B51BE4552F8AEF699B41F3F03E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5F8B4D036F065EE1BA3D0296A8EECAD5" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_3C508051FCD2569EB8F92A356BAF97DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5F8B4D036F065EE1BA3D0296A8EECAD5" xlink:to="loc_pwr_Acquisitions2018Member_3C508051FCD2569EB8F92A356BAF97DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinitelivedIntangibleAssetsAcquired1" xlink:label="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_B5F01562FAD75208B2507CF929264194" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_57245FF5C740531AA9B5957D372E462B" xlink:to="loc_us-gaap_FinitelivedIntangibleAssetsAcquired1_B5F01562FAD75208B2507CF929264194" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_4E7C829812E25DE7BE07A668CBD1C7D4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_57245FF5C740531AA9B5957D372E462B" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_4E7C829812E25DE7BE07A668CBD1C7D4" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_7AF323B20825749413E29AC0C829A9DD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationTable" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E5E8F0BD73F9248E1B9C9AC0C8260797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_7AF323B20825749413E29AC0C829A9DD" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E5E8F0BD73F9248E1B9C9AC0C8260797" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F0C8D7E555D3F6C3F0519AC0C827E540" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_E5E8F0BD73F9248E1B9C9AC0C8260797" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F0C8D7E555D3F6C3F0519AC0C827E540" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_421F0CA37A50986B56359AC0C82767A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F0C8D7E555D3F6C3F0519AC0C827E540" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_421F0CA37A50986B56359AC0C82767A2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_421F0CA37A50986B56359AC0C82767A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F0C8D7E555D3F6C3F0519AC0C827E540" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_421F0CA37A50986B56359AC0C82767A2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_VehicleFleetCommittedCapitalMember" xlink:label="loc_pwr_VehicleFleetCommittedCapitalMember_7EAE54BAC4FAE95FCC0F9AC0C82863CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_421F0CA37A50986B56359AC0C82767A2" xlink:to="loc_pwr_VehicleFleetCommittedCapitalMember_7EAE54BAC4FAE95FCC0F9AC0C82863CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_91508F5D67F7EB1E78C49AC0C8299E4C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_7AF323B20825749413E29AC0C829A9DD" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_91508F5D67F7EB1E78C49AC0C8299E4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_802628F24D7C2D10EA189AC0C829FD71" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_7AF323B20825749413E29AC0C829A9DD" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_802628F24D7C2D10EA189AC0C829FD71" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_5F95B593E5336257148EB8D123EFC779" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_A9588A6D5D76784E36BBB8D123EA1F8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_5F95B593E5336257148EB8D123EFC779" xlink:to="loc_us-gaap_ConcentrationRiskTable_A9588A6D5D76784E36BBB8D123EA1F8D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C5128BAEBA47906A468BB8D123EBF89D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A9588A6D5D76784E36BBB8D123EA1F8D" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C5128BAEBA47906A468BB8D123EBF89D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C145F73BA8509154596CB8D123EBFC67_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C5128BAEBA47906A468BB8D123EBF89D" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C145F73BA8509154596CB8D123EBFC67_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C145F73BA8509154596CB8D123EBFC67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C5128BAEBA47906A468BB8D123EBF89D" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C145F73BA8509154596CB8D123EBFC67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_46A1C7720F7BB039DD4FB8D123EDD4E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C145F73BA8509154596CB8D123EBFC67" xlink:to="loc_us-gaap_SalesRevenueNetMember_46A1C7720F7BB039DD4FB8D123EDD4E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_FDCE4B55DD17D52C2FD8B8D123ED2352" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A9588A6D5D76784E36BBB8D123EA1F8D" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_FDCE4B55DD17D52C2FD8B8D123ED2352" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_FC3EFAE0552D4BC235C8B8D123EDB4B9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_FDCE4B55DD17D52C2FD8B8D123ED2352" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_FC3EFAE0552D4BC235C8B8D123EDB4B9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_FC3EFAE0552D4BC235C8B8D123EDB4B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_FDCE4B55DD17D52C2FD8B8D123ED2352" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_FC3EFAE0552D4BC235C8B8D123EDB4B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_B179F59767A1C39E555BB8D123ED4712" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_FC3EFAE0552D4BC235C8B8D123EDB4B9" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_B179F59767A1C39E555BB8D123ED4712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_BB83BBAECF81856B2898B8D123EEE3EC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_A9588A6D5D76784E36BBB8D123EA1F8D" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_BB83BBAECF81856B2898B8D123EEE3EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DFC1CD429EA30E5A6A81B8D123EEDB10_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BB83BBAECF81856B2898B8D123EEE3EC" xlink:to="loc_us-gaap_SegmentDomain_DFC1CD429EA30E5A6A81B8D123EEDB10_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DFC1CD429EA30E5A6A81B8D123EEDB10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BB83BBAECF81856B2898B8D123EEE3EC" xlink:to="loc_us-gaap_SegmentDomain_DFC1CD429EA30E5A6A81B8D123EEDB10" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasInfrastructureServicesMember" xlink:label="loc_pwr_OilAndGasInfrastructureServicesMember_A5DEDE05F47936BD0003B8D123EF5989" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DFC1CD429EA30E5A6A81B8D123EEDB10" xlink:to="loc_pwr_OilAndGasInfrastructureServicesMember_A5DEDE05F47936BD0003B8D123EF5989" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition" xlink:label="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition_7DCE8B5772B033B40B79B8D123F0F6FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_5F95B593E5336257148EB8D123EFC779" xlink:to="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfNetReceivablePosition_7DCE8B5772B033B40B79B8D123F0F6FE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue" xlink:label="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue_71AA3813C7BD1649F6B9B8D123F05306" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_5F95B593E5336257148EB8D123EFC779" xlink:to="loc_pwr_NumberOfCustomersRepresentingTenPercentOrMoreOfRevenue_71AA3813C7BD1649F6B9B8D123F05306" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_4E4B9394163E2BD01F01B8D123F11578" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_5F95B593E5336257148EB8D123EFC779" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_4E4B9394163E2BD01F01B8D123F11578" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9470866615A72FE25E53023A3E89C2ED" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C9BEDD00BD3039BB9BF6023A3E852848" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9470866615A72FE25E53023A3E89C2ED" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C9BEDD00BD3039BB9BF6023A3E852848" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueByLiabilityClassAxis" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_448DE0C2319272683D0C024331E15DDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C9BEDD00BD3039BB9BF6023A3E852848" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_448DE0C2319272683D0C024331E15DDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_A8B8D651C60C9844E04C024332036D7A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_448DE0C2319272683D0C024331E15DDA" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_A8B8D651C60C9844E04C024332036D7A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_A8B8D651C60C9844E04C024332036D7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_448DE0C2319272683D0C024331E15DDA" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_A8B8D651C60C9844E04C024332036D7A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ContingentConsiderationMember" xlink:label="loc_pwr_ContingentConsiderationMember_958CBD97488394B05E28024334294D88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_A8B8D651C60C9844E04C024332036D7A" xlink:to="loc_pwr_ContingentConsiderationMember_958CBD97488394B05E28024334294D88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_142223154A61875AD221023A3E885A17" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C9BEDD00BD3039BB9BF6023A3E852848" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_142223154A61875AD221023A3E885A17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C8DAF5F26331CAE359A8023A3E8838AC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_142223154A61875AD221023A3E885A17" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C8DAF5F26331CAE359A8023A3E8838AC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C8DAF5F26331CAE359A8023A3E8838AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_142223154A61875AD221023A3E885A17" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C8DAF5F26331CAE359A8023A3E8838AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_028D80031CC786D7A0BE023A3E89AB01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C8DAF5F26331CAE359A8023A3E8838AC" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_028D80031CC786D7A0BE023A3E89AB01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_670D7DDE59DF39E7C469023A3E8A5BA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9470866615A72FE25E53023A3E89C2ED" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_670D7DDE59DF39E7C469023A3E8A5BA0" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_DCA5056613515ED0BC47A8334054EFF8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_B616DD1298CF51F69DAE9BB56EF01182" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_DCA5056613515ED0BC47A8334054EFF8" xlink:to="loc_us-gaap_LossContingenciesTable_B616DD1298CF51F69DAE9BB56EF01182" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_A9B1F092DDC953A59D26B06721B4B331" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_B616DD1298CF51F69DAE9BB56EF01182" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_A9B1F092DDC953A59D26B06721B4B331" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_A300B4066B5F09DECD23F36FC33AA5B7_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_A9B1F092DDC953A59D26B06721B4B331" xlink:to="loc_us-gaap_LossContingencyNatureDomain_A300B4066B5F09DECD23F36FC33AA5B7_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_D983250D00BF518CACB03345D291BA8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_A9B1F092DDC953A59D26B06721B4B331" xlink:to="loc_us-gaap_LossContingencyNatureDomain_D983250D00BF518CACB03345D291BA8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndemnificationGuaranteeMember" xlink:label="loc_us-gaap_IndemnificationGuaranteeMember_1602F1D7DB955F1CA47AC2AA3D3BC7DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_D983250D00BF518CACB03345D291BA8C" xlink:to="loc_us-gaap_IndemnificationGuaranteeMember_1602F1D7DB955F1CA47AC2AA3D3BC7DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate" xlink:label="loc_us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_5E720A613E89585B8D4B7BA8E4078F47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_DCA5056613515ED0BC47A8334054EFF8" xlink:to="loc_us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_5E720A613E89585B8D4B7BA8E4078F47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent" xlink:label="loc_us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent_B82D0EAAEBEC511BB3613F0A1D3A6443" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_DCA5056613515ED0BC47A8334054EFF8" xlink:to="loc_us-gaap_AccruedPayrollTaxesCurrentAndNoncurrent_B82D0EAAEBEC511BB3613F0A1D3A6443" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CommitmentAndContingenciesLineItems" xlink:label="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CommitmentAndContingenciesTable" xlink:label="loc_pwr_CommitmentAndContingenciesTable_E133372A9C6E52A78D416F9AD8E31E1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_pwr_CommitmentAndContingenciesTable_E133372A9C6E52A78D416F9AD8E31E1E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3EE41A80C97150AE9F54C172AA7CBD1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_CommitmentAndContingenciesTable_E133372A9C6E52A78D416F9AD8E31E1E" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3EE41A80C97150AE9F54C172AA7CBD1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_F52A6464C4E2484B1BD390F7C1918753_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3EE41A80C97150AE9F54C172AA7CBD1F" xlink:to="loc_us-gaap_LossContingencyNatureDomain_F52A6464C4E2484B1BD390F7C1918753_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_21693A651B82513D8F6AF0BE872B4930" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3EE41A80C97150AE9F54C172AA7CBD1F" xlink:to="loc_us-gaap_LossContingencyNatureDomain_21693A651B82513D8F6AF0BE872B4930" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InsuranceClaimsMember" xlink:label="loc_us-gaap_InsuranceClaimsMember_42DEDA8791D859C49E58C184FF40B40B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_21693A651B82513D8F6AF0BE872B4930" xlink:to="loc_us-gaap_InsuranceClaimsMember_42DEDA8791D859C49E58C184FF40B40B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_EB43EE5D264A5CCA8E6979C5D1B498C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_EB43EE5D264A5CCA8E6979C5D1B498C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_609FD9DA87975C5A8CB7170E9370311C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_609FD9DA87975C5A8CB7170E9370311C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InsuranceSettlementsReceivable" xlink:label="loc_us-gaap_InsuranceSettlementsReceivable_5E654D3B25F8543B80EC96CF5273A586" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_us-gaap_InsuranceSettlementsReceivable_5E654D3B25F8543B80EC96CF5273A586" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InsuranceSettlementsReceivableCurrent" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableCurrent_2F34C40CF0D95E8BA44859F85C90CB99" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableCurrent_2F34C40CF0D95E8BA44859F85C90CB99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InsuranceSettlementsReceivableNoncurrent" xlink:label="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_8DCADBA22DE05E559EAEADADF5D6D255" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_CommitmentAndContingenciesLineItems_DAD52FEB70C95731896DE60ED3E8D5FB" xlink:to="loc_us-gaap_InsuranceSettlementsReceivableNoncurrent_8DCADBA22DE05E559EAEADADF5D6D255" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsLineItems" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsTable" xlink:label="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_82A3D886D5CD552C9CA91D85CC1DF8B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:to="loc_dei_LegalEntityAxis_82A3D886D5CD552C9CA91D85CC1DF8B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_453E5D1409D274A148C608D30C89C00B_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_82A3D886D5CD552C9CA91D85CC1DF8B2" xlink:to="loc_dei_EntityDomain_453E5D1409D274A148C608D30C89C00B_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CC182135A95D54A9A93BE66818A2AADC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_82A3D886D5CD552C9CA91D85CC1DF8B2" xlink:to="loc_dei_EntityDomain_CC182135A95D54A9A93BE66818A2AADC" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_InfrastructureInvestorsPartnershipMember" xlink:label="loc_pwr_InfrastructureInvestorsPartnershipMember_156A4D56ABFF5840B68B06ED58FE3932" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_CC182135A95D54A9A93BE66818A2AADC" xlink:to="loc_pwr_InfrastructureInvestorsPartnershipMember_156A4D56ABFF5840B68B06ED58FE3932" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_6133468A11BA5D69AC09C6BB062B87B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:to="loc_us-gaap_TypeOfArrangementAxis_6133468A11BA5D69AC09C6BB062B87B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CAE7CE0B801F62AF29708D30C8BA1D7_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_6133468A11BA5D69AC09C6BB062B87B3" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_4CAE7CE0B801F62AF29708D30C8BA1D7_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_AFB69EB33FF65B6A95202D96498D08C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_6133468A11BA5D69AC09C6BB062B87B3" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_AFB69EB33FF65B6A95202D96498D08C3" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_EPCElectricTransmissionProjectMember" xlink:label="loc_pwr_EPCElectricTransmissionProjectMember_2EDF5B6C6F5C5433A1F6D36B1E5B96ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_AFB69EB33FF65B6A95202D96498D08C3" xlink:to="loc_pwr_EPCElectricTransmissionProjectMember_2EDF5B6C6F5C5433A1F6D36B1E5B96ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_662F6AC4FB8A5D5380B10C77EEF565C5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:to="loc_us-gaap_StatementScenarioAxis_662F6AC4FB8A5D5380B10C77EEF565C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_1F2C5B31C358968ACE6E08D30C8B9054_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_662F6AC4FB8A5D5380B10C77EEF565C5" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_1F2C5B31C358968ACE6E08D30C8B9054_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_719813A2A2095F93875BD0C279035280" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_662F6AC4FB8A5D5380B10C77EEF565C5" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_719813A2A2095F93875BD0C279035280" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_03548CF9CB1E5151B1159841B141FF5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_719813A2A2095F93875BD0C279035280" xlink:to="loc_us-gaap_ScenarioForecastMember_03548CF9CB1E5151B1159841B141FF5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="loc_us-gaap_OtherCommitmentsAxis_4C948B7BDDE95860A9807E1E653953AA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_3630787D34335F1E804631CBB3E345C1" xlink:to="loc_us-gaap_OtherCommitmentsAxis_4C948B7BDDE95860A9807E1E653953AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_19BEFF45915A9CEBCBDD08D30C91BF5B_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_4C948B7BDDE95860A9807E1E653953AA" xlink:to="loc_us-gaap_OtherCommitmentsDomain_19BEFF45915A9CEBCBDD08D30C91BF5B_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_04C5A1DC906057E99D6B7E2658BC0E64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_4C948B7BDDE95860A9807E1E653953AA" xlink:to="loc_us-gaap_OtherCommitmentsDomain_04C5A1DC906057E99D6B7E2658BC0E64" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember" xlink:label="loc_pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember_FB643F07F16353A1A347ACDDB3B58C1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_04C5A1DC906057E99D6B7E2658BC0E64" xlink:to="loc_pwr_OtherCommitmentsPlannedOilAndGasInfrastructureProjectsMember_FB643F07F16353A1A347ACDDB3B58C1F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CapitalforInfrastructureProjectsMember" xlink:label="loc_pwr_CapitalforInfrastructureProjectsMember_5114CB2276F454C89FCA8D183A2DE01A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_04C5A1DC906057E99D6B7E2658BC0E64" xlink:to="loc_pwr_CapitalforInfrastructureProjectsMember_5114CB2276F454C89FCA8D183A2DE01A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LengthOfTransmissionLine" xlink:label="loc_pwr_LengthOfTransmissionLine_C04CEABBF6B95D23A007B78E5EEF8677" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_pwr_LengthOfTransmissionLine_C04CEABBF6B95D23A007B78E5EEF8677" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberofSubstations" xlink:label="loc_pwr_NumberofSubstations_11BF63CFAF8055A19522B000778263AB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_pwr_NumberofSubstations_11BF63CFAF8055A19522B000778263AB" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_VoltageOfSubstations" xlink:label="loc_pwr_VoltageOfSubstations_2900CA985F935F45BBE2403C462E0AB2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_pwr_VoltageOfSubstations_2900CA985F935F45BBE2403C462E0AB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_2317038BCECC5758BC8167FB0E85AF4B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_2317038BCECC5758BC8167FB0E85AF4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital" xlink:label="loc_us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital_D2F603A69AC35439B81D56CA9631FF4C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital_D2F603A69AC35439B81D56CA9631FF4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_7A03CCC26BA85BDFB568BD45DDC451C4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_F3ECEFF54E8453E5891662B4E90E3C95" xlink:to="loc_us-gaap_OtherCommitment_7A03CCC26BA85BDFB568BD45DDC451C4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OperatingLeasesLineItems" xlink:label="loc_pwr_OperatingLeasesLineItems_AD8F61C2A988C15DEDD492B1B4B9AA78" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable" xlink:label="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_50D0978B6F2C5FF633CB92B1B4B39EBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_OperatingLeasesLineItems_AD8F61C2A988C15DEDD492B1B4B9AA78" xlink:to="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_50D0978B6F2C5FF633CB92B1B4B39EBF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_9A978F2F8DAE4D6E192792B1B4B321AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_ScheduleOfOperatingLeasesFutureMinimumPaymentsDueTable_50D0978B6F2C5FF633CB92B1B4B39EBF" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_9A978F2F8DAE4D6E192792B1B4B321AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_4A904B694F351D6BCA7392B1B4B8A121_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_9A978F2F8DAE4D6E192792B1B4B321AE" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_4A904B694F351D6BCA7392B1B4B8A121_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_4A904B694F351D6BCA7392B1B4B8A121" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_9A978F2F8DAE4D6E192792B1B4B321AE" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_4A904B694F351D6BCA7392B1B4B8A121" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ResidualValueGuaranteesMember" xlink:label="loc_pwr_ResidualValueGuaranteesMember_B577FA69C80058D907CC92B1B4B90639" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_4A904B694F351D6BCA7392B1B4B8A121" xlink:to="loc_pwr_ResidualValueGuaranteesMember_B577FA69C80058D907CC92B1B4B90639" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="loc_us-gaap_LeaseAndRentalExpense_1DE8A5DC71E1DDC72CA192B1B4B9951C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_OperatingLeasesLineItems_AD8F61C2A988C15DEDD492B1B4B9AA78" xlink:to="loc_us-gaap_LeaseAndRentalExpense_1DE8A5DC71E1DDC72CA192B1B4B9951C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_B9ADE6737F50BDB1B56092B1B4B92AD8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_OperatingLeasesLineItems_AD8F61C2A988C15DEDD492B1B4B9AA78" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_B9ADE6737F50BDB1B56092B1B4B92AD8" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_BEB498B48952C0C1D2856C296EFF9BE4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_B76D6C0B6B448FBF997C6C296EFD6A03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_BEB498B48952C0C1D2856C296EFF9BE4" xlink:to="loc_us-gaap_LossContingenciesTable_B76D6C0B6B448FBF997C6C296EFD6A03" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LitigationCaseAxis" xlink:label="loc_us-gaap_LitigationCaseAxis_6318418289E5876257EA6C296EFDFE29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_B76D6C0B6B448FBF997C6C296EFD6A03" xlink:to="loc_us-gaap_LitigationCaseAxis_6318418289E5876257EA6C296EFDFE29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LitigationCaseTypeDomain" xlink:label="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationCaseAxis_6318418289E5876257EA6C296EFDFE29" xlink:to="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LitigationCaseTypeDomain" xlink:label="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationCaseAxis_6318418289E5876257EA6C296EFDFE29" xlink:to="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_MaurepasProjectDisputeMember" xlink:label="loc_pwr_MaurepasProjectDisputeMember_7926F50062F195C3F99C6C296EFE10AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63" xlink:to="loc_pwr_MaurepasProjectDisputeMember_7926F50062F195C3F99C6C296EFE10AF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember" xlink:label="loc_pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember_DF3AD287A8D77D3208946C296EFE3DE6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LitigationCaseTypeDomain_4538B0C708C3DC8C653F6C296EFD0F63" xlink:to="loc_pwr_LorenzoBentonvTelecomNetworkSpecialistsIncMember_DF3AD287A8D77D3208946C296EFE3DE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_0C1F54618278815E78E16C296EFE667A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_B76D6C0B6B448FBF997C6C296EFD6A03" xlink:to="loc_us-gaap_RangeAxis_0C1F54618278815E78E16C296EFE667A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_667017557E48E5F8D70F6C296EFE6E10_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_0C1F54618278815E78E16C296EFE667A" xlink:to="loc_us-gaap_RangeMember_667017557E48E5F8D70F6C296EFE6E10_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_667017557E48E5F8D70F6C296EFE6E10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_0C1F54618278815E78E16C296EFE667A" xlink:to="loc_us-gaap_RangeMember_667017557E48E5F8D70F6C296EFE6E10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_7BF51DB37CC681E953336C296EFEF319" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_667017557E48E5F8D70F6C296EFE6E10" xlink:to="loc_us-gaap_MaximumMember_7BF51DB37CC681E953336C296EFEF319" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss" xlink:label="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_C698FF42C988B3E2CDAA6C296EFF8539" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_BEB498B48952C0C1D2856C296EFF9BE4" xlink:to="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_C698FF42C988B3E2CDAA6C296EFF8539" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyDamagesSoughtValue" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_D097AD050654F4D165856C296EFF714D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_BEB498B48952C0C1D2856C296EFF9BE4" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_D097AD050654F4D165856C296EFF714D" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_50B4A4595E7654048931646AFBFB68A6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_EFE7B34AC513539F84E2F84BDDE82DB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_50B4A4595E7654048931646AFBFB68A6" xlink:to="loc_us-gaap_LossContingenciesTable_EFE7B34AC513539F84E2F84BDDE82DB4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_BCDAAE170B605C19B3023A6AF563C508" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_EFE7B34AC513539F84E2F84BDDE82DB4" xlink:to="loc_us-gaap_CreditFacilityAxis_BCDAAE170B605C19B3023A6AF563C508" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_CB2D4ABCEA5087793CDCBB4347B4A656_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_BCDAAE170B605C19B3023A6AF563C508" xlink:to="loc_us-gaap_CreditFacilityDomain_CB2D4ABCEA5087793CDCBB4347B4A656_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_7C684364E906574D8B2133426C75491F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_BCDAAE170B605C19B3023A6AF563C508" xlink:to="loc_us-gaap_CreditFacilityDomain_7C684364E906574D8B2133426C75491F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_1C4E04EEEFE65AA09200F5F929019E50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7C684364E906574D8B2133426C75491F" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_1C4E04EEEFE65AA09200F5F929019E50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_018D4AB3BFB35612BBE2B377742DFF49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_50B4A4595E7654048931646AFBFB68A6" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_018D4AB3BFB35612BBE2B377742DFF49" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_1747D83AB63550319908AD9DEA05400F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_BE6CABFAF2805BF1BB68713BD03EA81F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_1747D83AB63550319908AD9DEA05400F" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_BE6CABFAF2805BF1BB68713BD03EA81F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_7E6AEF2CCA7E522693D37901028BB7CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_BE6CABFAF2805BF1BB68713BD03EA81F" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_7E6AEF2CCA7E522693D37901028BB7CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_E590A40B7E1B3EC9376D4F93957E2C25_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_7E6AEF2CCA7E522693D37901028BB7CC" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_E590A40B7E1B3EC9376D4F93957E2C25_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_C4DF2EDC1BF253EAA71AFA38F4992139" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_7E6AEF2CCA7E522693D37901028BB7CC" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_C4DF2EDC1BF253EAA71AFA38F4992139" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PerformanceGuaranteeMember" xlink:label="loc_us-gaap_PerformanceGuaranteeMember_D177485B1A1E5792A8FD32E617CBD96D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_C4DF2EDC1BF253EAA71AFA38F4992139" xlink:to="loc_us-gaap_PerformanceGuaranteeMember_D177485B1A1E5792A8FD32E617CBD96D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_DA57D0EDA39E52BDA927FC58641C03B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_BE6CABFAF2805BF1BB68713BD03EA81F" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_DA57D0EDA39E52BDA927FC58641C03B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_913F09EA982A44C883604F93957E9473_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_DA57D0EDA39E52BDA927FC58641C03B4" xlink:to="loc_us-gaap_LossContingencyNatureDomain_913F09EA982A44C883604F93957E9473_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyNatureDomain" xlink:label="loc_us-gaap_LossContingencyNatureDomain_BFD68F3746085CEDB71DBFCFFB7A0494" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_DA57D0EDA39E52BDA927FC58641C03B4" xlink:to="loc_us-gaap_LossContingencyNatureDomain_BFD68F3746085CEDB71DBFCFFB7A0494" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_EstimateMember" xlink:label="loc_pwr_EstimateMember_A559921825985E59AD1A83F4828C80EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_BFD68F3746085CEDB71DBFCFFB7A0494" xlink:to="loc_pwr_EstimateMember_A559921825985E59AD1A83F4828C80EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_C9549237B11256CAA567C5F5508F43F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_1747D83AB63550319908AD9DEA05400F" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_C9549237B11256CAA567C5F5508F43F0" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_EstimatedCostsToCompleteBondedProjects" xlink:label="loc_pwr_EstimatedCostsToCompleteBondedProjects_E5DDA4D2DC4C52D2B262C4FEB3D15465" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_1747D83AB63550319908AD9DEA05400F" xlink:to="loc_pwr_EstimatedCostsToCompleteBondedProjects_E5DDA4D2DC4C52D2B262C4FEB3D15465" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_12B45654C1CFD8612510EEB2E92BF62D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_C444DD6FAF893763C8E6EEB2E928AF2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_12B45654C1CFD8612510EEB2E92BF62D" xlink:to="loc_us-gaap_StatementTable_C444DD6FAF893763C8E6EEB2E928AF2A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_18B3E89C9FC5095DF152EEB2E9280369" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_C444DD6FAF893763C8E6EEB2E928AF2A" xlink:to="loc_us-gaap_StatementClassOfStockAxis_18B3E89C9FC5095DF152EEB2E9280369" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_18B3E89C9FC5095DF152EEB2E9280369" xlink:to="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_18B3E89C9FC5095DF152EEB2E9280369" xlink:to="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_F47C489BEFDBD07F19E0EEB2E92ACEB3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43" xlink:to="loc_pwr_ExchangeableSharesMember_F47C489BEFDBD07F19E0EEB2E92ACEB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_1E4B447EE2E7194596E3EEB2E92A2B88" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C2B71E689B3EF9F98B5FEEB2E9293C43" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_1E4B447EE2E7194596E3EEB2E92A2B88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_12B45654C1CFD8612510EEB2E92BF62D" xlink:to="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_AE17CEAEDF6B956D86FBEEB2E92CB66F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_AE17CEAEDF6B956D86FBEEB2E92CB66F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_DF4830EDF22FE5DC7EB9EEB2E92D6EAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_DF4830EDF22FE5DC7EB9EEB2E92D6EAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerAssetNet" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_B91E21C8697DD7E31149EEB2E92D7EE7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_B91E21C8697DD7E31149EEB2E92D7EE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_7ACAFD79B41A1858671AEEB2E92D5A11" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_InventoryNet_7ACAFD79B41A1858671AEEB2E92D5A11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_AD6C2F025FB08EC4B02BEEB2E92EDDB4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_AD6C2F025FB08EC4B02BEEB2E92EDDB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_AEF37E79F39055657C18EEB2E92E5C53" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_C6156B0AE9030EF025BEEEB2E92BD4A7" xlink:to="loc_us-gaap_AssetsCurrent_AEF37E79F39055657C18EEB2E92E5C53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_2B52F6B62C3FB06C32CAEEB2E92F5A77" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_2B52F6B62C3FB06C32CAEEB2E92F5A77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_C7FF8BC446CF18A23DA4EEB2E92F9CAE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_C7FF8BC446CF18A23DA4EEB2E92F9CAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_27D6DB0428FF053DA259EEB2E9306FA0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_27D6DB0428FF053DA259EEB2E9306FA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_DC907B69205D5B8E2666EEB2E9318738" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_Goodwill_DC907B69205D5B8E2666EEB2E9318738" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_50753E0FCE851B1FD69AEEB2E931A9EA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_72B54F7DE465A83B28B2EEB2E92B3A5D" xlink:to="loc_us-gaap_Assets_50753E0FCE851B1FD69AEEB2E931A9EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_12B45654C1CFD8612510EEB2E92BF62D" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtCurrent" xlink:label="loc_us-gaap_DebtCurrent_D39F78CF77F09EADD55BEEB2E9320074" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:to="loc_us-gaap_DebtCurrent_D39F78CF77F09EADD55BEEB2E9320074" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_383DAA9605FB2CFCB2E4EEB2E933DBEA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_383DAA9605FB2CFCB2E4EEB2E933DBEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_74A5A524D69AB6095345EEB2E9338422" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:to="loc_us-gaap_ContractWithCustomerLiability_74A5A524D69AB6095345EEB2E9338422" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_74E41498F4BB25661D9FEEB2E934575F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6B7299B159D73DDA27A3EEB2E9326293" xlink:to="loc_us-gaap_LiabilitiesCurrent_74E41498F4BB25661D9FEEB2E934575F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_33BA926D70733F5E2C4AEEB2E934E510" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_33BA926D70733F5E2C4AEEB2E934E510" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_0B63D23B8060C47FF89BEEB2E93519BD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_0B63D23B8060C47FF89BEEB2E93519BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_DF2903ECEA43777434B1EEB2E935D9AD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_DF2903ECEA43777434B1EEB2E935D9AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_98B9C8DBF8075A67C1CAEEB2E93581E1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_Liabilities_98B9C8DBF8075A67C1CAEEB2E93581E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_C9A57AAC315189DF2799EEB2E936BD89" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_CommitmentsAndContingencies_C9A57AAC315189DF2799EEB2E936BD89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_14EBF55AE1B4B8C918E5EEB2E937AE60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_CommonStockValue_14EBF55AE1B4B8C918E5EEB2E937AE60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_516A8E0775950740BC90EEB2E938E683" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_PreferredStockValue_516A8E0775950740BC90EEB2E938E683" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_0C05EB39564A662067F9EEB2E9381FB5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_0C05EB39564A662067F9EEB2E9381FB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_E62787C7D8CD3C44BC27EEB2E93895BA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_E62787C7D8CD3C44BC27EEB2E93895BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2F361CA1E8695E01CE16EEB2E93910A8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2F361CA1E8695E01CE16EEB2E93910A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_25D9B29D3AC802A4A122EEB2E9398644" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_TreasuryStockValue_25D9B29D3AC802A4A122EEB2E9398644" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_DE5E043F94E5B15DBCD3EEB2E939E269" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2350A5282EBE80FD2B83EEB2E93630BF" xlink:to="loc_us-gaap_StockholdersEquity_DE5E043F94E5B15DBCD3EEB2E939E269" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_B6246C3AFBACB8D777A7EEB2E93AF8EE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_MinorityInterest_B6246C3AFBACB8D777A7EEB2E93AF8EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4A46BB17635B764769B4EEB2E93A31AD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4A46BB17635B764769B4EEB2E93A31AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_69C51D8327045FC2FC01EEB2E93B1AD6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6F4B32B85BA228CFEF98EEB2E931E1DC" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_69C51D8327045FC2FC01EEB2E93B1AD6" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_2DB7739646C0598BBD6AE05CDE42ADA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_StatementTable_2DB7739646C0598BBD6AE05CDE42ADA5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_1F3DDBF8CB9855F49067DF992AA7C3DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_2DB7739646C0598BBD6AE05CDE42ADA5" xlink:to="loc_us-gaap_StatementClassOfStockAxis_1F3DDBF8CB9855F49067DF992AA7C3DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B29C28F2468CA8B70557B5810186BC38_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_1F3DDBF8CB9855F49067DF992AA7C3DE" xlink:to="loc_us-gaap_ClassOfStockDomain_B29C28F2468CA8B70557B5810186BC38_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_2B9A10C12FD75788A660E74832D43AD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_1F3DDBF8CB9855F49067DF992AA7C3DE" xlink:to="loc_us-gaap_ClassOfStockDomain_2B9A10C12FD75788A660E74832D43AD7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_116250F6F0D65F318C10E5B960B0C85B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2B9A10C12FD75788A660E74832D43AD7" xlink:to="loc_pwr_ExchangeableSharesMember_116250F6F0D65F318C10E5B960B0C85B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_7EA624139A9152A0819DF8604AB3D649" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2B9A10C12FD75788A660E74832D43AD7" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_7EA624139A9152A0819DF8604AB3D649" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_50FB87EA883D501E8873FE4EDE9FE48B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_50FB87EA883D501E8873FE4EDE9FE48B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6B50EE320FB25963B425F85AE775E98F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_6B50EE320FB25963B425F85AE775E98F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_5DE67B35116A5CE5A32C07EE03583376" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_5DE67B35116A5CE5A32C07EE03583376" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_7307DA024E595246A79BB8763055E87A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_7307DA024E595246A79BB8763055E87A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_E7F9DE9039805016AFEDC54F192BEB3A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_E7F9DE9039805016AFEDC54F192BEB3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_B65EB5DC70235CFD95887E7422AEC51A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_CommonStockSharesIssued_B65EB5DC70235CFD95887E7422AEC51A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_38D56EF4600C577884CEE7CC82515143" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_38D56EF4600C577884CEE7CC82515143" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockNoParValue" xlink:label="loc_us-gaap_CommonStockNoParValue_A797EE3A53CE57FB8D868C58AF94153F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_CommonStockNoParValue_A797EE3A53CE57FB8D868C58AF94153F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_A03A3AF4EE865F068A06171749494789" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_A03A3AF4EE865F068A06171749494789" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_99265D680FDC5DFCAA12D2039708568E" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_99265D680FDC5DFCAA12D2039708568E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_6BE8872145065BB789FA55D47DC5C9F3" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_PreferredStockSharesIssued_6BE8872145065BB789FA55D47DC5C9F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_9DA27198BC9752739D8BBD47510F0284" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_9DA27198BC9752739D8BBD47510F0284" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_C523BAC88C555A8CA8737E8B3A5AA585" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CDE4BCA46BE59CFAD172BEC9924BC04" xlink:to="loc_us-gaap_TreasuryStockShares_C523BAC88C555A8CA8737E8B3A5AA585" 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/DebtObligationsCreditFacilityAmendedAndRestatedCreditAgreementDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_52AD0BD83B125A5BA2BD44265BD30850" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_E28EC83BE0CD5281A3D7C01A4D224BCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_52AD0BD83B125A5BA2BD44265BD30850" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_E28EC83BE0CD5281A3D7C01A4D224BCE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrencyAxis" xlink:label="loc_us-gaap_CurrencyAxis_1234BCD11E2F53F9ADFCD162303D0068" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E28EC83BE0CD5281A3D7C01A4D224BCE" xlink:to="loc_us-gaap_CurrencyAxis_1234BCD11E2F53F9ADFCD162303D0068" 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_9D604E6D342D04168B615E4557B56526_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CurrencyAxis_1234BCD11E2F53F9ADFCD162303D0068" xlink:to="loc_currency_AllCurrenciesDomain_9D604E6D342D04168B615E4557B56526_8E947C3789D456F58EB25052EE901983" 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_90801149D2DC5A5F9E466042F8B53206" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CurrencyAxis_1234BCD11E2F53F9ADFCD162303D0068" xlink:to="loc_currency_AllCurrenciesDomain_90801149D2DC5A5F9E466042F8B53206" 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_98610D5F72C053D49319881A0740A6BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_90801149D2DC5A5F9E466042F8B53206" xlink:to="loc_currency_USD_98610D5F72C053D49319881A0740A6BF" 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_C7E654432EBF5129B85A85C73C4B7A0C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_90801149D2DC5A5F9E466042F8B53206" xlink:to="loc_currency_CAD_C7E654432EBF5129B85A85C73C4B7A0C" 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_3F1751816701559698424B10FF79310A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_90801149D2DC5A5F9E466042F8B53206" xlink:to="loc_currency_AUD_3F1751816701559698424B10FF79310A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_DAE05354C05F54E5A4C10F32B5D8EC29" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E28EC83BE0CD5281A3D7C01A4D224BCE" xlink:to="loc_us-gaap_DebtInstrumentAxis_DAE05354C05F54E5A4C10F32B5D8EC29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_39AAB087B508C7480F365E4557B6D4CB_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_DAE05354C05F54E5A4C10F32B5D8EC29" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_39AAB087B508C7480F365E4557B6D4CB_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6B881B07E2D25B34B47B5AFCB9A3D721" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_DAE05354C05F54E5A4C10F32B5D8EC29" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6B881B07E2D25B34B47B5AFCB9A3D721" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_FourthAmendedAndRestatedMember" xlink:label="loc_pwr_FourthAmendedAndRestatedMember_893E27E197FB5612AF5CE6EBE7ABDE16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_6B881B07E2D25B34B47B5AFCB9A3D721" xlink:to="loc_pwr_FourthAmendedAndRestatedMember_893E27E197FB5612AF5CE6EBE7ABDE16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_CA33E6D1725F50758DA37051E7A8B477" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E28EC83BE0CD5281A3D7C01A4D224BCE" xlink:to="loc_us-gaap_CreditFacilityAxis_CA33E6D1725F50758DA37051E7A8B477" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_2E27F8E77F1DFD8C363C5E4557B6D1E4_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_CA33E6D1725F50758DA37051E7A8B477" xlink:to="loc_us-gaap_CreditFacilityDomain_2E27F8E77F1DFD8C363C5E4557B6D1E4_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_CA47A0C1BD6252DAA28DC38D8451FFB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_CA33E6D1725F50758DA37051E7A8B477" xlink:to="loc_us-gaap_CreditFacilityDomain_CA47A0C1BD6252DAA28DC38D8451FFB2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember" xlink:label="loc_pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember_81CE9C043CAD536284E8634C6CEE9BFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_CA47A0C1BD6252DAA28DC38D8451FFB2" xlink:to="loc_pwr_RevolvingLoansAndLetterOfCreditInAlternativeCurrenciesMember_81CE9C043CAD536284E8634C6CEE9BFA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_SwingLinesLoanMember" xlink:label="loc_pwr_SwingLinesLoanMember_03E937043FC456F894DAB42230DF4B2C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_CA47A0C1BD6252DAA28DC38D8451FFB2" xlink:to="loc_pwr_SwingLinesLoanMember_03E937043FC456F894DAB42230DF4B2C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_B6A219DA5E3955A0AF0F8AD8D5657B5F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_52AD0BD83B125A5BA2BD44265BD30850" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_B6A219DA5E3955A0AF0F8AD8D5657B5F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement" xlink:label="loc_pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement_00623F5AE2BA5F4784EBC51D535208FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_52AD0BD83B125A5BA2BD44265BD30850" xlink:to="loc_pwr_OptionToIncreaseRevolvingCommitmentsUnderCreditAgreement_00623F5AE2BA5F4784EBC51D535208FE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_D950919AF229584DA6CCF0970D45822D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_6B766AE4E35E542AB3BD4F5CA9FE7688" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D950919AF229584DA6CCF0970D45822D" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_6B766AE4E35E542AB3BD4F5CA9FE7688" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_0B5E61642AC35A55B72A5911DD42AFDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_6B766AE4E35E542AB3BD4F5CA9FE7688" xlink:to="loc_us-gaap_CreditFacilityAxis_0B5E61642AC35A55B72A5911DD42AFDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_79E5D0F0F764CA91D15CBB434B2FE3ED_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_0B5E61642AC35A55B72A5911DD42AFDA" xlink:to="loc_us-gaap_CreditFacilityDomain_79E5D0F0F764CA91D15CBB434B2FE3ED_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_71EEEA96B3A950A988336DC6D961E0D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_0B5E61642AC35A55B72A5911DD42AFDA" xlink:to="loc_us-gaap_CreditFacilityDomain_71EEEA96B3A950A988336DC6D961E0D9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_4FF03FA530D25A658F7A981F81F1C691" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_71EEEA96B3A950A988336DC6D961E0D9" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_4FF03FA530D25A658F7A981F81F1C691" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_BorrowingsUnderCreditFacilityMember" xlink:label="loc_pwr_BorrowingsUnderCreditFacilityMember_ADD767DFF2A75728AD3996CBD7824882" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_71EEEA96B3A950A988336DC6D961E0D9" xlink:to="loc_pwr_BorrowingsUnderCreditFacilityMember_ADD767DFF2A75728AD3996CBD7824882" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrencyAxis" xlink:label="loc_us-gaap_CurrencyAxis_7F21F248FB5C5DEDA50DF2D2A11CE92B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_6B766AE4E35E542AB3BD4F5CA9FE7688" xlink:to="loc_us-gaap_CurrencyAxis_7F21F248FB5C5DEDA50DF2D2A11CE92B" 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_B5219893087AD9365E6BBB434B30FF5E_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CurrencyAxis_7F21F248FB5C5DEDA50DF2D2A11CE92B" xlink:to="loc_currency_AllCurrenciesDomain_B5219893087AD9365E6BBB434B30FF5E_C2325C08EE565686AB15CC6298543520" 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_356295B146215055820F454C28A8DB3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CurrencyAxis_7F21F248FB5C5DEDA50DF2D2A11CE92B" xlink:to="loc_currency_AllCurrenciesDomain_356295B146215055820F454C28A8DB3B" 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_B849978ACA285E1B984C78B11A86E5F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_356295B146215055820F454C28A8DB3B" xlink:to="loc_currency_USD_B849978ACA285E1B984C78B11A86E5F7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CanadianAndAustralianDollarsMember" xlink:label="loc_pwr_CanadianAndAustralianDollarsMember_305EE90F7E1559F79318CEB7CA2A9BE2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_356295B146215055820F454C28A8DB3B" xlink:to="loc_pwr_CanadianAndAustralianDollarsMember_305EE90F7E1559F79318CEB7CA2A9BE2" 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_684301ED2A765430B601CFF254A184C0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_356295B146215055820F454C28A8DB3B" xlink:to="loc_currency_CAD_684301ED2A765430B601CFF254A184C0" 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_394213E5C9EB59EAA779A1F403CA5F72" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_356295B146215055820F454C28A8DB3B" xlink:to="loc_currency_AUD_394213E5C9EB59EAA779A1F403CA5F72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_5947BACB26B15A80AA047B2DBF64E077" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D950919AF229584DA6CCF0970D45822D" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_5947BACB26B15A80AA047B2DBF64E077" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_3FB57276FB1B51B295B13347CD3530BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D950919AF229584DA6CCF0970D45822D" xlink:to="loc_us-gaap_LineOfCredit_3FB57276FB1B51B295B13347CD3530BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_F8F3557EA1075F54828FFE51B14EBB6A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_D950919AF229584DA6CCF0970D45822D" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_F8F3557EA1075F54828FFE51B14EBB6A" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_DFEF86D99B835F2688B738C4DC183F7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:to="loc_us-gaap_DebtInstrumentAxis_DFEF86D99B835F2688B738C4DC183F7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_88707C49875CD382443C90F7C1F738CC_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_DFEF86D99B835F2688B738C4DC183F7E" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_88707C49875CD382443C90F7C1F738CC_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_A0D22A2AA21458D79CE4D83A19FEC07C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_DFEF86D99B835F2688B738C4DC183F7E" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_A0D22A2AA21458D79CE4D83A19FEC07C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_FourthAmendedAndRestatedMember" xlink:label="loc_pwr_FourthAmendedAndRestatedMember_2E44F6CAB0C357AEA96B1A5A87726356" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_A0D22A2AA21458D79CE4D83A19FEC07C" xlink:to="loc_pwr_FourthAmendedAndRestatedMember_2E44F6CAB0C357AEA96B1A5A87726356" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_0D302744FFF853DE9EB8E989861365D0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:to="loc_us-gaap_VariableRateAxis_0D302744FFF853DE9EB8E989861365D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_EB79D6E31726A47BA82990F7C1F762D6_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_0D302744FFF853DE9EB8E989861365D0" xlink:to="loc_us-gaap_VariableRateDomain_EB79D6E31726A47BA82990F7C1F762D6_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_0D302744FFF853DE9EB8E989861365D0" xlink:to="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember" xlink:label="loc_pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember_6D033312D3145ED1BA72F79114777B54" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:to="loc_pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember_6D033312D3145ED1BA72F79114777B54" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember" xlink:label="loc_pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember_D9E67DEC3A255277B61D771429E34539" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:to="loc_pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember_D9E67DEC3A255277B61D771429E34539" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember" xlink:label="loc_pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember_2A565CC2FB6151C0BA8469DD24CDFCE8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:to="loc_pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember_2A565CC2FB6151C0BA8469DD24CDFCE8" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExcessOfFederalFundsRateMember" xlink:label="loc_pwr_ExcessOfFederalFundsRateMember_66F8C6B49CA658AFADB85878C031C0B9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:to="loc_pwr_ExcessOfFederalFundsRateMember_66F8C6B49CA658AFADB85878C031C0B9" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExcessOfEuroCurrencyRateMember" xlink:label="loc_pwr_ExcessOfEuroCurrencyRateMember_82ADEF27A2D8505388C147D6B0DA0FB3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_80ACAFE8F4BC54BF829BECB7607EFEEF" xlink:to="loc_pwr_ExcessOfEuroCurrencyRateMember_82ADEF27A2D8505388C147D6B0DA0FB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_0ECB830515F0511C995156036620B661" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:to="loc_us-gaap_RangeAxis_0ECB830515F0511C995156036620B661" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_700588F3B846DB834C7C90F7C1F84222_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_0ECB830515F0511C995156036620B661" xlink:to="loc_us-gaap_RangeMember_700588F3B846DB834C7C90F7C1F84222_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_2477B8DC11A750FC983136BA6ED50EE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_0ECB830515F0511C995156036620B661" xlink:to="loc_us-gaap_RangeMember_2477B8DC11A750FC983136BA6ED50EE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_51F5280516A952888E54CE5757012159" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_2477B8DC11A750FC983136BA6ED50EE1" xlink:to="loc_us-gaap_MinimumMember_51F5280516A952888E54CE5757012159" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_80E519E8902E5745AA73E77DFC74BCB7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_2477B8DC11A750FC983136BA6ED50EE1" xlink:to="loc_us-gaap_MaximumMember_80E519E8902E5745AA73E77DFC74BCB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_1B4D9F80D2AF5537B83FC0F50F5F446B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_E9B63F52A9845E89A883B56053C5E035" xlink:to="loc_us-gaap_CreditFacilityAxis_1B4D9F80D2AF5537B83FC0F50F5F446B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_7927A69F85ECC985D5CB90F7C1F84352_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_1B4D9F80D2AF5537B83FC0F50F5F446B" xlink:to="loc_us-gaap_CreditFacilityDomain_7927A69F85ECC985D5CB90F7C1F84352_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_0D303815DA5759F39EEA693301D696BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_1B4D9F80D2AF5537B83FC0F50F5F446B" xlink:to="loc_us-gaap_CreditFacilityDomain_0D303815DA5759F39EEA693301D696BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StandbyLettersOfCreditMember" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_7F94EEA394E15B55B72B605D47E81B5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0D303815DA5759F39EEA693301D696BE" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_7F94EEA394E15B55B72B605D47E81B5B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PerformanceLettersOfCreditMember" xlink:label="loc_pwr_PerformanceLettersOfCreditMember_971F78CD1E735CEF977199C5793ED419" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0D303815DA5759F39EEA693301D696BE" xlink:to="loc_pwr_PerformanceLettersOfCreditMember_971F78CD1E735CEF977199C5793ED419" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_13E18F7C5CBA56CCA90ADAAD22C32C79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_13E18F7C5CBA56CCA90ADAAD22C32C79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_FBFE9204E7BB5C3B91BB0944BE37B310" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_FBFE9204E7BB5C3B91BB0944BE37B310" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount" xlink:label="loc_pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount_4D587AB2F08D54F5A9C2E4392D4EF449" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount_4D587AB2F08D54F5A9C2E4392D4EF449" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement" xlink:label="loc_pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement_441EE8A83B1853B3A452046AB9C85017" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_PercentageOfCapitalStockOfDirectForeignSubsidiariesRequiredToSecureCreditAgreement_441EE8A83B1853B3A452046AB9C85017" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DebtInstrumentCovenantLeverageRatioMaximum" xlink:label="loc_pwr_DebtInstrumentCovenantLeverageRatioMaximum_37A9B6F3A6825FA38E39A23D153CE1BC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_DebtInstrumentCovenantLeverageRatioMaximum_37A9B6F3A6825FA38E39A23D153CE1BC" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio" xlink:label="loc_pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio_910F11DB3A7B545498E163A03040E266" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio_910F11DB3A7B545498E163A03040E266" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum" xlink:label="loc_pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum_0E7A1F5303F358ADA532C128EA4A8C02" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_DebtInstrumentCovenantLeverageRatioAcquisitionCompletedInCurrentAndTwoSubsequentQuartersMaximum_0E7A1F5303F358ADA532C128EA4A8C02" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum" xlink:label="loc_pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum_5DA9D2E9E1C95858A0C551A43905339E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum_5DA9D2E9E1C95858A0C551A43905339E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases" xlink:label="loc_pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases_80A61B92C6F65F8E883C529FBD2BC1C1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_AvailabilityAmountToAllowDividendsAndStockRepurchases_80A61B92C6F65F8E883C529FBD2BC1C1" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CrossDefaultProvisions" xlink:label="loc_pwr_CrossDefaultProvisions_6418C4A0C89E586A8F30484B18A221B8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_052C9E062DFB5C69BB074C98E1CF236F" xlink:to="loc_pwr_CrossDefaultProvisions_6418C4A0C89E586A8F30484B18A221B8" 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/DebtObligationsInformationOnBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_A9CCA58B3C9357D1B3D26778453E78B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_DebtInstrumentTable_A9CCA58B3C9357D1B3D26778453E78B4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_10E945FA47645A70A2BE0350C8DCD179" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_A9CCA58B3C9357D1B3D26778453E78B4" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_10E945FA47645A70A2BE0350C8DCD179" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5C93BAEC1B268874EF22FEBF574E0FB7_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_10E945FA47645A70A2BE0350C8DCD179" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5C93BAEC1B268874EF22FEBF574E0FB7_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5352BF97B0F95901A5155B3479A16D53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_10E945FA47645A70A2BE0350C8DCD179" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5352BF97B0F95901A5155B3479A16D53" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OtherLongTermDebtMember" xlink:label="loc_pwr_OtherLongTermDebtMember_156A96FF02E65FD8AEEB8E7489264427" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5352BF97B0F95901A5155B3479A16D53" xlink:to="loc_pwr_OtherLongTermDebtMember_156A96FF02E65FD8AEEB8E7489264427" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_6BD74827D2755B9C94AA11A1CDC465DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5352BF97B0F95901A5155B3479A16D53" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_6BD74827D2755B9C94AA11A1CDC465DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_8E9FABCE51B557CC83735DAF2110B033" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_A9CCA58B3C9357D1B3D26778453E78B4" xlink:to="loc_us-gaap_RangeAxis_8E9FABCE51B557CC83735DAF2110B033" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_FA43401CA8D4BA7A57ADFEBF574E5A92_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_8E9FABCE51B557CC83735DAF2110B033" xlink:to="loc_us-gaap_RangeMember_FA43401CA8D4BA7A57ADFEBF574E5A92_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B3D5E6E98FD753C3A58662A2E96B6E22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_8E9FABCE51B557CC83735DAF2110B033" xlink:to="loc_us-gaap_RangeMember_B3D5E6E98FD753C3A58662A2E96B6E22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_78BEF0F461C45C8EA3790A7A6E2F0113" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B3D5E6E98FD753C3A58662A2E96B6E22" xlink:to="loc_us-gaap_MinimumMember_78BEF0F461C45C8EA3790A7A6E2F0113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_55D0B2ADC7B8501DBA614C4AFAB7981D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B3D5E6E98FD753C3A58662A2E96B6E22" xlink:to="loc_us-gaap_MaximumMember_55D0B2ADC7B8501DBA614C4AFAB7981D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_BEDBF95271575FAFAF87EE1ECBF1CDAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_LineOfCredit_BEDBF95271575FAFAF87EE1ECBF1CDAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaap_OtherLongTermDebt_20959ADCAEC1537AA36F47A71D6BD36C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_OtherLongTermDebt_20959ADCAEC1537AA36F47A71D6BD36C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligations" xlink:label="loc_us-gaap_CapitalLeaseObligations_C089CFC429745189A14F4E14A06D2A93" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_CapitalLeaseObligations_C089CFC429745189A14F4E14A06D2A93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_2AF3A04BFAA25A25AFCAB7301AD31377" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_LongTermDebt_2AF3A04BFAA25A25AFCAB7301AD31377" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_F43E05D3EDE056AEA0DD85A25D3B1B2E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_LongTermDebtCurrent_F43E05D3EDE056AEA0DD85A25D3B1B2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_C6F4B18030F051CC811783BF34D50CD0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_C6F4B18030F051CC811783BF34D50CD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7A359F11D9715F88925A69C3764CF0DA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_E00A230535DA593680129ABFA33C5257" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7A359F11D9715F88925A69C3764CF0DA" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_EFA35B4C313C591BBE1CB6A9ACFD8F02" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_F72D94C7E3A751338022DBAC8D8EA31C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_EFA35B4C313C591BBE1CB6A9ACFD8F02" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_F72D94C7E3A751338022DBAC8D8EA31C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_EB4E24E6D6F85D079522EE349AB27643" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_F72D94C7E3A751338022DBAC8D8EA31C" xlink:to="loc_us-gaap_DebtInstrumentAxis_EB4E24E6D6F85D079522EE349AB27643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_514151D5143A2B8A2339BB434A82E0AA_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_EB4E24E6D6F85D079522EE349AB27643" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_514151D5143A2B8A2339BB434A82E0AA_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_F10504D5E16456DFB89E8908D3E3C1F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_EB4E24E6D6F85D079522EE349AB27643" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_F10504D5E16456DFB89E8908D3E3C1F2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OtherCreditFacilitiesMember" xlink:label="loc_pwr_OtherCreditFacilitiesMember_2BDA1890F8175BF7BFBC546CCC6288D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_F10504D5E16456DFB89E8908D3E3C1F2" xlink:to="loc_pwr_OtherCreditFacilitiesMember_2BDA1890F8175BF7BFBC546CCC6288D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_99D6F774D9A35404A5C771FF1C1C0E0B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_F72D94C7E3A751338022DBAC8D8EA31C" xlink:to="loc_us-gaap_CreditFacilityAxis_99D6F774D9A35404A5C771FF1C1C0E0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_6B5D95927CFBFFBDA087BB434A831898_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_99D6F774D9A35404A5C771FF1C1C0E0B" xlink:to="loc_us-gaap_CreditFacilityDomain_6B5D95927CFBFFBDA087BB434A831898_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_397F94B3568B5DE1B2436DDD4E674E63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_99D6F774D9A35404A5C771FF1C1C0E0B" xlink:to="loc_us-gaap_CreditFacilityDomain_397F94B3568B5DE1B2436DDD4E674E63" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LettersOfCreditAndBankGuaranteesMember" xlink:label="loc_pwr_LettersOfCreditAndBankGuaranteesMember_5CD6B30BB763535A963093B39BD5BDC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_397F94B3568B5DE1B2436DDD4E674E63" xlink:to="loc_pwr_LettersOfCreditAndBankGuaranteesMember_5CD6B30BB763535A963093B39BD5BDC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_3C10E6A73F0D5736961209B939781FC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_EFA35B4C313C591BBE1CB6A9ACFD8F02" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_3C10E6A73F0D5736961209B939781FC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_CF09A7E07C525E6087AC00CC9B24E358" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_EFA35B4C313C591BBE1CB6A9ACFD8F02" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_CF09A7E07C525E6087AC00CC9B24E358" 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="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_71BE59398F99552AA94DA69C3324F3AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_DocumentInformationTable_71BE59398F99552AA94DA69C3324F3AA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_7F21249AD24B5DE4A44316775B5BE642" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_71BE59398F99552AA94DA69C3324F3AA" xlink:to="loc_us-gaap_StatementClassOfStockAxis_7F21249AD24B5DE4A44316775B5BE642" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_E84C77761FEFDE00CC2E35DA2668EF01_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7F21249AD24B5DE4A44316775B5BE642" xlink:to="loc_us-gaap_ClassOfStockDomain_E84C77761FEFDE00CC2E35DA2668EF01_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7F21249AD24B5DE4A44316775B5BE642" xlink:to="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CommonStockClassUndefinedMember" xlink:label="loc_pwr_CommonStockClassUndefinedMember_66D1933D698D5308B4352D4D83C8E8AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:to="loc_pwr_CommonStockClassUndefinedMember_66D1933D698D5308B4352D4D83C8E8AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_BAA24BDC0CC35C0B977EF3A1301591CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_BAA24BDC0CC35C0B977EF3A1301591CB" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_937715786F93591BAF127A0899075D5D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:to="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_937715786F93591BAF127A0899075D5D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember_CE1C83065E325B759EBC274EBC6E3DB9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BC8DEF83708554DAA651A5CCEA0DD130" xlink:to="loc_pwr_ExchangeableSharesNotAssociatedWithPreferredStockMember_CE1C83065E325B759EBC274EBC6E3DB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_DD1C5BF1E8375E1ABE3145DC35FBAAA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_DocumentType_DD1C5BF1E8375E1ABE3145DC35FBAAA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_BA43D827817059739B2AFF399AD7831A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_AmendmentFlag_BA43D827817059739B2AFF399AD7831A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_56B6287126E3525B9B04082D9395A3D2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_DocumentPeriodEndDate_56B6287126E3525B9B04082D9395A3D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_7BAC8BF3261E589D8B68AFCC632742E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_DocumentFiscalYearFocus_7BAC8BF3261E589D8B68AFCC632742E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_2F29C314D718548BB691F423AB7E4FD8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_DocumentFiscalPeriodFocus_2F29C314D718548BB691F423AB7E4FD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_7FBBB599F94B5A1E80DA09F801CC5DE2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_TradingSymbol_7FBBB599F94B5A1E80DA09F801CC5DE2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_565745FB0A24571E9B6DA856299DD7BB" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_EntityRegistrantName_565745FB0A24571E9B6DA856299DD7BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_EB83755BF34F5F32A32B2D259FD00300" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_EntityCentralIndexKey_EB83755BF34F5F32A32B2D259FD00300" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_F3F669360D82564B8FA497DC3FE9A22E" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_CurrentFiscalYearEndDate_F3F669360D82564B8FA497DC3FE9A22E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_F1447112C9CE5E76844B82452AF3F6B8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_EntityFilerCategory_F1447112C9CE5E76844B82452AF3F6B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_41FE131AB13453B7AA5A1D77630AA32B" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_B6B209BB95725259A813221F615F72B9" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_41FE131AB13453B7AA5A1D77630AA32B" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_933A8E41D7B653A39112A3030F939DCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_933A8E41D7B653A39112A3030F939DCF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_F176DABCC79E576182FDEFB44192394D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_933A8E41D7B653A39112A3030F939DCF" xlink:to="loc_us-gaap_AwardTypeAxis_F176DABCC79E576182FDEFB44192394D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2D9E8CF8A6BD25B897425E455971F7E7_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_F176DABCC79E576182FDEFB44192394D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2D9E8CF8A6BD25B897425E455971F7E7_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E9A70DB5D45759958972DEA551E89692" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_F176DABCC79E576182FDEFB44192394D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E9A70DB5D45759958972DEA551E89692" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PerformanceUnitsMember" xlink:label="loc_pwr_PerformanceUnitsMember_E6BF3EF777E455AA9CB2D579348B6E2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E9A70DB5D45759958972DEA551E89692" xlink:to="loc_pwr_PerformanceUnitsMember_E6BF3EF777E455AA9CB2D579348B6E2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_D0BDA3028BF85532BA1761E4CF386478" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:to="loc_us-gaap_SharePrice_D0BDA3028BF85532BA1761E4CF386478" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_C23125D76DB95819A494D61F13F197DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_C23125D76DB95819A494D61F13F197DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_97F118876A72525283F4E7F48B7C3794" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_97F118876A72525283F4E7F48B7C3794" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_B191644896D855CD86D77396B9598A84" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5013C4985DBA5F8C889053E33A6EFE62" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_B191644896D855CD86D77396B9598A84" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B6EDA4BBE7C48687E64D6C296F422CFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B6EDA4BBE7C48687E64D6C296F422CFF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_4D074EB60C39A8F1A8586C296F42F84B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B6EDA4BBE7C48687E64D6C296F422CFF" xlink:to="loc_us-gaap_AwardTypeAxis_4D074EB60C39A8F1A8586C296F42F84B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_574809E2FE6E87A2EBF06C296F436150_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4D074EB60C39A8F1A8586C296F42F84B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_574809E2FE6E87A2EBF06C296F436150_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_574809E2FE6E87A2EBF06C296F436150" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4D074EB60C39A8F1A8586C296F42F84B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_574809E2FE6E87A2EBF06C296F436150" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PerformanceUnitsMember" xlink:label="loc_pwr_PerformanceUnitsMember_8D2010C9A52FE104A8386C296F43EC9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_574809E2FE6E87A2EBF06C296F436150" xlink:to="loc_pwr_PerformanceUnitsMember_8D2010C9A52FE104A8386C296F43EC9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_07D0D5BEB878D7D6DCF96C296F43E15B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B6EDA4BBE7C48687E64D6C296F422CFF" xlink:to="loc_us-gaap_RangeAxis_07D0D5BEB878D7D6DCF96C296F43E15B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_07D0D5BEB878D7D6DCF96C296F43E15B" xlink:to="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_07D0D5BEB878D7D6DCF96C296F43E15B" xlink:to="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_BDAF79E0F2A78ECC01A96C296F448FDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48" xlink:to="loc_us-gaap_MinimumMember_BDAF79E0F2A78ECC01A96C296F448FDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_68D1ABCF3276A6AC3AEF6C296F44B7D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1AA18A4A4DF1F2F69E3D6C296F449C48" xlink:to="loc_us-gaap_MaximumMember_68D1ABCF3276A6AC3AEF6C296F44B7D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1_9FB3715A0B342A5FF1C76C296F45396A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1_9FB3715A0B342A5FF1C76C296F45396A" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PerformanceBasedAwardPerformancePercentage" xlink:label="loc_pwr_PerformanceBasedAwardPerformancePercentage_9695236EC2FB84C2A8266C296F45B533" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_pwr_PerformanceBasedAwardPerformancePercentage_9695236EC2FB84C2A8266C296F45B533" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_30E98425DA8234D6A86D6C296F45E8ED" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_30E98425DA8234D6A86D6C296F45E8ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1702FFFF1EABD01A796B6C296F476C49" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1702FFFF1EABD01A796B6C296F476C49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_256CCC75C0695033B1C66C296F46A888" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensation_256CCC75C0695033B1C66C296F46A888" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_1A0AB9F76C1C7AABE9EC6C296F465996" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_1A0AB9F76C1C7AABE9EC6C296F465996" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_04BF8D894BA0135AC1C36C296F46AEB4" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_04BF8D894BA0135AC1C36C296F46AEB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_B03A139F995F5A543AF66C296F4651CE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E13A166963C7CD35AAE76C296F45C059" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_B03A139F995F5A543AF66C296F4651CE" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E42A2180DDD0AA40CD939AC0C890609E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E42A2180DDD0AA40CD939AC0C890609E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_8527A82DA3F9AD939D209AC0C891D46F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E42A2180DDD0AA40CD939AC0C890609E" xlink:to="loc_us-gaap_AwardTypeAxis_8527A82DA3F9AD939D209AC0C891D46F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B2EFA4160BD0417A83B69AC0C892D5A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8527A82DA3F9AD939D209AC0C891D46F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B2EFA4160BD0417A83B69AC0C892D5A2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B2EFA4160BD0417A83B69AC0C892D5A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8527A82DA3F9AD939D209AC0C891D46F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B2EFA4160BD0417A83B69AC0C892D5A2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RestrictedStockUnitsToBeSettledInCashMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_1DD715980A959E4F54259AC0C892FBA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B2EFA4160BD0417A83B69AC0C892D5A2" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_1DD715980A959E4F54259AC0C892FBA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_2804B932C79873200E2A9AC0C892BEE5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_E42A2180DDD0AA40CD939AC0C890609E" xlink:to="loc_us-gaap_RangeAxis_2804B932C79873200E2A9AC0C892BEE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_2804B932C79873200E2A9AC0C892BEE5" xlink:to="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_2804B932C79873200E2A9AC0C892BEE5" xlink:to="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_5E7472CAF0AD8FCF26689AC0C893B556" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611" xlink:to="loc_us-gaap_MinimumMember_5E7472CAF0AD8FCF26689AC0C893B556" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_8792675933631BB9101F9AC0C893C53E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_306D55F7A88B5AFDE8E19AC0C893F611" xlink:to="loc_us-gaap_MaximumMember_8792675933631BB9101F9AC0C893C53E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_2D2651CE943C8BA021189AC0C894382C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_2D2651CE943C8BA021189AC0C894382C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares" xlink:label="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_7C2244964DFBE28FA77C9AC0C8940DD2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_7C2244964DFBE28FA77C9AC0C8940DD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_8731EEDF0817131143F89AC0C895C3D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_8731EEDF0817131143F89AC0C895C3D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_8558F9C817E239997F4A9AC0C8950C8F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_8558F9C817E239997F4A9AC0C8950C8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent" xlink:label="loc_us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_1F3BEE677168B98F68CA9AC0C89548C0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DFE7FB4B9330FBA7F4039AC0C894A41B" xlink:to="loc_us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_1F3BEE677168B98F68CA9AC0C89548C0" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1FF91C9CB9DAEF3D4F519AC0C8EF94EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1FF91C9CB9DAEF3D4F519AC0C8EF94EE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_A857FC87A6ADEEAE92B09AC0C8F0D956" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1FF91C9CB9DAEF3D4F519AC0C8EF94EE" xlink:to="loc_us-gaap_VestingAxis_A857FC87A6ADEEAE92B09AC0C8F0D956" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_A857FC87A6ADEEAE92B09AC0C8F0D956" xlink:to="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_A857FC87A6ADEEAE92B09AC0C8F0D956" xlink:to="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_F8962A910E1CFCDA7D6E9AC0C8F1EEF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_F8962A910E1CFCDA7D6E9AC0C8F1EEF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_F04481856294029DFC6E9AC0C8F1735B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_F04481856294029DFC6E9AC0C8F1735B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_BACE9AF5435ECD9E1DEE9AC0C8F2D3FE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_097A32967C20E4C9E5469AC0C8F062E1" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_BACE9AF5435ECD9E1DEE9AC0C8F2D3FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_C01F2700AFB3EFDD51379AC0C8F2B15E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1FF91C9CB9DAEF3D4F519AC0C8EF94EE" xlink:to="loc_us-gaap_AwardTypeAxis_C01F2700AFB3EFDD51379AC0C8F2B15E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_488F647BEE3B7724CD0A9AC0C8F2069F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_C01F2700AFB3EFDD51379AC0C8F2B15E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_488F647BEE3B7724CD0A9AC0C8F2069F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_488F647BEE3B7724CD0A9AC0C8F2069F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_C01F2700AFB3EFDD51379AC0C8F2B15E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_488F647BEE3B7724CD0A9AC0C8F2069F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RestrictedStockUnitsToBeSettledInCommonStockMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_443A65F98062D135A1619AC0C8F86A19" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_488F647BEE3B7724CD0A9AC0C8F2069F" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCommonStockMember_443A65F98062D135A1619AC0C8F86A19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3BE490973B48946BC3079AC0C8F95942" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3BE490973B48946BC3079AC0C8F95942" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_6342D0BA4C34208AEE429AC0C8F9CFA6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_6342D0BA4C34208AEE429AC0C8F9CFA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_774841909C354B200CF89AC0C8FAE87C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_774841909C354B200CF89AC0C8FAE87C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_7E943FECD28DA3289C4A9AC0C8FA4C47" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_7E943FECD28DA3289C4A9AC0C8FA4C47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_6EEB9B269C9790FE2AD79AC0C8FA3475" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_6EEB9B269C9790FE2AD79AC0C8FA3475" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_C9A0C7FE52568DDDCCE39AC0C8FA7090" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_ShareBasedCompensation_C9A0C7FE52568DDDCCE39AC0C8FA7090" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D5B7772C48EFFCBE89FF9AC0C8FAC7E6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D5B7772C48EFFCBE89FF9AC0C8FAC7E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_70C15B872C5FAA66F7249AC0C8FB80C8" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F53A167DDB3F5328840B9AC0C8F811AF" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_70C15B872C5FAA66F7249AC0C8FB80C8" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_127F8DA212165790982845BFBA49A261" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_061C3BAF48D151C5AFF50152C8407BBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_127F8DA212165790982845BFBA49A261" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_061C3BAF48D151C5AFF50152C8407BBD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_720C10119D415D859162C05A012CA7C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_061C3BAF48D151C5AFF50152C8407BBD" xlink:to="loc_us-gaap_PlanNameAxis_720C10119D415D859162C05A012CA7C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_A351862F3C9B1908464BB580FF3A3B5E_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_720C10119D415D859162C05A012CA7C5" xlink:to="loc_us-gaap_PlanNameDomain_A351862F3C9B1908464BB580FF3A3B5E_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_869C375E8C335EDC9EFEFD9E8C402B99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_720C10119D415D859162C05A012CA7C5" xlink:to="loc_us-gaap_PlanNameDomain_869C375E8C335EDC9EFEFD9E8C402B99" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TwoThousandAndElevenPlanMember" xlink:label="loc_pwr_TwoThousandAndElevenPlanMember_534331E40DE857E99C60FB14FCC02F7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_869C375E8C335EDC9EFEFD9E8C402B99" xlink:to="loc_pwr_TwoThousandAndElevenPlanMember_534331E40DE857E99C60FB14FCC02F7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_5BAA85323BE4518F8DA90B08FFB500C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_127F8DA212165790982845BFBA49A261" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_5BAA85323BE4518F8DA90B08FFB500C4" 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/EquityExchangeableSharesAndSeriesFAndSeriesGPreferredStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_9FC46A46068692E0CAB3CBD5B0374DAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_9FC46A46068692E0CAB3CBD5B0374DAD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_4B375B52EBF94750438ECBD5B0378023" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_9FC46A46068692E0CAB3CBD5B0374DAD" xlink:to="loc_us-gaap_StatementClassOfStockAxis_4B375B52EBF94750438ECBD5B0378023" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4B375B52EBF94750438ECBD5B0378023" xlink:to="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4B375B52EBF94750438ECBD5B0378023" xlink:to="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SeriesFPreferredStockMember" xlink:label="loc_us-gaap_SeriesFPreferredStockMember_F1BFBCFC9438A3CA8C13CBD5B037D4C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:to="loc_us-gaap_SeriesFPreferredStockMember_F1BFBCFC9438A3CA8C13CBD5B037D4C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SeriesGPreferredStockMember" xlink:label="loc_us-gaap_SeriesGPreferredStockMember_C0EB5DDFB9D922C4B5DDCBD5B038C7F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:to="loc_us-gaap_SeriesGPreferredStockMember_C0EB5DDFB9D922C4B5DDCBD5B038C7F5" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesForCommonStockMember" xlink:label="loc_pwr_ExchangeableSharesForCommonStockMember_432D28300A86CA6C6511CBD5B03852E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:to="loc_pwr_ExchangeableSharesForCommonStockMember_432D28300A86CA6C6511CBD5B03852E2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesMember" xlink:label="loc_pwr_ExchangeableSharesMember_7783281747686714BE63CBD5B03828FE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:to="loc_pwr_ExchangeableSharesMember_7783281747686714BE63CBD5B03828FE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember" xlink:label="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_574B91EB57CE63BE9C37CBD5B038802F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_E814AA02F9293572C33ECBD5B037DA4B" xlink:to="loc_pwr_ExchangeableSharesAssociatedWithSeriesGPreferredStockMember_574B91EB57CE63BE9C37CBD5B038802F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare" xlink:label="loc_pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare_5A717EA828635DA41F9BCBD5B03963C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_pwr_NumberOfSharesOfCommonStockReceivedForEachExchangeableShare_5A717EA828635DA41F9BCBD5B03963C1" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess" xlink:label="loc_pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess_33EF39936907CF95FE86CBD5B03EE595" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_pwr_MinimumNumberOfSharesThatCanBeExchangedByExchangeableShareholdersUnlessNumberOfRemainingExchangeableSharesRegisteredInNameOfHolderIsLess_33EF39936907CF95FE86CBD5B03EE595" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts" xlink:label="loc_pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts_755CAF449611D6A2CAADCBD5B03E0D86" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_pwr_NumberOfBusinessesAcquiredWithPreferredStockIssuedToVotingTrusts_755CAF449611D6A2CAADCBD5B03E0D86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_2614853FF45A65A25E40CBD5B03E0A3F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_us-gaap_PreferredStockSharesIssued_2614853FF45A65A25E40CBD5B03E0A3F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PreferredStockSharesRetired" xlink:label="loc_pwr_PreferredStockSharesRetired_FD36FE3870726B796D88CBD5B03FB789" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_pwr_PreferredStockSharesRetired_FD36FE3870726B796D88CBD5B03FB789" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_94D1D754A56F5FC79460CBD5B03F1D3D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_94D1D754A56F5FC79460CBD5B03F1D3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConversionOfStockSharesConverted1" xlink:label="loc_us-gaap_ConversionOfStockSharesConverted1_70016FE0205D2E0BBBECCBD5B03F59AC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_us-gaap_ConversionOfStockSharesConverted1_70016FE0205D2E0BBBECCBD5B03F59AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_5C175C9FE148B7E67347CBD5B040FFD0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_370658699D6E78819F84CBD5B039ED25" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_5C175C9FE148B7E67347CBD5B040FFD0" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_7F9F0A67FA4F5B2D83DBFAEE9C853031" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:to="loc_us-gaap_StatementClassOfStockAxis_7F9F0A67FA4F5B2D83DBFAEE9C853031" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_234DD69C617961926E85FAEE9C868811_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7F9F0A67FA4F5B2D83DBFAEE9C853031" xlink:to="loc_us-gaap_ClassOfStockDomain_234DD69C617961926E85FAEE9C868811_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_234DD69C617961926E85FAEE9C868811" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7F9F0A67FA4F5B2D83DBFAEE9C853031" xlink:to="loc_us-gaap_ClassOfStockDomain_234DD69C617961926E85FAEE9C868811" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember" xlink:label="loc_pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember_A224A47E517959E666C5FAEE9C8602AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_234DD69C617961926E85FAEE9C868811" xlink:to="loc_pwr_CommonStockWithheldForSettlementOfEmployeeTaxLiabilitiesMember_A224A47E517959E666C5FAEE9C8602AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_1F2832252221AECF08B8FAEE9C87E8E4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:to="loc_us-gaap_PlanNameAxis_1F2832252221AECF08B8FAEE9C87E8E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_7349DE4503D9F361F7C9FAEE9C87FB39_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_1F2832252221AECF08B8FAEE9C87E8E4" xlink:to="loc_us-gaap_PlanNameDomain_7349DE4503D9F361F7C9FAEE9C87FB39_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_7349DE4503D9F361F7C9FAEE9C87FB39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_1F2832252221AECF08B8FAEE9C87E8E4" xlink:to="loc_us-gaap_PlanNameDomain_7349DE4503D9F361F7C9FAEE9C87FB39" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember" xlink:label="loc_pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember_A2DA06008BA63FAC549BFAEE9C8840EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_7349DE4503D9F361F7C9FAEE9C87FB39" xlink:to="loc_pwr_TreasuryStockAssociatedWithDeferredCompensationPlansMember_A2DA06008BA63FAC549BFAEE9C8840EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_C935A94C8C67CB34CA5AFAEE9C88EF7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_C935A94C8C67CB34CA5AFAEE9C88EF7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_2B0190EFEA04C5361CB2FAEE9C8971BE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_C935A94C8C67CB34CA5AFAEE9C88EF7C" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_2B0190EFEA04C5361CB2FAEE9C8971BE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_2B0190EFEA04C5361CB2FAEE9C8971BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_C935A94C8C67CB34CA5AFAEE9C88EF7C" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_2B0190EFEA04C5361CB2FAEE9C8971BE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TwoThousandSeventeenRepurchaseProgramMember" xlink:label="loc_pwr_TwoThousandSeventeenRepurchaseProgramMember_FC31FD22FC71EE1BDFA5FAEE9C8988AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_2B0190EFEA04C5361CB2FAEE9C8971BE" xlink:to="loc_pwr_TwoThousandSeventeenRepurchaseProgramMember_FC31FD22FC71EE1BDFA5FAEE9C8988AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_E31271C5EAD6BDB70B40FAEE9C8AE0F7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_FB5C00F8D122EFD70BF5FAEE9C7FA43A" xlink:to="loc_us-gaap_RangeAxis_E31271C5EAD6BDB70B40FAEE9C8AE0F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AA207C69D8E1D7716199FAEE9C8A05DE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_E31271C5EAD6BDB70B40FAEE9C8AE0F7" xlink:to="loc_us-gaap_RangeMember_AA207C69D8E1D7716199FAEE9C8A05DE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AA207C69D8E1D7716199FAEE9C8A05DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_E31271C5EAD6BDB70B40FAEE9C8AE0F7" xlink:to="loc_us-gaap_RangeMember_AA207C69D8E1D7716199FAEE9C8A05DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_B9D3D34D9B6BAFCFAA18FAEE9C8B6B71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_AA207C69D8E1D7716199FAEE9C8A05DE" xlink:to="loc_us-gaap_MaximumMember_B9D3D34D9B6BAFCFAA18FAEE9C8B6B71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_1FB48714176061EBBA84FAEE9C8C9B2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_1FB48714176061EBBA84FAEE9C8C9B2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_D2622EE625E8B83799BAFAEE9C8CFCA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_D2622EE625E8B83799BAFAEE9C8CFCA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_7C59C2C69A8CCBA7468DFAEE9C8C884E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_7C59C2C69A8CCBA7468DFAEE9C8C884E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_C7B7FA98CADB3193FD96FAEE9C8DA0C5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_9BE59BF57F621A4A92F8FAEE9C8B0981" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_C7B7FA98CADB3193FD96FAEE9C8DA0C5" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_B300A33710F25E61F0BEBA6DCD451170" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_ED82103F58E2FB2317B7BA6DCD2412CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_B300A33710F25E61F0BEBA6DCD451170" xlink:to="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_ED82103F58E2FB2317B7BA6DCD2412CC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_528EC8FE62CCFF3F771CBA6DCD37D715" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_ED82103F58E2FB2317B7BA6DCD2412CC" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_528EC8FE62CCFF3F771CBA6DCD37D715" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_71F3D1D4FEFC77B9CFDABA6DCD3AEC28_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_528EC8FE62CCFF3F771CBA6DCD37D715" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_71F3D1D4FEFC77B9CFDABA6DCD3AEC28_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_71F3D1D4FEFC77B9CFDABA6DCD3AEC28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_528EC8FE62CCFF3F771CBA6DCD37D715" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_71F3D1D4FEFC77B9CFDABA6DCD3AEC28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_CF8F1FC30288032A1961BA6AE9435B62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_71F3D1D4FEFC77B9CFDABA6DCD3AEC28" xlink:to="loc_us-gaap_LicensingAgreementsMember_CF8F1FC30288032A1961BA6AE9435B62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_FF8DCF7003ADEFC9F795BA6D97FF9C7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_B300A33710F25E61F0BEBA6DCD451170" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_FF8DCF7003ADEFC9F795BA6D97FF9C7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_610BF27EC7EF604A8E14BA6AE9393E36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_610BF27EC7EF604A8E14BA6AE9393E36" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_56A1BCF5326D807E64BDBA6AE93A123D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_610BF27EC7EF604A8E14BA6AE9393E36" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_56A1BCF5326D807E64BDBA6AE93A123D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_56A1BCF5326D807E64BDBA6AE93A123D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_56A1BCF5326D807E64BDBA6AE93A123D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1066A60953D72A23168DBA6AE93BF45D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1066A60953D72A23168DBA6AE93BF45D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OrderOrProductionBacklogMember" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_01DF3F902B2B0DB5CF53BA6AE93B5222" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_01DF3F902B2B0DB5CF53BA6AE93B5222" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_67A6D3CD1AE569F84F45BA6AE93CD813" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_us-gaap_TradeNamesMember_67A6D3CD1AE569F84F45BA6AE93CD813" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_AE4304BC1AD42D3C0897BA6AE93CB484" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_AE4304BC1AD42D3C0897BA6AE93CB484" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_BB881B590D5D0E96F325BA6AE93C8BC7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_BB881B590D5D0E96F325BA6AE93C8BC7" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CurriculumMember" xlink:label="loc_pwr_CurriculumMember_00E2FBF5703E6458A5C0BA6AE93DA6E5" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7BC25BE70D0BD1ACDCBFBA6AE93AE42F" xlink:to="loc_pwr_CurriculumMember_00E2FBF5703E6458A5C0BA6AE93DA6E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_28AAD02FF9E1DF47586EBA6AE943268B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_28AAD02FF9E1DF47586EBA6AE943268B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_B4C6F8B9C3B05A503C83BA6AE9453470" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_B4C6F8B9C3B05A503C83BA6AE9453470" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_72F0A53317A6511D98FEBA6AE945321F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_72F0A53317A6511D98FEBA6AE945321F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_DA7C3087629D212C3AEEBA6AE946A335" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0070EC005920F215540EBA6AE9432FDB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_DA7C3087629D212C3AEEBA6AE946A335" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInQuantasGoodwillDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_7A6315923F277B6C19F1AAB714072724" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_392D673EDD409DC09F3BAAB714036C5F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_7A6315923F277B6C19F1AAB714072724" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_392D673EDD409DC09F3BAAB714036C5F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_AD5A59D869061782990FAAB71404CC62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_392D673EDD409DC09F3BAAB714036C5F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AD5A59D869061782990FAAB71404CC62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AD5A59D869061782990FAAB71404CC62" xlink:to="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AD5A59D869061782990FAAB71404CC62" xlink:to="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ElectricPowerDivisionMember" xlink:label="loc_pwr_ElectricPowerDivisionMember_3730239FE01F07E64381AAB71407FF36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF" xlink:to="loc_pwr_ElectricPowerDivisionMember_3730239FE01F07E64381AAB71407FF36" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasDivisionMember" xlink:label="loc_pwr_OilAndGasDivisionMember_8AE2AB49BDE43BD25593AAB714075C2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_42B49D04C12035D56D88AAB7140652EF" xlink:to="loc_pwr_OilAndGasDivisionMember_8AE2AB49BDE43BD25593AAB714075C2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_7A6315923F277B6C19F1AAB714072724" xlink:to="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_7D2EF827A2958C6C888BAAB71408D440" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_GoodwillGross_7D2EF827A2958C6C888BAAB71408D440" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_954FC0AB9DF5A17B17EAAAB71409B221" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_954FC0AB9DF5A17B17EAAAB71409B221" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_74759416EFF0EEBEFB63AAB71409E3EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_Goodwill_74759416EFF0EEBEFB63AAB71409E3EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_B410F284A5DD9FEE344AAAB7140A2F8E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_B410F284A5DD9FEE344AAAB7140A2F8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_61440C9175EDAEE3E026AAB94B5EE401" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_61440C9175EDAEE3E026AAB94B5EE401" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_35592CC2EC6233F4A699AAB7140A0146" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_E99201B1E6DE0CA83AAFAAB71408D03A" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_35592CC2EC6233F4A699AAB7140A0146" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_2460F348A204B06EF84E92B9B732BA86" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_2286A8122495AFAA5A5292B9B7311620" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_2460F348A204B06EF84E92B9B732BA86" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_2286A8122495AFAA5A5292B9B7311620" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_5FC8327B06F23FAA894692B9B731735C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_2286A8122495AFAA5A5292B9B7311620" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_5FC8327B06F23FAA894692B9B731735C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F959055E3235697CE6E192B9B73298DE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_5FC8327B06F23FAA894692B9B731735C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F959055E3235697CE6E192B9B73298DE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F959055E3235697CE6E192B9B73298DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_5FC8327B06F23FAA894692B9B731735C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F959055E3235697CE6E192B9B73298DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_A813D3464F69480AFA5992B9B732BFA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_F959055E3235697CE6E192B9B73298DE" xlink:to="loc_us-gaap_RetainedEarningsMember_A813D3464F69480AFA5992B9B732BFA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DF8910C52B65F88E14F992B9B732632E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_2286A8122495AFAA5A5292B9B7311620" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DF8910C52B65F88E14F992B9B732632E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_D812EE7688F8F7F5E24692B9B732B758_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DF8910C52B65F88E14F992B9B732632E" xlink:to="loc_us-gaap_TypeOfAdoptionMember_D812EE7688F8F7F5E24692B9B732B758_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_D812EE7688F8F7F5E24692B9B732B758" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DF8910C52B65F88E14F992B9B732632E" xlink:to="loc_us-gaap_TypeOfAdoptionMember_D812EE7688F8F7F5E24692B9B732B758" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_A5C02F6FC0A140FD689092B9B7322DB3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_D812EE7688F8F7F5E24692B9B732B758" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_A5C02F6FC0A140FD689092B9B7322DB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_1F90388D891093E282C092B9B73267BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_2460F348A204B06EF84E92B9B732BA86" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_1F90388D891093E282C092B9B73267BC" 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/PerShareInformationNarrativeDetails" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0A09FCF5D06BAD5B8A6392B1ED92D7F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0A09FCF5D06BAD5B8A6392B1ED92D7F2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_A5304ED68497E32C193C92B1ED9242F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0A09FCF5D06BAD5B8A6392B1ED92D7F2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_A5304ED68497E32C193C92B1ED9242F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_2BBF305407816CE5762592B1ED929645_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A5304ED68497E32C193C92B1ED9242F1" xlink:to="loc_us-gaap_SegmentDomain_2BBF305407816CE5762592B1ED929645_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_2BBF305407816CE5762592B1ED929645" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A5304ED68497E32C193C92B1ED9242F1" xlink:to="loc_us-gaap_SegmentDomain_2BBF305407816CE5762592B1ED929645" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ForeignOperationsMember" xlink:label="loc_pwr_ForeignOperationsMember_A5A2FB8288A5C771301492B1ED922754" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_2BBF305407816CE5762592B1ED929645" xlink:to="loc_pwr_ForeignOperationsMember_A5A2FB8288A5C771301492B1ED922754" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_804AC6882EFD3D46527292B1ED935CFD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0A09FCF5D06BAD5B8A6392B1ED92D7F2" xlink:to="loc_us-gaap_StatementGeographicalAxis_804AC6882EFD3D46527292B1ED935CFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_08AB7B575039CCEFCB8892B1ED939C0C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_804AC6882EFD3D46527292B1ED935CFD" xlink:to="loc_us-gaap_SegmentGeographicalDomain_08AB7B575039CCEFCB8892B1ED939C0C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_08AB7B575039CCEFCB8892B1ED939C0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_804AC6882EFD3D46527292B1ED935CFD" xlink:to="loc_us-gaap_SegmentGeographicalDomain_08AB7B575039CCEFCB8892B1ED939C0C" 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_BBD494F92856D1CF8CE692B1ED934EF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_08AB7B575039CCEFCB8892B1ED939C0C" xlink:to="loc_country_CA_BBD494F92856D1CF8CE692B1ED934EF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_ED3583445B88D215098A92B1ED93991E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_us-gaap_NumberOfReportableSegments_ED3583445B88D215098A92B1ED93991E" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfInternalDivisions" xlink:label="loc_pwr_NumberOfInternalDivisions_A31AAF7E2DFB921F831B92B1ED93EBD6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_pwr_NumberOfInternalDivisions_A31AAF7E2DFB921F831B92B1ED93EBD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueServicesNet" xlink:label="loc_us-gaap_SalesRevenueServicesNet_BCD1C9DCDB82046BE6B792B1ED947364" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_us-gaap_SalesRevenueServicesNet_BCD1C9DCDB82046BE6B792B1ED947364" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PercentageOfForeignRevenue" xlink:label="loc_pwr_PercentageOfForeignRevenue_2174E1163D46075B88D292B1ED9475A4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_pwr_PercentageOfForeignRevenue_2174E1163D46075B88D292B1ED9475A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_2B28EF5E19EDCFCA08FE92B1ED9425CB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6F2C5480412D2872E16792B1ED9324AA" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_2B28EF5E19EDCFCA08FE92B1ED9425CB" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_14F4C1BEFE5F5E87B60D2FB963368A71" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5081ED48CB3450C39689FA892B38E87D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_14F4C1BEFE5F5E87B60D2FB963368A71" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5081ED48CB3450C39689FA892B38E87D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_BBB17788E70954DC966732AE41DFA13B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5081ED48CB3450C39689FA892B38E87D" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_BBB17788E70954DC966732AE41DFA13B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_32DC29690BAA722564005E4558EE5FA5_8E947C3789D456F58EB25052EE901983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BBB17788E70954DC966732AE41DFA13B" xlink:to="loc_us-gaap_SegmentDomain_32DC29690BAA722564005E4558EE5FA5_8E947C3789D456F58EB25052EE901983" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B471D686FD155BC9A4266D580500E074" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BBB17788E70954DC966732AE41DFA13B" xlink:to="loc_us-gaap_SegmentDomain_B471D686FD155BC9A4266D580500E074" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ElectricPowerInfrastructureMember" xlink:label="loc_pwr_ElectricPowerInfrastructureMember_2584ACD9CDAD5321BB42A098DA7F516C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B471D686FD155BC9A4266D580500E074" xlink:to="loc_pwr_ElectricPowerInfrastructureMember_2584ACD9CDAD5321BB42A098DA7F516C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasInfrastructureServicesMember" xlink:label="loc_pwr_OilAndGasInfrastructureServicesMember_823A330627C254DAAFB45D1A1CD46807" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B471D686FD155BC9A4266D580500E074" xlink:to="loc_pwr_OilAndGasInfrastructureServicesMember_823A330627C254DAAFB45D1A1CD46807" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CorporateAndNonAllocatedCostsMember" xlink:label="loc_pwr_CorporateAndNonAllocatedCostsMember_7F643939779B55E8AC7FD5918BE1864B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B471D686FD155BC9A4266D580500E074" xlink:to="loc_pwr_CorporateAndNonAllocatedCostsMember_7F643939779B55E8AC7FD5918BE1864B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueServicesNet" xlink:label="loc_us-gaap_SalesRevenueServicesNet_BBC16A9098CA53BD80C299D03846B4AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_14F4C1BEFE5F5E87B60D2FB963368A71" xlink:to="loc_us-gaap_SalesRevenueServicesNet_BBC16A9098CA53BD80C299D03846B4AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_0C05995D244C5EE9AB37EFE4FBF97980" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_14F4C1BEFE5F5E87B60D2FB963368A71" xlink:to="loc_us-gaap_OperatingIncomeLoss_0C05995D244C5EE9AB37EFE4FBF97980" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_1A6BCBCF42185CF7BC24E8670C946EFD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_14F4C1BEFE5F5E87B60D2FB963368A71" xlink:to="loc_us-gaap_Depreciation_1A6BCBCF42185CF7BC24E8670C946EFD" 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/SubsequentEventDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_D138B0067C1EC090B9A8E35B8F6D5B94" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_999A9E2227C073A5C9C7E35B8F666F80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_D138B0067C1EC090B9A8E35B8F6D5B94" xlink:to="loc_us-gaap_SubsequentEventTable_999A9E2227C073A5C9C7E35B8F666F80" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_EFEB0EE595DC40DA8AEEE35B8F6B64B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_999A9E2227C073A5C9C7E35B8F666F80" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_EFEB0EE595DC40DA8AEEE35B8F6B64B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_785B0CE50A80A169C9B9E35B8F6C51E3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_EFEB0EE595DC40DA8AEEE35B8F6B64B1" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_785B0CE50A80A169C9B9E35B8F6C51E3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_785B0CE50A80A169C9B9E35B8F6C51E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_EFEB0EE595DC40DA8AEEE35B8F6B64B1" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_785B0CE50A80A169C9B9E35B8F6C51E3" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_WaterandGasPipelineInfrastructureContractorMember" xlink:label="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_5DC961406F1B267A53F6E35B8F6C5FC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityMethodInvesteeNameDomain_785B0CE50A80A169C9B9E35B8F6C51E3" xlink:to="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_5DC961406F1B267A53F6E35B8F6C5FC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_8BF63E1AA574EB407E32E35B8F6C5A80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_999A9E2227C073A5C9C7E35B8F666F80" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_8BF63E1AA574EB407E32E35B8F6C5A80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_45A5C70D168A3E6764D4E35B8F6C4CCC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8BF63E1AA574EB407E32E35B8F6C5A80" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_45A5C70D168A3E6764D4E35B8F6C4CCC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_45A5C70D168A3E6764D4E35B8F6C4CCC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8BF63E1AA574EB407E32E35B8F6C5A80" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_45A5C70D168A3E6764D4E35B8F6C4CCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_E29B6E9C8873ABC7A413E35B8F6DD304" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_45A5C70D168A3E6764D4E35B8F6C4CCC" xlink:to="loc_us-gaap_SubsequentEventMember_E29B6E9C8873ABC7A413E35B8F6DD304" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CostMethodInvestmentOwnershipPercentage" xlink:label="loc_pwr_CostMethodInvestmentOwnershipPercentage_0A258D238AD8981DB55BE35B8F6EF713" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_D138B0067C1EC090B9A8E35B8F6D5B94" xlink:to="loc_pwr_CostMethodInvestmentOwnershipPercentage_0A258D238AD8981DB55BE35B8F6EF713" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostMethodInvestmentsOriginalCost" xlink:label="loc_us-gaap_CostMethodInvestmentsOriginalCost_E9A3E5AEAD8856832B58E35B8F6E90B2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_D138B0067C1EC090B9A8E35B8F6D5B94" xlink:to="loc_us-gaap_CostMethodInvestmentsOriginalCost_E9A3E5AEAD8856832B58E35B8F6E90B2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CostMethodInvestmentsDepositsPaid" xlink:label="loc_pwr_CostMethodInvestmentsDepositsPaid_E0217821D246849A90AFE35B8F6E753B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_D138B0067C1EC090B9A8E35B8F6D5B94" xlink:to="loc_pwr_CostMethodInvestmentsDepositsPaid_E0217821D246849A90AFE35B8F6E753B" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsLineItems" xlink:label="loc_us-gaap_CashAndCashEquivalentsLineItems_D611BF1D60A950989F3EA0AB6004FA19" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTable" xlink:label="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_8013897590065508BEE0CDC9FC382A14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_D611BF1D60A950989F3EA0AB6004FA19" xlink:to="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_8013897590065508BEE0CDC9FC382A14" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAxis" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_0F3B6D4E0C5A5E648DE500717237F71E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_8013897590065508BEE0CDC9FC382A14" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_0F3B6D4E0C5A5E648DE500717237F71E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_98DE92AC479322FB44142177EAC34EA8_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_0F3B6D4E0C5A5E648DE500717237F71E" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_98DE92AC479322FB44142177EAC34EA8_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_0F3B6D4E0C5A5E648DE500717237F71E" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DomesticBankAccountsMember" xlink:label="loc_pwr_DomesticBankAccountsMember_668DF6611B545044A77074212DE9B686" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:to="loc_pwr_DomesticBankAccountsMember_668DF6611B545044A77074212DE9B686" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ForeignBankAccountsMember" xlink:label="loc_pwr_ForeignBankAccountsMember_FDABA2C755D759AEA537F758828F4163" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:to="loc_pwr_ForeignBankAccountsMember_FDABA2C755D759AEA537F758828F4163" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_InvestmentsInJointVenturesMember" xlink:label="loc_pwr_InvestmentsInJointVenturesMember_CB36E265B96E5713A2BB42E3372D6B03" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:to="loc_pwr_InvestmentsInJointVenturesMember_CB36E265B96E5713A2BB42E3372D6B03" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DomesticJointVenturesMember" xlink:label="loc_pwr_DomesticJointVenturesMember_E6745532C71C542FBBF2A0A55D13C898" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_00E0383CF11955CEA976A042AD142E8C" xlink:to="loc_pwr_DomesticJointVenturesMember_E6745532C71C542FBBF2A0A55D13C898" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1B1E80788A7B53279F08F12656E398B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_D611BF1D60A950989F3EA0AB6004FA19" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1B1E80788A7B53279F08F12656E398B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_7C91B7B4FDDB5C3BBC850E6173ABB0A1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_D611BF1D60A950989F3EA0AB6004FA19" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_7C91B7B4FDDB5C3BBC850E6173ABB0A1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractWithCustomerAssetAndLiabilityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesDisaggregationOfRevenueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_6F6020BC6F106B1EF592F19B0856F028" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_CDB164F812DB7E7EE8CCF19B084F3329" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_6F6020BC6F106B1EF592F19B0856F028" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_CDB164F812DB7E7EE8CCF19B084F3329" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_199446EE90AB073E8037F19B08508106" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_CDB164F812DB7E7EE8CCF19B084F3329" xlink:to="loc_us-gaap_StatementGeographicalAxis_199446EE90AB073E8037F19B08508106" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_199446EE90AB073E8037F19B08508106" xlink:to="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_199446EE90AB073E8037F19B08508106" xlink:to="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" 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_C3F0C9F2F2A8922F09B6F19B08513C2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" xlink:to="loc_country_US_C3F0C9F2F2A8922F09B6F19B08513C2F" 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_6B41BDEEA45B899D6E1CF19B08548215" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" xlink:to="loc_country_CA_6B41BDEEA45B899D6E1CF19B08548215" 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_69A658CC28F8867E2068F19B08543049" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" xlink:to="loc_country_AU_69A658CC28F8867E2068F19B08543049" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_LatinAmericaandOtherMember" xlink:label="loc_pwr_LatinAmericaandOtherMember_30C34B1D9F14A0950E25F19B085533E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_861616BC9206B9693FE1F19B0851F857" xlink:to="loc_pwr_LatinAmericaandOtherMember_30C34B1D9F14A0950E25F19B085533E3" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ContractwithCustomerTypeAxis" xlink:label="loc_pwr_ContractwithCustomerTypeAxis_77724B3FEC88D469C3B0F19B08556A21" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_CDB164F812DB7E7EE8CCF19B084F3329" xlink:to="loc_pwr_ContractwithCustomerTypeAxis_77724B3FEC88D469C3B0F19B08556A21" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ContractwithCustomerTypeDomain" xlink:label="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_pwr_ContractwithCustomerTypeAxis_77724B3FEC88D469C3B0F19B08556A21" xlink:to="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04_default" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ContractwithCustomerTypeDomain" xlink:label="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_pwr_ContractwithCustomerTypeAxis_77724B3FEC88D469C3B0F19B08556A21" xlink:to="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_UnitpriceContractsMember" xlink:label="loc_pwr_UnitpriceContractsMember_946BE479520CF2E0E577F19B08552405" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04" xlink:to="loc_pwr_UnitpriceContractsMember_946BE479520CF2E0E577F19B08552405" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_FixedPriceContractsMember" xlink:label="loc_pwr_FixedPriceContractsMember_467887C728E61E397137F19B0856DF41" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04" xlink:to="loc_pwr_FixedPriceContractsMember_467887C728E61E397137F19B0856DF41" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CostplusContractsMember" xlink:label="loc_pwr_CostplusContractsMember_CA5871A7119B9E2494F2F19B0856E7DD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_ContractwithCustomerTypeDomain_3DDF7FCDC323D357EC29F19B0855CD04" xlink:to="loc_pwr_CostplusContractsMember_CA5871A7119B9E2494F2F19B0856E7DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7DA091671A258756BAEAF19B08561AF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_6F6020BC6F106B1EF592F19B0856F028" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7DA091671A258756BAEAF19B08561AF0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetails" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueByLiabilityClassAxis" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_72357D0B8111436C643A10DC45829B9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_72357D0B8111436C643A10DC45829B9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_EE19130BB5371424C59410DC45830390_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_72357D0B8111436C643A10DC45829B9F" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_EE19130BB5371424C59410DC45830390_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_EE19130BB5371424C59410DC45830390" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_72357D0B8111436C643A10DC45829B9F" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_EE19130BB5371424C59410DC45830390" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ContingentConsiderationMember" xlink:label="loc_pwr_ContingentConsiderationMember_8D1D52364606D4059F8110DC45841EC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_EE19130BB5371424C59410DC45830390" xlink:to="loc_pwr_ContingentConsiderationMember_8D1D52364606D4059F8110DC45841EC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C2C65FEDC0433A27AF310DC4585D96B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C2C65FEDC0433A27AF310DC4585D96B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_57BE10EFB9FE381A6D9C10DC4585BEA7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C2C65FEDC0433A27AF310DC4585D96B" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_57BE10EFB9FE381A6D9C10DC4585BEA7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_57BE10EFB9FE381A6D9C10DC4585BEA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C2C65FEDC0433A27AF310DC4585D96B" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_57BE10EFB9FE381A6D9C10DC4585BEA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_A88C7E28CA3AFAC2E24D10DC4585BCB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_57BE10EFB9FE381A6D9C10DC4585BEA7" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_A88C7E28CA3AFAC2E24D10DC4585BCB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3A29DFDF31DC64F28AFC10DC4586BA36" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3A29DFDF31DC64F28AFC10DC4586BA36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA664F0946953FECAF0610DC4586E4D3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3A29DFDF31DC64F28AFC10DC4586BA36" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA664F0946953FECAF0610DC4586E4D3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA664F0946953FECAF0610DC4586E4D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_3A29DFDF31DC64F28AFC10DC4586BA36" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA664F0946953FECAF0610DC4586E4D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_17908BEAAFBDA29EDFD810DC4587C325" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA664F0946953FECAF0610DC4586E4D3" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_17908BEAAFBDA29EDFD810DC4587C325" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_4DD4B97A712C02DB44D310DC45870221" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_4DD4B97A712C02DB44D310DC45870221" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4DD4B97A712C02DB44D310DC45870221" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4DD4B97A712C02DB44D310DC45870221" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_AcquisitionWithoutMaximumEarnOutMember" xlink:label="loc_pwr_AcquisitionWithoutMaximumEarnOutMember_C6C9E0BB0BA67D42D8B410DC4588B2C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99" xlink:to="loc_pwr_AcquisitionWithoutMaximumEarnOutMember_C6C9E0BB0BA67D42D8B410DC4588B2C4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_Acquisitions2018Member" xlink:label="loc_pwr_Acquisitions2018Member_BB1451FAC9394527A49B10DC45882142" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B0B5BF0E2974A38BF68D10DC4588EA99" xlink:to="loc_pwr_Acquisitions2018Member_BB1451FAC9394527A49B10DC45882142" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_B8695B1B892347D1FB7F10DC45890E18" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FDCEF4B60A1D0B7BE42D10DC457F1CD4" xlink:to="loc_us-gaap_RangeAxis_B8695B1B892347D1FB7F10DC45890E18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_B8695B1B892347D1FB7F10DC45890E18" xlink:to="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_B8695B1B892347D1FB7F10DC45890E18" xlink:to="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_10023C145186A322251D10DC45893FC7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF" xlink:to="loc_us-gaap_MinimumMember_10023C145186A322251D10DC45893FC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_2FC53385F5C8F7575B1C10DC458AEEE7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_80CABDBA44E861A6A23610DC458972EF" xlink:to="loc_us-gaap_MaximumMember_2FC53385F5C8F7575B1C10DC458AEEE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_5718B3F9FC4760C6657810DC458A0440" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_5718B3F9FC4760C6657810DC458A0440" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_FairValueAssumptionsExpectedVolatilityRate_98579528ECBF85375FDB10DC458B11A9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueAssumptionsExpectedVolatilityRate_98579528ECBF85375FDB10DC458B11A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueInputsDiscountRate" xlink:label="loc_us-gaap_FairValueInputsDiscountRate_28C86C7F7BD102E4301210DC458B44A6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueInputsDiscountRate_28C86C7F7BD102E4301210DC458B44A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_8F613832458B64A2106710DC458BDDD6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_8F613832458B64A2106710DC458BDDD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_3540D3343211F8E1BCEC10DC458BF6FC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_3540D3343211F8E1BCEC10DC458BF6FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityIssues" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityIssues_24BE3077E8C3C98351E510DC458C9B7D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityIssues_24BE3077E8C3C98351E510DC458C9B7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_B3BF61422FD5C13C6C0910DC458C4F06" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_B3BF61422FD5C13C6C0910DC458C4F06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_CE6448285012376215D510DC458CB428" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_CE6448285012376215D510DC458CB428" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_14B9BD048A034A93D44110DC458CA735" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_60B89F0F9FD13E63621810DC458ABDBC" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_14B9BD048A034A93D44110DC458CA735" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180630.xsd#pwr_GoodwillAndIntangibleAssetsLineItems" xlink:label="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_GoodwillAndIntangibleAssetsTable" xlink:label="loc_pwr_GoodwillAndIntangibleAssetsTable_C0CEB8D33BCC7CEB645D6C2971980525" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_pwr_GoodwillAndIntangibleAssetsTable_C0CEB8D33BCC7CEB645D6C2971980525" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_03A48C560DDD32E809D56C297199FB38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsTable_C0CEB8D33BCC7CEB645D6C2971980525" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_03A48C560DDD32E809D56C297199FB38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_03A48C560DDD32E809D56C297199FB38" xlink:to="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_03A48C560DDD32E809D56C297199FB38" xlink:to="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasDivisionMember" xlink:label="loc_pwr_OilAndGasDivisionMember_61521A888A1F636E3C886C29719972AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057" xlink:to="loc_pwr_OilAndGasDivisionMember_61521A888A1F636E3C886C29719972AC" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember" xlink:label="loc_pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember_5699460EBCB50139E51F6C29719A4815" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7B83AC0F0134A5B045796C2971993057" xlink:to="loc_pwr_OilAndGasInfrastructureDivisionOperatingUnitsThatHaveBeenNegativelyImpactedByVariousFactorsMember_5699460EBCB50139E51F6C29719A4815" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfInternalDivisions" xlink:label="loc_pwr_NumberOfInternalDivisions_B64798BE1D9A44CDA68B6C29719A3572" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_pwr_NumberOfInternalDivisions_B64798BE1D9A44CDA68B6C29719A3572" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberOfReportingUnitsImpactedByImpairmentCharges" xlink:label="loc_pwr_NumberOfReportingUnitsImpactedByImpairmentCharges_EE52023EE735E25333FC6C29719AF659" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_pwr_NumberOfReportingUnitsImpactedByImpairmentCharges_EE52023EE735E25333FC6C29719AF659" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_B5CABA1A1064949CD7486C29719CFD3F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_B5CABA1A1064949CD7486C29719CFD3F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation" xlink:label="loc_pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation_30628B213665F498844D6C29719B3F6B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_pwr_DecreaseInFairValueOfReportingUnitsConsideredForImpairmentCalculation_30628B213665F498844D6C29719B3F6B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NumberofReportingUnitswithFairValuesthatApproximatedCarryingValuesAfterSensitivityofaDecreaseinFairValue" xlink:label="loc_pwr_NumberofReportingUnitswithFairValuesthatApproximatedCarryingValuesAfterSensitivityofaDecreaseinFairValue_0CA9CB5BC3ACC8A8D8216C29719B98A9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_pwr_NumberofReportingUnitswithFairValuesthatApproximatedCarryingValuesAfterSensitivityofaDecreaseinFairValue_0CA9CB5BC3ACC8A8D8216C29719B98A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_2F2AC8A5DE6B7B14173E6C29719B493E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_us-gaap_Goodwill_2F2AC8A5DE6B7B14173E6C29719B493E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_A64669EA362CDFC384336C29719B4997" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_GoodwillAndIntangibleAssetsLineItems_E9B1ED15B79837B92B136C29719A986E" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_A64669EA362CDFC384336C29719B4997" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180630.xsd#pwr_IncomeTaxesLineItems" xlink:label="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_IncomeTaxesTable" xlink:label="loc_pwr_IncomeTaxesTable_31F88CC68053548BBCEA5A2899D2B35A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_IncomeTaxesTable_31F88CC68053548BBCEA5A2899D2B35A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_4D66D3D74E0651229D178EB7B087019B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_IncomeTaxesTable_31F88CC68053548BBCEA5A2899D2B35A" xlink:to="loc_us-gaap_RangeAxis_4D66D3D74E0651229D178EB7B087019B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_E2C6B55227E0737B97802C9675B080F1_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_4D66D3D74E0651229D178EB7B087019B" xlink:to="loc_us-gaap_RangeMember_E2C6B55227E0737B97802C9675B080F1_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B257028D79FF52F9BD83E724954C4B58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_4D66D3D74E0651229D178EB7B087019B" xlink:to="loc_us-gaap_RangeMember_B257028D79FF52F9BD83E724954C4B58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_3874FAD5680C5E30B7BE649EF9FC8271" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B257028D79FF52F9BD83E724954C4B58" xlink:to="loc_us-gaap_MaximumMember_3874FAD5680C5E30B7BE649EF9FC8271" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_E1305CBAA0BA5AB192408397FA2DDD22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_E1305CBAA0BA5AB192408397FA2DDD22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_DB0BA1D227865B8CBE502550939319B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_DB0BA1D227865B8CBE502550939319B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions_E1D4DBA52C575C5199206F40AE04DAB1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions_E1D4DBA52C575C5199206F40AE04DAB1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_83E34C30681F5463931EDBD575A8D193" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_83E34C30681F5463931EDBD575A8D193" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible" xlink:label="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_95215BA4D28B5479B62FEB7971907D30" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_95215BA4D28B5479B62FEB7971907D30" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_51DF19F4CE9E5ACC8C3417A40FD55E12" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_51DF19F4CE9E5ACC8C3417A40FD55E12" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateProvisionalIncomeTaxExpenseBenefit_7F00D664AC875272980CA13894D8CF94" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateProvisionalIncomeTaxExpenseBenefit_7F00D664AC875272980CA13894D8CF94" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_0F486123982358A8883692A6D28455BE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_0F486123982358A8883692A6D28455BE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TaxCutsandJobsActof2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit" xlink:label="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit_794DE5EE25015DF39A20B815CCB6922F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingEntityRestructuringAndRecapitalizationProvisionalIncomeTaxBenefit_794DE5EE25015DF39A20B815CCB6922F" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_TaxCutsandJobsActof2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense" xlink:label="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense_C9D8CB7B81B758F5A0E26DAC0D275DF5" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_IncomeTaxesLineItems_E1B11D6AAC365DC08EA2C9FAD68D2E47" xlink:to="loc_pwr_TaxCutsandJobsActof2017IncompleteAccountingAccelerationOfCertainDeductionsProvisionalIncomeTaxExpense_C9D8CB7B81B758F5A0E26DAC0D275DF5" 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-20180630.xsd#pwr_SummaryOfSignificantAccountingPoliciesLineItems" xlink:label="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_55A4DFC5A0342CDBE866D7ADB5E0BA86" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_SummaryOfSignificantAccountingPoliciesTable" xlink:label="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_55A4DFC5A0342CDBE866D7ADB5E0BA86" xlink:to="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_F0B44F44FA9C9D799079D7ADB5DB34F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:to="loc_us-gaap_StatementScenarioAxis_F0B44F44FA9C9D799079D7ADB5DB34F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_F32FA57525EFF8DC07C1D7ADB5DB35F3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_F0B44F44FA9C9D799079D7ADB5DB34F8" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_F32FA57525EFF8DC07C1D7ADB5DB35F3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_F32FA57525EFF8DC07C1D7ADB5DB35F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_F0B44F44FA9C9D799079D7ADB5DB34F8" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_F32FA57525EFF8DC07C1D7ADB5DB35F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_A4190B0F83903CFB6537D7ADB5DC54F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_F32FA57525EFF8DC07C1D7ADB5DB35F3" xlink:to="loc_us-gaap_ScenarioForecastMember_A4190B0F83903CFB6537D7ADB5DC54F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_703DBD11F4B54C8FEE10D7ADB5DC9865" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_703DBD11F4B54C8FEE10D7ADB5DC9865" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_7DBF2DF0532A03DE1529D7ADB5DD0379_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_703DBD11F4B54C8FEE10D7ADB5DC9865" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_7DBF2DF0532A03DE1529D7ADB5DD0379_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_7DBF2DF0532A03DE1529D7ADB5DD0379" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_703DBD11F4B54C8FEE10D7ADB5DC9865" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_7DBF2DF0532A03DE1529D7ADB5DD0379" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_WaterandGasPipelineInfrastructureContractorMember" xlink:label="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_880946D692A136C142EED7ADB5DDF930" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityMethodInvesteeNameDomain_7DBF2DF0532A03DE1529D7ADB5DD0379" xlink:to="loc_pwr_WaterandGasPipelineInfrastructureContractorMember_880946D692A136C142EED7ADB5DDF930" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="loc_us-gaap_OtherCommitmentsAxis_F4404854D783AA00274CD7ADB5DE0710" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:to="loc_us-gaap_OtherCommitmentsAxis_F4404854D783AA00274CD7ADB5DE0710" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_DC25C04FE86B7EB50BC3D7ADB5DF82BF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_F4404854D783AA00274CD7ADB5DE0710" xlink:to="loc_us-gaap_OtherCommitmentsDomain_DC25C04FE86B7EB50BC3D7ADB5DF82BF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_DC25C04FE86B7EB50BC3D7ADB5DF82BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_F4404854D783AA00274CD7ADB5DE0710" xlink:to="loc_us-gaap_OtherCommitmentsDomain_DC25C04FE86B7EB50BC3D7ADB5DF82BF" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_CapitalforInfrastructureProjectsMember" xlink:label="loc_pwr_CapitalforInfrastructureProjectsMember_797287D4179D11B7224AD7ADB5DFC490" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_DC25C04FE86B7EB50BC3D7ADB5DF82BF" xlink:to="loc_pwr_CapitalforInfrastructureProjectsMember_797287D4179D11B7224AD7ADB5DFC490" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_1EB46F95152604C6D10BD7ADB5DF4D2E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesTable_0216DD1258D7439C0041D7ADB5DAD76E" xlink:to="loc_dei_LegalEntityAxis_1EB46F95152604C6D10BD7ADB5DF4D2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_7943B3CE567DE58A26CED7ADB5E03C1D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1EB46F95152604C6D10BD7ADB5DF4D2E" xlink:to="loc_dei_EntityDomain_7943B3CE567DE58A26CED7ADB5E03C1D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_7943B3CE567DE58A26CED7ADB5E03C1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1EB46F95152604C6D10BD7ADB5DF4D2E" xlink:to="loc_dei_EntityDomain_7943B3CE567DE58A26CED7ADB5E03C1D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_InfrastructureInvestorsPartnershipMember" xlink:label="loc_pwr_InfrastructureInvestorsPartnershipMember_72FC24044C8959EC1F2AD7ADB5E062A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_7943B3CE567DE58A26CED7ADB5E03C1D" xlink:to="loc_pwr_InfrastructureInvestorsPartnershipMember_72FC24044C8959EC1F2AD7ADB5E062A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_76658DAC16F9ECC8A7F5D7ADB5E1600E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_55A4DFC5A0342CDBE866D7ADB5E0BA86" xlink:to="loc_us-gaap_OtherCommitment_76658DAC16F9ECC8A7F5D7ADB5E1600E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_F0938C7FD1F43F879A04D7ADB5E2514C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_SummaryOfSignificantAccountingPoliciesLineItems_55A4DFC5A0342CDBE866D7ADB5E0BA86" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_F0938C7FD1F43F879A04D7ADB5E2514C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_27CA3BA855C455A1891335041CB3A357" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_18DEC8CE3D2158CE9467E8B4A23AD8EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_27CA3BA855C455A1891335041CB3A357" xlink:to="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_18DEC8CE3D2158CE9467E8B4A23AD8EA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_B80027546CF059148ADE0503E92D56CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_18DEC8CE3D2158CE9467E8B4A23AD8EA" xlink:to="loc_us-gaap_RangeAxis_B80027546CF059148ADE0503E92D56CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_74916CFBA1034354172E2BE681E08B07_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_B80027546CF059148ADE0503E92D56CC" xlink:to="loc_us-gaap_RangeMember_74916CFBA1034354172E2BE681E08B07_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DCFB4C7251B55B37824CA4A768693E7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_B80027546CF059148ADE0503E92D56CC" xlink:to="loc_us-gaap_RangeMember_DCFB4C7251B55B37824CA4A768693E7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_0C036F73F2F85A20BAA7A8D4B4826DD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DCFB4C7251B55B37824CA4A768693E7E" xlink:to="loc_us-gaap_MinimumMember_0C036F73F2F85A20BAA7A8D4B4826DD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_A8D5488C3012584097A8EF219485D876" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DCFB4C7251B55B37824CA4A768693E7E" xlink:to="loc_us-gaap_MaximumMember_A8D5488C3012584097A8EF219485D876" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_FairValueInputsRateOfReturn" xlink:label="loc_pwr_FairValueInputsRateOfReturn_9C725BC4B2385B1E80922308391A037D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_27CA3BA855C455A1891335041CB3A357" xlink:to="loc_pwr_FairValueInputsRateOfReturn_9C725BC4B2385B1E80922308391A037D" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_FairValueInputsCustomerAttritionRates" xlink:label="loc_pwr_FairValueInputsCustomerAttritionRates_440118E2E26454DB9B35C189B324F4C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_27CA3BA855C455A1891335041CB3A357" xlink:to="loc_pwr_FairValueInputsCustomerAttritionRates_440118E2E26454DB9B35C189B324F4C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_E18C9AA2FACD5742A342AAC007B1E471" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassLineItems_27CA3BA855C455A1891335041CB3A357" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_E18C9AA2FACD5742A342AAC007B1E471" 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/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RevenueRecognitionLineItems" xlink:label="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RevenueRecognitionTable" xlink:label="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3EEF408C10B9BD399285F69B15DED128" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3EEF408C10B9BD399285F69B15DED128" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3EEF408C10B9BD399285F69B15DED128" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3EEF408C10B9BD399285F69B15DED128" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_428776538CF622592AAAF69B15E06911" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C" xlink:to="loc_us-gaap_RetainedEarningsMember_428776538CF622592AAAF69B15E06911" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_UnearnedRevenueMember" xlink:label="loc_pwr_UnearnedRevenueMember_ECDFCFFFEBED81809045F69B15E09961" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_67F2A6BF92C915299CC1F69B15DFC35C" xlink:to="loc_pwr_UnearnedRevenueMember_ECDFCFFFEBED81809045F69B15E09961" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_5D72A30FF17D1B6C491BF69B15E0ACCC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:to="loc_us-gaap_TypeOfArrangementAxis_5D72A30FF17D1B6C491BF69B15E0ACCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_5D72A30FF17D1B6C491BF69B15E0ACCC" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_5D72A30FF17D1B6C491BF69B15E0ACCC" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_EPCElectricTransmissionProjectMember" xlink:label="loc_pwr_EPCElectricTransmissionProjectMember_8D676C757B84FB0338FFF69B15ED42E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE" xlink:to="loc_pwr_EPCElectricTransmissionProjectMember_8D676C757B84FB0338FFF69B15ED42E5" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_NaturalGasTransmissionProjectMember" xlink:label="loc_pwr_NaturalGasTransmissionProjectMember_25E512FB093508DF7B07F69B15EEA356" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_B2FD4C70319332B205B2F69B15EC9ECE" xlink:to="loc_pwr_NaturalGasTransmissionProjectMember_25E512FB093508DF7B07F69B15EEA356" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_1C292B5658E6BB45FF71F69B15EEB07B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_1C292B5658E6BB45FF71F69B15EEB07B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_EAD3CE683018D06130C3F69B15EE6B08_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_1C292B5658E6BB45FF71F69B15EEB07B" xlink:to="loc_us-gaap_TypeOfAdoptionMember_EAD3CE683018D06130C3F69B15EE6B08_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_EAD3CE683018D06130C3F69B15EE6B08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_1C292B5658E6BB45FF71F69B15EEB07B" xlink:to="loc_us-gaap_TypeOfAdoptionMember_EAD3CE683018D06130C3F69B15EE6B08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_D6C48D7E2F4E88343650F69B15EFB4B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_EAD3CE683018D06130C3F69B15EE6B08" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_D6C48D7E2F4E88343650F69B15EFB4B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_13D04883C8A1E704848BF69B15F00ED2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pwr_RevenueRecognitionTable_42795ECEEE79CABBFDF9F69B15DE1920" xlink:to="loc_us-gaap_RangeAxis_13D04883C8A1E704848BF69B15F00ED2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_7AAEF0577867E9856B26F69B15F0D5F8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_13D04883C8A1E704848BF69B15F00ED2" xlink:to="loc_us-gaap_RangeMember_7AAEF0577867E9856B26F69B15F0D5F8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_7AAEF0577867E9856B26F69B15F0D5F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_13D04883C8A1E704848BF69B15F00ED2" xlink:to="loc_us-gaap_RangeMember_7AAEF0577867E9856B26F69B15F0D5F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_1C4DA59CAD9E9C2DD069F69B15F2E3B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_7AAEF0577867E9856B26F69B15F0D5F8" xlink:to="loc_us-gaap_MaximumMember_1C4DA59CAD9E9C2DD069F69B15F2E3B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_5ABB2BC72ED93F55B5B0F69B15F59581" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_5ABB2BC72ED93F55B5B0F69B15F59581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_DBCEE887193B9BF870E8F69B15F6FBCF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_DBCEE887193B9BF870E8F69B15F6FBCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_0AFD8EE14967A94E3D6FF69B15F657FA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_0AFD8EE14967A94E3D6FF69B15F657FA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RevenueRemainingPerformanceObligationPercentageExpectedtoBeRecognizedWithinTwelveMonths" xlink:label="loc_pwr_RevenueRemainingPerformanceObligationPercentageExpectedtoBeRecognizedWithinTwelveMonths_3A89C44596C515F56512F69B15F7579B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_pwr_RevenueRemainingPerformanceObligationPercentageExpectedtoBeRecognizedWithinTwelveMonths_3A89C44596C515F56512F69B15F7579B" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims" xlink:label="loc_pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims_CC7823FE6BACB90E7B79F69B15F7EA6D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_pwr_RevenueRecognizedRelatedToUnapprovedChangeOrdersAndClaims_CC7823FE6BACB90E7B79F69B15F7EA6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_BB233CD1408FFC594A75F69B15F792B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_BB233CD1408FFC594A75F69B15F792B4" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_ChangeInContractEstimatesImpactOnOperatingResultsGainLoss" xlink:label="loc_pwr_ChangeInContractEstimatesImpactOnOperatingResultsGainLoss_C7522044AE662376382FF69B15F794DA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_pwr_ChangeInContractEstimatesImpactOnOperatingResultsGainLoss_C7522044AE662376382FF69B15F794DA" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_PercentAggregateChangeInContractEstimatesImpactOnGrossMargin" xlink:label="loc_pwr_PercentAggregateChangeInContractEstimatesImpactOnGrossMargin_852477F2E331848DC0C1F69B15F89ECB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_pwr_PercentAggregateChangeInContractEstimatesImpactOnGrossMargin_852477F2E331848DC0C1F69B15F89ECB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_15F8916C3C3180AA24D2F69B15F8D540" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pwr_RevenueRecognitionLineItems_7C2A70B9F8E8043BE9ACF69B15F3CA2C" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_15F8916C3C3180AA24D2F69B15F8D540" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_16B7CAD323B658A2A8BE8E88B24554AA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_749A3AA6456459B88FD2D783DB124A4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_16B7CAD323B658A2A8BE8E88B24554AA" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_749A3AA6456459B88FD2D783DB124A4A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_0EC59F7AF4DD5FC4AC9656229EFCA6DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_749A3AA6456459B88FD2D783DB124A4A" xlink:to="loc_us-gaap_AwardTypeAxis_0EC59F7AF4DD5FC4AC9656229EFCA6DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0DCDB25F0F275D4B6D542177EA94E40F_C2325C08EE565686AB15CC6298543520" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_0EC59F7AF4DD5FC4AC9656229EFCA6DC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0DCDB25F0F275D4B6D542177EA94E40F_C2325C08EE565686AB15CC6298543520" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FC1D9529B0A75896BF757DB94DBDB0ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_0EC59F7AF4DD5FC4AC9656229EFCA6DC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FC1D9529B0A75896BF757DB94DBDB0ED" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_RestrictedStockUnitsToBeSettledInCashMember" xlink:label="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_AB85468428A45C1BB756349CED830EE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FC1D9529B0A75896BF757DB94DBDB0ED" xlink:to="loc_pwr_RestrictedStockUnitsToBeSettledInCashMember_AB85468428A45C1BB756349CED830EE1" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180630.xsd#pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares" xlink:label="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_0C854ED0771956C1A1B4DB18FAB1F28F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_16B7CAD323B658A2A8BE8E88B24554AA" xlink:to="loc_pwr_AmountInCashReceivedForEachRSUIsEqualToFairValueOfThisNumberOfQuantaCommonStockShares_0C854ED0771956C1A1B4DB18FAB1F28F" 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/SupplementalCashFlowInformationNarrativeDetails" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsLineItems" xlink:label="loc_us-gaap_CashAndCashEquivalentsLineItems_005ED938EB2D2C290CAB92B444FC7EF1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTable" xlink:label="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_143E26DDEC352081A43792B444FB9D04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_005ED938EB2D2C290CAB92B444FC7EF1" xlink:to="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_143E26DDEC352081A43792B444FB9D04" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_268168C26807E57D0BF592B444FC777F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_143E26DDEC352081A43792B444FB9D04" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_268168C26807E57D0BF592B444FC777F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_268168C26807E57D0BF592B444FC777F" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_268168C26807E57D0BF592B444FC777F" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_119B18C47A4A19AD696592B444FC7A40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_119B18C47A4A19AD696592B444FC7A40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_A3F4BF9FAD3B3760484992B444FC898C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_7BEB38080E6AF3794DFE92B444FC5BB5" xlink:to="loc_us-gaap_OtherAssetsMember_A3F4BF9FAD3B3760484992B444FC898C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_C2742E34F472327BA50192B444FC1F35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_005ED938EB2D2C290CAB92B444FC7EF1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_C2742E34F472327BA50192B444FC1F35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_011FA46503405645E68A92B444FC1576" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_005ED938EB2D2C290CAB92B444FC7EF1" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_011FA46503405645E68A92B444FC1576" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_DA331B085C47B24C22B792B444FDCCC3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_005ED938EB2D2C290CAB92B444FC7EF1" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_DA331B085C47B24C22B792B444FDCCC3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationScheduleOfAdditionalSupplementalCashFlowInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationScheduleOfEffectOfChangesInOperatingAssetsAndLiabilitiesNetOfNonCashTransactionsOnCashFlowsFromOperatingActivitiesOfContinuingOperationsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:type="extended" />
</link:linkbase>
