<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:href="mtrx-20161231.xsd#AcquisitionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsNarrativeDetails" xlink:href="mtrx-20161231.xsd#AcquisitionsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsNotes" xlink:href="mtrx-20161231.xsd#AcquisitionsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsProFormaDetails" xlink:href="mtrx-20161231.xsd#AcquisitionsProFormaDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsProFormaNarrativeDetails" xlink:href="mtrx-20161231.xsd#AcquisitionsProFormaNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:href="mtrx-20161231.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:href="mtrx-20161231.xsd#BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:href="mtrx-20161231.xsd#BasisOfPresentationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="mtrx-20161231.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:href="mtrx-20161231.xsd#CommitmentsAndContingenciesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:href="mtrx-20161231.xsd#CondensedConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:href="mtrx-20161231.xsd#DebtAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:href="mtrx-20161231.xsd#DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:href="mtrx-20161231.xsd#DebtNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:href="mtrx-20161231.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:href="mtrx-20161231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:href="mtrx-20161231.xsd#EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:href="mtrx-20161231.xsd#EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:href="mtrx-20161231.xsd#EarningsPerCommonShareNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:href="mtrx-20161231.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:href="mtrx-20161231.xsd#IncomeTaxesIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:href="mtrx-20161231.xsd#IncomeTaxesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:href="mtrx-20161231.xsd#IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:href="mtrx-20161231.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:href="mtrx-20161231.xsd#SegmentInformationResultsOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:href="mtrx-20161231.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsAdditionalInformationDetail" xlink:href="mtrx-20161231.xsd#UncompletedContractsAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:href="mtrx-20161231.xsd#UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsNotes" xlink:href="mtrx-20161231.xsd#UncompletedContractsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsTables" xlink:href="mtrx-20161231.xsd#UncompletedContractsTables" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A8C7CA0D37DA211B3B902395DB226B0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A8C7CA0D37DA211B3B902395DB226B0C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_E99C416929480D3373852395DB2C48EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_A8C7CA0D37DA211B3B902395DB226B0C" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_E99C416929480D3373852395DB2C48EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E99C416929480D3373852395DB2C48EF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E99C416929480D3373852395DB2C48EF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_E2CB742F4511F7ED642F2395DB2C4756" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD" xlink:to="loc_mtrx_HoustonInterestsLLCMember_E2CB742F4511F7ED642F2395DB2C4756" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_96A69E65E6A55B4BD4D52395DB2C0267" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_96A69E65E6A55B4BD4D52395DB2C0267" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_C949C1E48726338FC0BE2395DB2C219B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_49B2A5D0CE1AA0FF0C252395DB2C4CFD" xlink:to="loc_mtrx_HDBInc.Member_C949C1E48726338FC0BE2395DB2C219B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Cashpaidforequityinterest" xlink:label="loc_mtrx_Cashpaidforequityinterest_C246CC71E5DB4882E9F62395DB2C4D24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_mtrx_Cashpaidforequityinterest_C246CC71E5DB4882E9F62395DB2C4D24" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_7254281631C518A4F1B52395DB2C7720" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_7254281631C518A4F1B52395DB2C7720" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_03D11BBF20304C8D689A2395DB2C6ACC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_03D11BBF20304C8D689A2395DB2C6ACC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_14B693C62B5FA279BB652395DB2CD2F6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_14B693C62B5FA279BB652395DB2CD2F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_021872A7E0ECB9BCA0AD2395DB2C441D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_021872A7E0ECB9BCA0AD2395DB2C441D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_5FA10B052CA8702E5A702395DB2C7BD9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_Goodwill_5FA10B052CA8702E5A702395DB2C7BD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_6815F3E359BF7E878A4B2395DB2C0892" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_6815F3E359BF7E878A4B2395DB2C0892" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_FEC8023CF09829B769822395DB2C1C3A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_FEC8023CF09829B769822395DB2C1C3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_67AFE2E76EAC9CDC597C2395DB2C95C1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_67AFE2E76EAC9CDC597C2395DB2C95C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_61BAD8D498D4E4D2A4EE2395DB2CB962" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_61BAD8D498D4E4D2A4EE2395DB2CB962" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_BBF5089F953F3AB6FA3A2395DB2C3F2D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_BBF5089F953F3AB6FA3A2395DB2C3F2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_A443831AACB67441A0AD2395DB2C905D" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_A443831AACB67441A0AD2395DB2C905D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_026AE7513C47EF14F6092395DB2C8E8C" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_026AE7513C47EF14F6092395DB2C8E8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_56056772C5E8049E193D2395DB2CFF7F" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_56056772C5E8049E193D2395DB2CFF7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_55973688D71776F82DC72395DB2CE24B" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_55973688D71776F82DC72395DB2CE24B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_26264AD70A6F444E12D72395DB2CCAF4" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_26264AD70A6F444E12D72395DB2CCAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1B9F499B1B43CFD15A222395DB2C42BE" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1B9F499B1B43CFD15A222395DB2C42BE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Warrantyreserveworkingcapitalprovision" xlink:label="loc_mtrx_Warrantyreserveworkingcapitalprovision_C262F18F5F44F2B4DD392395DB2CE4FD" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_833F3D65B35251AC1C382395DB2C6056" xlink:to="loc_mtrx_Warrantyreserveworkingcapitalprovision_C262F18F5F44F2B4DD392395DB2CE4FD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_451321106E7559E671D22395DAF3E5A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_451321106E7559E671D22395DAF3E5A5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_FF66E9C21F5119A24DFC2395DAF39AF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_451321106E7559E671D22395DAF3E5A5" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_FF66E9C21F5119A24DFC2395DAF39AF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FF66E9C21F5119A24DFC2395DAF39AF3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FF66E9C21F5119A24DFC2395DAF39AF3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_7919CEE4C2AA90E2397D2395DAF9ACDC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7" xlink:to="loc_mtrx_HoustonInterestsLLCMember_7919CEE4C2AA90E2397D2395DAF9ACDC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_37F0D1360EABB1E569302395DAF9EFB9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7" xlink:to="loc_mtrx_HDBInc.Member_37F0D1360EABB1E569302395DAF9EFB9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_9811901382FAD40E14F62395DAF9B87E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D574AE777828CA36EC772395DAF3FFE7" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_9811901382FAD40E14F62395DAF9B87E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_BBE51B91934188E070382395DAF9FB10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_BBE51B91934188E070382395DAF9FB10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" xlink:label="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_F59FF7C18C52300C8D602395DAF97173" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_F59FF7C18C52300C8D602395DAF97173" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionNameOfAcquiredEntity" xlink:label="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_D3AA42164B4517AF99602395DAF99E90" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_D3AA42164B4517AF99602395DAF99E90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9E7EFE715C8D183B3A5A2395DAF963CB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9E7EFE715C8D183B3A5A2395DAF963CB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Economicpurchaseprice" xlink:label="loc_mtrx_Economicpurchaseprice_CAF161AE28502776D3022395DAF91C99" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_mtrx_Economicpurchaseprice_CAF161AE28502776D3022395DAF91C99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_CBD8DA54F57889E350CA2395DAF9FB9E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_CBD8DA54F57889E350CA2395DAF9FB9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_C18250D50EEDC513CB502395DAF929D9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_C18250D50EEDC513CB502395DAF929D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_0360A6607215972E78592395DAF9B7AB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_466090C960C91D76FB232395DAF9A9C3" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_0360A6607215972E78592395DAF9B7AB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsProFormaDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1EDD5953AA1A87222D641E23ABA7FF71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1EDD5953AA1A87222D641E23ABA7FF71" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B271AB1E3ECE76F9B6431E23ABA769A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1EDD5953AA1A87222D641E23ABA7FF71" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B271AB1E3ECE76F9B6431E23ABA769A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B271AB1E3ECE76F9B6431E23ABA769A5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B271AB1E3ECE76F9B6431E23ABA769A5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_413D1FC4C3A32C9B3BEF1E24E3C53CC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68" xlink:to="loc_mtrx_HoustonInterestsLLCMember_413D1FC4C3A32C9B3BEF1E24E3C53CC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_901872728BDAEDD942D11E266489C9B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_901872728BDAEDD942D11E266489C9B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_8BAC8DB3B2F1C28F76D51E2917DF2752" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_8BAC8DB3B2F1C28F76D51E2917DF2752" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_E1CB5B13D9405DAD271B1E2AEA7972B1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_E1CB5B13D9405DAD271B1E2AEA7972B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_02075A25A513D45B697C1E2E37AB0AB1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7CEF1A0209792275D3881E23ABBB92C9" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_02075A25A513D45B697C1E2E37AB0AB1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsProFormaNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_750762735F3B7FB6165B1F01A3D26146" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_750762735F3B7FB6165B1F01A3D26146" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_722A0A39BA513535D6451F01A3D2792F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_750762735F3B7FB6165B1F01A3D26146" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_722A0A39BA513535D6451F01A3D2792F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CF5E220B624BC55906461F01A3D2500C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_722A0A39BA513535D6451F01A3D2792F" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CF5E220B624BC55906461F01A3D2500C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CF5E220B624BC55906461F01A3D2500C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_722A0A39BA513535D6451F01A3D2792F" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CF5E220B624BC55906461F01A3D2500C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_C9772AF8D4DE70114BFD1F01A3D27EE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CF5E220B624BC55906461F01A3D2500C" xlink:to="loc_mtrx_HoustonInterestsLLCMember_C9772AF8D4DE70114BFD1F01A3D27EE6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Proformaacquisitioncosts" xlink:label="loc_mtrx_Proformaacquisitioncosts_BFFABDBEAA6A9F44371B1F01A3D22A22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_mtrx_Proformaacquisitioncosts_BFFABDBEAA6A9F44371B1F01A3D22A22" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Proformaacquisitioncostsamortizedovertime" xlink:label="loc_mtrx_Proformaacquisitioncostsamortizedovertime_EF0E0F1006CBDA22570E1F01A3D2C71F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_mtrx_Proformaacquisitioncostsamortizedovertime_EF0E0F1006CBDA22570E1F01A3D2C71F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Proformainterestexpense" xlink:label="loc_mtrx_Proformainterestexpense_BE9DAE8A00345D438FC01F01A3D23FB7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_mtrx_Proformainterestexpense_BE9DAE8A00345D438FC01F01A3D23FB7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Proformadepreciationandamortizationexpense" xlink:label="loc_mtrx_Proformadepreciationandamortizationexpense_2E0ADF8E10171602BC671F01A3D23B7A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_mtrx_Proformadepreciationandamortizationexpense_2E0ADF8E10171602BC671F01A3D23B7A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Proformaincometaxexpense" xlink:label="loc_mtrx_Proformaincometaxexpense_6DB37AB114363471995E1F01A3D24197" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53C31BC6AFEB3C5135661F01A3D2D05A" xlink:to="loc_mtrx_Proformaincometaxexpense_6DB37AB114363471995E1F01A3D24197" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_FD26091258D162CDB4312395DB4A73AB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_34D1901EC7AD455C2A312395DB4A5942" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_FD26091258D162CDB4312395DB4A73AB" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_34D1901EC7AD455C2A312395DB4A5942" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_7B5FAE520676D93FA84D2395DB4A55D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_34D1901EC7AD455C2A312395DB4A5942" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_7B5FAE520676D93FA84D2395DB4A55D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7B5FAE520676D93FA84D2395DB4A55D2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7B5FAE520676D93FA84D2395DB4A55D2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_F18CD8756367489052502395DB4A21F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:to="loc_mtrx_HDBInc.Member_F18CD8756367489052502395DB4A21F3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_446DD632D95F64B85E4D2395DB4AB475" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_446DD632D95F64B85E4D2395DB4AB475" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_060E50A05B79A52D49CC2395DB4AC7E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_060E50A05B79A52D49CC2395DB4AC7E5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_177798CCFFF036CCA2EE2395DB4A3614" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:to="loc_mtrx_HoustonInterestsLLCMember_177798CCFFF036CCA2EE2395DB4A3614" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_7716D5ACFCB68BE74C4C2395DB4A9689" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_7716D5ACFCB68BE74C4C2395DB4A9689" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ConsiderationtransferredTableTextBlock" xlink:label="loc_mtrx_ConsiderationtransferredTableTextBlock_3ACB2C0A0C7F35B67A052395DB4AA885" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_FD26091258D162CDB4312395DB4A73AB" xlink:to="loc_mtrx_ConsiderationtransferredTableTextBlock_3ACB2C0A0C7F35B67A052395DB4AA885" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_4983995A9801794A80AA2395DB4A4AFE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_FD26091258D162CDB4312395DB4A73AB" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_4983995A9801794A80AA2395DB4A4AFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationTextBlock" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_8BBD06EEFB26A43C3EFD2395DB4ACABD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_FD26091258D162CDB4312395DB4A73AB" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_8BBD06EEFB26A43C3EFD2395DB4ACABD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_33B67275AF825476B9E240EE46C9C0D7" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_3B3F46C95AD05447925B0892AF7E2A44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_33B67275AF825476B9E240EE46C9C0D7" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_3B3F46C95AD05447925B0892AF7E2A44" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PowerGenerationProjectAxis" xlink:label="loc_mtrx_PowerGenerationProjectAxis_39EAE0FB37745B789C9A0307F348B42C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_3B3F46C95AD05447925B0892AF7E2A44" xlink:to="loc_mtrx_PowerGenerationProjectAxis_39EAE0FB37745B789C9A0307F348B42C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_7A67907E68A6FEE79C4A3EF76FCFF62E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_39EAE0FB37745B789C9A0307F348B42C" xlink:to="loc_mtrx_PowerGenerationProjectDomain_7A67907E68A6FEE79C4A3EF76FCFF62E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_FF1465ED49525FA58F319B311A1438D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_39EAE0FB37745B789C9A0307F348B42C" xlink:to="loc_mtrx_PowerGenerationProjectDomain_FF1465ED49525FA58F319B311A1438D2" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_6E7ABF1CCA525CE3840D09C5B03FE35F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_FF1465ED49525FA58F319B311A1438D2" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_6E7ABF1CCA525CE3840D09C5B03FE35F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ClaimOnPowerGenerationProjectMember" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_A6DA6E66339A545CA538D1043B6DC0B7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_FF1465ED49525FA58F319B311A1438D2" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_A6DA6E66339A545CA538D1043B6DC0B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnapprovedChangeOrdersAmount" xlink:label="loc_us-gaap_UnapprovedChangeOrdersAmount_10C8C09EEB0C5139962F84DDF6BF2E6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_33B67275AF825476B9E240EE46C9C0D7" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_10C8C09EEB0C5139962F84DDF6BF2E6F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_59EA9F478E65EFF0222E2395DB9A589D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_96EB5821BCEB1011BA562395DB9A52CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_59EA9F478E65EFF0222E2395DB9A589D" xlink:to="loc_us-gaap_StatementTable_96EB5821BCEB1011BA562395DB9A52CD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_D82CB901580E27A3B46E2395DB9A840C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_96EB5821BCEB1011BA562395DB9A52CD" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_D82CB901580E27A3B46E2395DB9A840C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D82CB901580E27A3B46E2395DB9A840C" xlink:to="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D82CB901580E27A3B46E2395DB9A840C" xlink:to="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_F47FB54F0222777A1DA12395DB9AEA7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_CommonStockMember_F47FB54F0222777A1DA12395DB9AEA7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_72645343B38941C411D22395DB9AF5DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_72645343B38941C411D22395DB9AF5DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_3593998BBC333699A7922395DB9A84E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_RetainedEarningsMember_3593998BBC333699A7922395DB9A84E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_4B9AF203A972A86BD9CA2395DB9AC7EE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_TreasuryStockMember_4B9AF203A972A86BD9CA2395DB9AC7EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_D38DFA540BBAED9870FB2395DB9A82CC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_D38DFA540BBAED9870FB2395DB9A82CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_E7EC84ED3E1B6A6E9E7C2395DB9AB547" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_32D3B131130B904545CE2395DB9A11FA" xlink:to="loc_us-gaap_NoncontrollingInterestMember_E7EC84ED3E1B6A6E9E7C2395DB9AB547" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_59EA9F478E65EFF0222E2395DB9A589D" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_CBC51A2A766FE4851CAD2395DB9AC9BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_CBC51A2A766FE4851CAD2395DB9AC9BB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Beginningequitybalancesasadjusted" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_68913A6BABEBBA6924992395DB9A1B11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_68913A6BABEBBA6924992395DB9A1B11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_31F422296526690ABB392395DB9A5A21" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_31F422296526690ABB392395DB9A5A21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_29C967A69E693AEBAB6A2395DB9A0B85" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_29C967A69E693AEBAB6A2395DB9A0B85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_F725D8791BE600990B2B2395DB9AAC5E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_ProfitLoss_F725D8791BE600990B2B2395DB9AAC5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DDDC89BE64F59E4585242395DB9AE5A1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DDDC89BE64F59E4585242395DB9AE5A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_633B43649DB1A043ABED2395DB9A141A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_633B43649DB1A043ABED2395DB9A141A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_F786C5869F452C0DEE912395DB9ADD98" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_F786C5869F452C0DEE912395DB9ADD98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_E750E9B21F234F685B382395DB9A2290" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_E750E9B21F234F685B382395DB9A2290" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireInterestInJointVenture" xlink:label="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_1E11D987D521ACD3DB7F2395DB9AF671" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_1E11D987D521ACD3DB7F2395DB9AF671" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_6B09CB94CBDAD6C5AE712395DB9A7CBE" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_6B09CB94CBDAD6C5AE712395DB9A7CBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_007E5B8381CACF73E1482395DBA4742D" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_007E5B8381CACF73E1482395DBA4742D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_OtherTreasurySharePurchases" xlink:label="loc_mtrx_OtherTreasurySharePurchases_3884CDD01DB7F98F74742395DBA46F71" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_mtrx_OtherTreasurySharePurchases_3884CDD01DB7F98F74742395DBA46F71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_1F94F0F37255BF4C3CEA2395DBA40210" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_1F94F0F37255BF4C3CEA2395DBA40210" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_C216F3848A1BFEEBEA112395DBA4A158" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_C2B832DB9F568C9CEC7D2395DB9AC1BC" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_C216F3848A1BFEEBEA112395DBA4A158" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_EBFB557691E8577DA3E6D73F1FE7526C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_us-gaap_StatementTable_EBFB557691E8577DA3E6D73F1FE7526C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_E9BE53CE1F955D3DA3F8916D3FA407F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_EBFB557691E8577DA3E6D73F1FE7526C" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_E9BE53CE1F955D3DA3F8916D3FA407F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_14B4DE82758F94B7C9A66D03FB6DD43F_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_E9BE53CE1F955D3DA3F8916D3FA407F4" xlink:to="loc_us-gaap_EquityComponentDomain_14B4DE82758F94B7C9A66D03FB6DD43F_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_A754C209D2B75810BBD0EAF04D7EE0C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_E9BE53CE1F955D3DA3F8916D3FA407F4" xlink:to="loc_us-gaap_EquityComponentDomain_A754C209D2B75810BBD0EAF04D7EE0C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_56E14C5FDDC35E598D53B8717990AD5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_A754C209D2B75810BBD0EAF04D7EE0C9" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_56E14C5FDDC35E598D53B8717990AD5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_FF31ECE4A64557D7B0B0382B9217F89C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_A754C209D2B75810BBD0EAF04D7EE0C9" xlink:to="loc_us-gaap_TreasuryStockMember_FF31ECE4A64557D7B0B0382B9217F89C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_CA0CC50E9C5251B391FA65C3CA7EFA6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_CA0CC50E9C5251B391FA65C3CA7EFA6E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_DeferredSharesIssued" xlink:label="loc_mtrx_DeferredSharesIssued_AEA188E20641543090FC70CEBC48F246" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_mtrx_DeferredSharesIssued_AEA188E20641543090FC70CEBC48F246" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_C0678260C0B35933A80E9DF2689A231C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_C0678260C0B35933A80E9DF2689A231C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_A00B906015D95CC095FA3D184157D6BA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_A00B906015D95CC095FA3D184157D6BA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_OtherTreasurySharesAcquired" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_6898F08B4C8D598CABF6F68AF1FBB7F7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_169B7D7547D053B89F5FDFE8D08898C0" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_6898F08B4C8D598CABF6F68AF1FBB7F7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable" xlink:label="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_6953377E1FF7E2AC37BB2395D9724DA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_6953377E1FF7E2AC37BB2395D9724DA8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_1247B1C79C68E2DDF6822395D97C049C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_6953377E1FF7E2AC37BB2395D9724DA8" xlink:to="loc_us-gaap_VariableRateAxis_1247B1C79C68E2DDF6822395D97C049C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_1247B1C79C68E2DDF6822395D97C049C" xlink:to="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_1247B1C79C68E2DDF6822395D97C049C" xlink:to="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_CdorRateMember" xlink:label="loc_mtrx_CdorRateMember_9A211A6800E3BD6806022395D97CC8CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295" xlink:to="loc_mtrx_CdorRateMember_9A211A6800E3BD6806022395D97CC8CD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_CanadianPrimeRateMember" xlink:label="loc_mtrx_CanadianPrimeRateMember_F073FAE681BD80128FCD2395D97CDEC8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CBDCF2468C93ADCA14F2395D97C7295" xlink:to="loc_mtrx_CanadianPrimeRateMember_F073FAE681BD80128FCD2395D97CDEC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_CF783A25F52E43366B9F2395D97CD3AC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_6953377E1FF7E2AC37BB2395D9724DA8" xlink:to="loc_us-gaap_RangeAxis_CF783A25F52E43366B9F2395D97CD3AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_CF783A25F52E43366B9F2395D97CD3AC" xlink:to="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_CF783A25F52E43366B9F2395D97CD3AC" xlink:to="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_85447BAC020EF202815F2395D97CF6CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A" xlink:to="loc_us-gaap_MinimumMember_85447BAC020EF202815F2395D97CF6CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_9C2D2874771DEC5CE8322395D97C231D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A67E819AD2AC05E141ED2395D97CFF8A" xlink:to="loc_us-gaap_MaximumMember_9C2D2874771DEC5CE8322395D97C231D" 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_F9DA3A802C800FA3002A2395D97CCCB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_dei_DocumentPeriodEndDate_F9DA3A802C800FA3002A2395D97CCCB2" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_CreditAgreementTerm" xlink:label="loc_mtrx_CreditAgreementTerm_A49042379EE3EF0700852395D97C60B2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_CreditAgreementTerm_A49042379EE3EF0700852395D97C60B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_81DAFA60339EBFC7B24E2395D97CDE6F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_81DAFA60339EBFC7B24E2395D97CDE6F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_EDB04DBEDC578E1789362395D97C904A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_EDB04DBEDC578E1789362395D97C904A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_5674BE4D50E716B1A1632395D97C3B8E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_5674BE4D50E716B1A1632395D97C3B8E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_FEBFEE15DD31438F86ED2395D97CF7CA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_FEBFEE15DD31438F86ED2395D97CF7CA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SeniorLeverageRatioMax" xlink:label="loc_mtrx_SeniorLeverageRatioMax_3C26EB8043989995FD692395D97CA34B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_SeniorLeverageRatioMax_3C26EB8043989995FD692395D97CA34B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SeniorLeverageRatioMin" xlink:label="loc_mtrx_SeniorLeverageRatioMin_727C8BB5A8E90CA372752395D97CD691" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_SeniorLeverageRatioMin_727C8BB5A8E90CA372752395D97CD691" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_FixedChargeCoverageRatioMaximum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_643F3F977CC0DD5280DB2395D97CF9D9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_643F3F977CC0DD5280DB2395D97CF9D9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_FixedChargeCoverageRatioMinimum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_BAD2158F512CB001BE9B2395D97C909B" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_BAD2158F512CB001BE9B2395D97C909B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_AmountOfLimitOnAssetDispositions" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_2507AA9C474504B896BC2395D97C23E9" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_2507AA9C474504B896BC2395D97C23E9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_0AD422DAAC234434585B2395D97CAB04" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_0AD422DAAC234434585B2395D97CAB04" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_D263A8E5250924B4422A2395D97CB269" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_D263A8E5250924B4422A2395D97CB269" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_BA20B88C153BFB8063282395D97C1D01" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_BA20B88C153BFB8063282395D97C1D01" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_639F7CE7CDF66CB5A96D2395D97CF772" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_639F7CE7CDF66CB5A96D2395D97CF772" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_PriorSublimitonCanadianDollarBorrowings" xlink:label="loc_mtrx_PriorSublimitonCanadianDollarBorrowings_046C9185AF350C9A30A82395D97C3063" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_PriorSublimitonCanadianDollarBorrowings_046C9185AF350C9A30A82395D97C3063" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_AmountOfLimitOnCanadianDollarBorrowings" xlink:label="loc_mtrx_AmountOfLimitOnCanadianDollarBorrowings_F2BA7D88049CA913BD5C2395D97CCDCB" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_AmountOfLimitOnCanadianDollarBorrowings_F2BA7D88049CA913BD5C2395D97CCDCB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMinimum_6DA7D9EC7531E03AFC762395D9862D20" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMinimum_6DA7D9EC7531E03AFC762395D9862D20" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMaximum_BB322A93572E00D35EBF2395D9861A9A" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianDepositOfferedRateMaximum_BB322A93572E00D35EBF2395D9861A9A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_277C0DB688583B4DB76C2395D986D34B" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_277C0DB688583B4DB76C2395D986D34B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_A3877296410FE14ABAB82395D986430B" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_A3877296410FE14ABAB82395D986430B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_3E54059DD0433F023AB22395D986332A" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_3E54059DD0433F023AB22395D986332A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentDescriptionOfVariableRateBasis" xlink:label="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_F8D9908589A018568F972395D986C4B6" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_F8D9908589A018568F972395D986C4B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_022BF1D50582287CC5B02395D986F3CC" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_022BF1D50582287CC5B02395D986F3CC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_LineOfCreditFacilityCanadianPrimeRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_899311A4AEB0C523D2172395D9864A51" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_899311A4AEB0C523D2172395D9864A51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_25F0021AF8CEFD32A26A2395D9867091" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_25F0021AF8CEFD32A26A2395D9867091" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_MaximumLimitOfConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_53B94FB25B855EBC0D3E2395D9862B11" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_53B94FB25B855EBC0D3E2395D9862B11" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement" xlink:label="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_FA0C0690271623DC5EF12395D986A67B" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_FA0C0690271623DC5EF12395D986A67B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_ConsolidatedFundedIndebtedness_7B553BC4F1147A18713E2395D986E7B6" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_ConsolidatedFundedIndebtedness_7B553BC4F1147A18713E2395D986E7B6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_Acquiredlongtermdebt" xlink:label="loc_mtrx_Acquiredlongtermdebt_4BAF2C20B3920A1E996D2395D986728F" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_mtrx_Acquiredlongtermdebt_4BAF2C20B3920A1E996D2395D986728F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventDescription" xlink:label="loc_us-gaap_SubsequentEventDescription_5D49FDFEFD7B086649612395D986D0E7" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_EE46B7A0675F42DC8E0B2395D97CC095" xlink:to="loc_us-gaap_SubsequentEventDescription_5D49FDFEFD7B086649612395D986D0E7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_222E93828ABD531DA9BF2E9C750BD254" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A4FB50B5B756538BAE7C585DE323A565" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_222E93828ABD531DA9BF2E9C750BD254" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A4FB50B5B756538BAE7C585DE323A565" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CCCEDCBBD88E5EF794F9E57B2CCF8937" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A4FB50B5B756538BAE7C585DE323A565" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CCCEDCBBD88E5EF794F9E57B2CCF8937" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_DECF9D3095CB0A5236256D03FC164E99_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CCCEDCBBD88E5EF794F9E57B2CCF8937" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_DECF9D3095CB0A5236256D03FC164E99_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8357BE587E9E59D39F5610B94B2A4C9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CCCEDCBBD88E5EF794F9E57B2CCF8937" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8357BE587E9E59D39F5610B94B2A4C9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_D548182542FB5767A9DD5F807A00FFCA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8357BE587E9E59D39F5610B94B2A4C9A" xlink:to="loc_us-gaap_EmployeeStockOptionMember_D548182542FB5767A9DD5F807A00FFCA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_NonvestedDeferredSharesMember" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_7300654A3135548AB40280A27ACE6B31" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_8357BE587E9E59D39F5610B94B2A4C9A" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_7300654A3135548AB40280A27ACE6B31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_2A48CBE92F6E5222B1C1C4EDBB447F05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_222E93828ABD531DA9BF2E9C750BD254" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_2A48CBE92F6E5222B1C1C4EDBB447F05" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_9F421A904992A34B7A7A1E7219154408" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_9F421A904992A34B7A7A1E7219154408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9F421A904992A34B7A7A1E7219154408" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9F421A904992A34B7A7A1E7219154408" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_E43AE77B7041592597F01E7219151551" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_E43AE77B7041592597F01E7219151551" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_EA0065D4B0A81B615F491E7AD798BAAB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_EC980BB53B9B13CC591E1E721915E674" xlink:to="loc_mtrx_HoustonInterestsLLCMember_EA0065D4B0A81B615F491E7AD798BAAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_F23E8EB794E1180764121E7219152C08" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_F23E8EB794E1180764121E7219152C08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_FD0FA6DF7AA65F70AD301E721915F76E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_F23E8EB794E1180764121E7219152C08" xlink:to="loc_us-gaap_SegmentDomain_FD0FA6DF7AA65F70AD301E721915F76E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_FD0FA6DF7AA65F70AD301E721915F76E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_F23E8EB794E1180764121E7219152C08" xlink:to="loc_us-gaap_SegmentDomain_FD0FA6DF7AA65F70AD301E721915F76E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_8831800A8B11C425A0221E72191586DD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:to="loc_us-gaap_RangeAxis_8831800A8B11C425A0221E72191586DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_8831800A8B11C425A0221E72191586DD" xlink:to="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_8831800A8B11C425A0221E72191586DD" xlink:to="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_D5AE3C2D1C9A76FDE4501E721915ADAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424" xlink:to="loc_us-gaap_MinimumMember_D5AE3C2D1C9A76FDE4501E721915ADAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_BB0931888DF5DD2F37A31E721915560F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DD55E96E4811072E6D4D1E7219152424" xlink:to="loc_us-gaap_MaximumMember_BB0931888DF5DD2F37A31E721915560F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_C03B2D03872EA206B2B31E721915AC5F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_5A7CF43A3989808DFA8F1E7219159CFC" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_C03B2D03872EA206B2B31E721915AC5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_C03B2D03872EA206B2B31E721915AC5F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_C03B2D03872EA206B2B31E721915AC5F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntellectualPropertyMember" xlink:label="loc_us-gaap_IntellectualPropertyMember_157CEE7EC3B7307226BD1E7219150475" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_us-gaap_IntellectualPropertyMember_157CEE7EC3B7307226BD1E7219150475" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1D9DE504C173149935C61E7219158A72" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1D9DE504C173149935C61E7219158A72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_88157F60548E9B62BA351E72191504F5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_88157F60548E9B62BA351E72191504F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_1255B5F18EFA5DA26DE11E7219158BEB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_us-gaap_TradeNamesMember_1255B5F18EFA5DA26DE11E7219158BEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_854B2973F1DCE12BED601E72191571B6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_854B2973F1DCE12BED601E72191571B6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SMElectricTradeNameMember" xlink:label="loc_mtrx_SMElectricTradeNameMember_6316AAFC15E65C0F75141E7219153C5E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D9DB0D04AFB5AE7107011E7219150757" xlink:to="loc_mtrx_SMElectricTradeNameMember_6316AAFC15E65C0F75141E7219153C5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3C2E136EB31EAEB8B2921E7219159EB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3C2E136EB31EAEB8B2921E7219159EB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_D47D9D19B856C62775BB1E7219244E12" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_D47D9D19B856C62775BB1E7219244E12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_C49581FF2772F5BC07251E721924DACC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_C49581FF2772F5BC07251E721924DACC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_034AEFE80E00C1AD67801E7219244F8F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0F7959CE09EA18773ED21E72191552FB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_034AEFE80E00C1AD67801E7219244F8F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_95F4EFEBA9DFDFCA89B52395DA1C3DB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_95F4EFEBA9DFDFCA89B52395DA1C3DB9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_0E21643494BBE9C9A4692395DA1C14A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_95F4EFEBA9DFDFCA89B52395DA1C3DB9" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0E21643494BBE9C9A4692395DA1C14A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0E21643494BBE9C9A4692395DA1C14A1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0E21643494BBE9C9A4692395DA1C14A1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_BDAAFA7E30BC44BBA92C2395DA1CDE84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_BDAAFA7E30BC44BBA92C2395DA1CDE84" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_8135BC7FC4672BCFBA392395DA1C6E1A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E0578C1440FD6A83682B2395DA1C2033" xlink:to="loc_mtrx_HoustonInterestsLLCMember_8135BC7FC4672BCFBA392395DA1C6E1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_B83EE1EDD8A54B9113B62395DA1C8F7B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_95F4EFEBA9DFDFCA89B52395DA1C3DB9" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_B83EE1EDD8A54B9113B62395DA1C8F7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B83EE1EDD8A54B9113B62395DA1C8F7B" xlink:to="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B83EE1EDD8A54B9113B62395DA1C8F7B" xlink:to="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_469E3F1A5C88D0585C932395DA1C4357" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:to="loc_mtrx_ElectricalInfrastructureMember_469E3F1A5C88D0585C932395DA1C4357" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_1ED68BBF7ADCC86F5F992395DA1C3488" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:to="loc_mtrx_OilGasAndChemicalMember_1ED68BBF7ADCC86F5F992395DA1C3488" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_68A8C1E07AB4528B37492395DA1CCF97" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:to="loc_mtrx_StorageSolutionsMember_68A8C1E07AB4528B37492395DA1CCF97" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_348694E920A73BFBC9272395DA1C2AB8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:to="loc_mtrx_IndustrialMember_348694E920A73BFBC9272395DA1C2AB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_FE7F82CC136635F954EB2395DA1C00BE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_796CF382D0BAD2FCE4382395DA1CB48D" xlink:to="loc_us-gaap_AllOtherSegmentsMember_FE7F82CC136635F954EB2395DA1C00BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_831540890B8E0EC2361C2395DA1C885D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:to="loc_us-gaap_GoodwillGross_831540890B8E0EC2361C2395DA1C885D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_44587CBA490D10FC2BDB2395DA1C6CF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_44587CBA490D10FC2BDB2395DA1C6CF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_53F363BA017A072339A52395DA1C9619" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:to="loc_us-gaap_Goodwill_53F363BA017A072339A52395DA1C9619" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_616ED294C9B79284A37F2395DA1CCF9A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_A7F8DFE20DBAFE2D3DC42395DA1CAA7D" xlink:to="loc_us-gaap_GoodwillRollForward_616ED294C9B79284A37F2395DA1CCF9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_4E5E108C7C8C8863B46F2395DA1C5039" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_616ED294C9B79284A37F2395DA1CCF9A" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_4E5E108C7C8C8863B46F2395DA1C5039" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_AA726F4D2B5AB563AC6B2395DA1C8770" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_616ED294C9B79284A37F2395DA1CCF9A" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_AA726F4D2B5AB563AC6B2395DA1C8770" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_8DBC15A42EEEF330D1A82395DA1C8501" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_616ED294C9B79284A37F2395DA1CCF9A" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_8DBC15A42EEEF330D1A82395DA1C8501" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0F2BC368F6DBCA23BD5E2395D9FEEDD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0F2BC368F6DBCA23BD5E2395D9FEEDD9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8772FC5FE46F5841C3A82395D9FECCD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0F2BC368F6DBCA23BD5E2395D9FEEDD9" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8772FC5FE46F5841C3A82395D9FECCD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8772FC5FE46F5841C3A82395D9FECCD8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8772FC5FE46F5841C3A82395D9FECCD8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_A6538C0BEB0C50C92C962395D9FEC73E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1" xlink:to="loc_mtrx_HoustonInterestsLLCMember_A6538C0BEB0C50C92C962395D9FEC73E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6C1AC4069D32DDC059B52395D9FE17CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0F2BC368F6DBCA23BD5E2395D9FEEDD9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6C1AC4069D32DDC059B52395D9FE17CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6C1AC4069D32DDC059B52395D9FE17CB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6C1AC4069D32DDC059B52395D9FE17CB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntellectualPropertyMember" xlink:label="loc_us-gaap_IntellectualPropertyMember_F3C7B0370994E7C92EF82395D9FE7837" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:to="loc_us-gaap_IntellectualPropertyMember_F3C7B0370994E7C92EF82395D9FE7837" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_B980B8C67F4C7C14CF172395D9FEF870" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:to="loc_us-gaap_CustomerRelationshipsMember_B980B8C67F4C7C14CF172395D9FEF870" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_68564A2AE2299F5493802395D9FE7BDD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_68564A2AE2299F5493802395D9FE7BDD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_78FBE788C4D3759FE3C12395D9FE8760" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E" xlink:to="loc_us-gaap_TradeNamesMember_78FBE788C4D3759FE3C12395D9FE8760" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_F642192C6EE0FE6C56242395D9FE9961" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0F2BC368F6DBCA23BD5E2395D9FEEDD9" xlink:to="loc_us-gaap_RangeAxis_F642192C6EE0FE6C56242395D9FE9961" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_F642192C6EE0FE6C56242395D9FE9961" xlink:to="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_F642192C6EE0FE6C56242395D9FE9961" xlink:to="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_341C64C2D4F65C4753F42395D9FEBD48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103" xlink:to="loc_us-gaap_MinimumMember_341C64C2D4F65C4753F42395D9FEBD48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_E688E460821F284454192395D9FEE71A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103" xlink:to="loc_us-gaap_MaximumMember_E688E460821F284454192395D9FEE71A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_E91C9EAD6176D1E3A35A2395D9FE6FC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_E91C9EAD6176D1E3A35A2395D9FE6FC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_62F410148439C8D6AC4C2395D9FE6A78" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_62F410148439C8D6AC4C2395D9FE6A78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_FE07F1939747EFB0FCD02395D9FEAFDB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_FE07F1939747EFB0FCD02395D9FEAFDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_FEC5AAD3D901F6E58A292395D9FE1479" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_FEC5AAD3D901F6E58A292395D9FE1479" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedTradeNames" xlink:label="loc_us-gaap_IndefiniteLivedTradeNames_5647909AA4144D7A2B7E2395D9FE7366" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_5647909AA4144D7A2B7E2395D9FE7366" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_64378564DC497FD2A5342395D9FEFBC4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_64378564DC497FD2A5342395D9FEFBC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_5F24C062CDA65B55E0392395DA08C7F0" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_1E94EB1195A54AC8028A2395D9FEA2BB" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_5F24C062CDA65B55E0392395DA08C7F0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_C37AF54E61F65D018A224F61318A6129" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_C37AF54E61F65D018A224F61318A6129" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CB39A785627553108E0CF95023EE2459" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CB39A785627553108E0CF95023EE2459" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BAC775F5391FD397CCB26D03FB5ECB45_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CB39A785627553108E0CF95023EE2459" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BAC775F5391FD397CCB26D03FB5ECB45_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E3E81E643DD05E40A2C1ED49A221531A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_CB39A785627553108E0CF95023EE2459" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E3E81E643DD05E40A2C1ED49A221531A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_5EDC71B3CDF75E3AAAA5909D9C3AC567" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:to="loc_us-gaap_ConsolidationItemsAxis_5EDC71B3CDF75E3AAAA5909D9C3AC567" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_A98C748B165E856EAA9D6D03FB5EDF8E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5EDC71B3CDF75E3AAAA5909D9C3AC567" xlink:to="loc_us-gaap_ConsolidationItemsDomain_A98C748B165E856EAA9D6D03FB5EDF8E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_5D4AD741BC6A5977BD388859E94A56AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5EDC71B3CDF75E3AAAA5909D9C3AC567" xlink:to="loc_us-gaap_ConsolidationItemsDomain_5D4AD741BC6A5977BD388859E94A56AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_D58A057655B655078A1E2B55DDAA5865" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_D58A057655B655078A1E2B55DDAA5865" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_18F11E9EF3C398FCF2916D03FB5E9181_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D58A057655B655078A1E2B55DDAA5865" xlink:to="loc_us-gaap_SegmentDomain_18F11E9EF3C398FCF2916D03FB5E9181_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DAEA723775C75ACA90BE1172753121D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D58A057655B655078A1E2B55DDAA5865" xlink:to="loc_us-gaap_SegmentDomain_DAEA723775C75ACA90BE1172753121D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_67F1C566177B507FACFAF6DFB46378D5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A45BAB8553055C768084074E31D7D40F" xlink:to="loc_us-gaap_RangeAxis_67F1C566177B507FACFAF6DFB46378D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_2FBD3CD59D403396127A6D03FB5E9159_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_67F1C566177B507FACFAF6DFB46378D5" xlink:to="loc_us-gaap_RangeMember_2FBD3CD59D403396127A6D03FB5E9159_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_313E009E80255CD1A81447F14CACE0E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_67F1C566177B507FACFAF6DFB46378D5" xlink:to="loc_us-gaap_RangeMember_313E009E80255CD1A81447F14CACE0E1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_06EECD30A1BE5B388287FD1D797E49E2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_06EECD30A1BE5B388287FD1D797E49E2" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6399C19C026254CEABA5DE2DCEB7BFFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6399C19C026254CEABA5DE2DCEB7BFFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_124310764A66C7DF715D6D03FB78AE1A_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6399C19C026254CEABA5DE2DCEB7BFFD" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_124310764A66C7DF715D6D03FB78AE1A_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_292AF970E648525BB1EBB5A48DAC6825" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_6399C19C026254CEABA5DE2DCEB7BFFD" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_292AF970E648525BB1EBB5A48DAC6825" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_72B44D9A8A8B51A08B5E02F5A460F849" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:to="loc_us-gaap_ConsolidationItemsAxis_72B44D9A8A8B51A08B5E02F5A460F849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_7D755B2901AE8EA16CA96D03FB78397E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_72B44D9A8A8B51A08B5E02F5A460F849" xlink:to="loc_us-gaap_ConsolidationItemsDomain_7D755B2901AE8EA16CA96D03FB78397E_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_4756E21AB15753AFA8D41696113D7256" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_72B44D9A8A8B51A08B5E02F5A460F849" xlink:to="loc_us-gaap_ConsolidationItemsDomain_4756E21AB15753AFA8D41696113D7256" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_CEA0C2EA65F25F09948978E5B225611F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_CEA0C2EA65F25F09948978E5B225611F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_76EFC9694F351365AA046D03FB781A21_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_CEA0C2EA65F25F09948978E5B225611F" xlink:to="loc_us-gaap_SegmentDomain_76EFC9694F351365AA046D03FB781A21_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D29075930D04517BBB33F75DD1AE617A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_CEA0C2EA65F25F09948978E5B225611F" xlink:to="loc_us-gaap_SegmentDomain_D29075930D04517BBB33F75DD1AE617A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_6812BE4A083A5CA1A1D10EB1E3DEB82F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99BB6E4819B65F9C8E5BA79569AC3A84" xlink:to="loc_us-gaap_RangeAxis_6812BE4A083A5CA1A1D10EB1E3DEB82F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_472BF2F6576136DF2F6B6D03FB7860E3_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_6812BE4A083A5CA1A1D10EB1E3DEB82F" xlink:to="loc_us-gaap_RangeMember_472BF2F6576136DF2F6B6D03FB7860E3_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_EC239696E7645366A2DC5E1B322D03F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_6812BE4A083A5CA1A1D10EB1E3DEB82F" xlink:to="loc_us-gaap_RangeMember_EC239696E7645366A2DC5E1B322D03F2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7E848A46FAF5857B29D1BA62D1951C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7E848A46FAF5857B29D1BA62D1951C0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_987E35358EAB543EA8A90B177E9BFF65" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7E848A46FAF5857B29D1BA62D1951C0" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_987E35358EAB543EA8A90B177E9BFF65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_02C8078BD827699C9BCB6D03FBE0D268_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_987E35358EAB543EA8A90B177E9BFF65" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_02C8078BD827699C9BCB6D03FBE0D268_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9E84169101865D81A220C6B9D2EA0FBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_987E35358EAB543EA8A90B177E9BFF65" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9E84169101865D81A220C6B9D2EA0FBA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_AB9C463B867A5A47B3FBBE48018D19E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9E84169101865D81A220C6B9D2EA0FBA" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_AB9C463B867A5A47B3FBBE48018D19E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_D8A3F7C0A5CC519DB96D09741616F90F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7E848A46FAF5857B29D1BA62D1951C0" xlink:to="loc_us-gaap_ConsolidationItemsAxis_D8A3F7C0A5CC519DB96D09741616F90F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_B6A14202DFE9BA22DB446D03FBE15A2A_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D8A3F7C0A5CC519DB96D09741616F90F" xlink:to="loc_us-gaap_ConsolidationItemsDomain_B6A14202DFE9BA22DB446D03FBE15A2A_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_8F399AD6EF8A5363971FDA771A251705" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D8A3F7C0A5CC519DB96D09741616F90F" xlink:to="loc_us-gaap_ConsolidationItemsDomain_8F399AD6EF8A5363971FDA771A251705" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_D055FD68182E5330AF0143AE7C09EFD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_8F399AD6EF8A5363971FDA771A251705" xlink:to="loc_us-gaap_IntersegmentEliminationMember_D055FD68182E5330AF0143AE7C09EFD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3EEB18E6FFF05C07912E9F539039FE69" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7E848A46FAF5857B29D1BA62D1951C0" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3EEB18E6FFF05C07912E9F539039FE69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_0A9543A9085ABF04FCF96D03FBE10986_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3EEB18E6FFF05C07912E9F539039FE69" xlink:to="loc_us-gaap_SegmentDomain_0A9543A9085ABF04FCF96D03FBE10986_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3EEB18E6FFF05C07912E9F539039FE69" xlink:to="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_AC7A056F1BD555DABA5ED2376119E049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:to="loc_mtrx_ElectricalInfrastructureMember_AC7A056F1BD555DABA5ED2376119E049" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_C75698869D8F501CA0E9261139B0CEAF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:to="loc_mtrx_OilGasAndChemicalMember_C75698869D8F501CA0E9261139B0CEAF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_8BD9794DAE3B5B4AAC1E30916321CD7A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:to="loc_mtrx_StorageSolutionsMember_8BD9794DAE3B5B4AAC1E30916321CD7A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_18A63F90D1A258C797F7A0E40CC35032" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:to="loc_mtrx_IndustrialMember_18A63F90D1A258C797F7A0E40CC35032" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_8FDC0773700957FAA078A6F9C2561E7D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E9C12E25623E5FFCBA9D17222FC63F59" xlink:to="loc_us-gaap_AllOtherSegmentsMember_8FDC0773700957FAA078A6F9C2561E7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_3C1E9B3D5F275D9B8E9F71CF821989F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_Revenues_3C1E9B3D5F275D9B8E9F71CF821989F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueServicesNet" xlink:label="loc_us-gaap_SalesRevenueServicesNet_103A35D242B352DCBFEA97221C50882B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_SalesRevenueServicesNet_103A35D242B352DCBFEA97221C50882B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_41442A99706C5D1F98357A1DB0CF24A4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_GrossProfit_41442A99706C5D1F98357A1DB0CF24A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_5A7621365EBF55BE9F46FE027A3A8727" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_OperatingIncomeLoss_5A7621365EBF55BE9F46FE027A3A8727" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_0E325EFBE9045588AED35675B420B46F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_Assets_0E325EFBE9045588AED35675B420B46F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_4F726A7C25DC5C7190EEDB64CB61328C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F8575F1EEEE656CD8F7FA1E8AFE4377D" xlink:to="loc_us-gaap_Goodwill_4F726A7C25DC5C7190EEDB64CB61328C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_CustomerContractsLineItems" xlink:label="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_CustomerContractsTable" xlink:label="loc_mtrx_CustomerContractsTable_59C3682259B95549B08C08CE16349F5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_mtrx_CustomerContractsTable_59C3682259B95549B08C08CE16349F5D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_F617033FA60F5B0E855EA91E0586CDC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_CustomerContractsTable_59C3682259B95549B08C08CE16349F5D" xlink:to="loc_us-gaap_MajorCustomersAxis_F617033FA60F5B0E855EA91E0586CDC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_00A41C4FFB752A01D4616D03FB831A94_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_F617033FA60F5B0E855EA91E0586CDC5" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_00A41C4FFB752A01D4616D03FB831A94_082F42663BB0509E99E4E9AD08CBD6A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_B3C6115EBC7B50448E540CB016951B56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_F617033FA60F5B0E855EA91E0586CDC5" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_B3C6115EBC7B50448E540CB016951B56" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_SMElectricCompanyMember" xlink:label="loc_mtrx_SMElectricCompanyMember_41CBE757A9095AACBF8F4EDED67F0776" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_B3C6115EBC7B50448E540CB016951B56" xlink:to="loc_mtrx_SMElectricCompanyMember_41CBE757A9095AACBF8F4EDED67F0776" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractReceivableRetainageDueOneYearOrLess" xlink:label="loc_us-gaap_ContractReceivableRetainageDueOneYearOrLess_4F54A48F87515DDB8013AC3BC091A293" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_us-gaap_ContractReceivableRetainageDueOneYearOrLess_4F54A48F87515DDB8013AC3BC091A293" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractReceivableRetainageDueAfterOneYear" xlink:label="loc_us-gaap_ContractReceivableRetainageDueAfterOneYear_8B61B5D38D905BE48258F55A0C4CEF8B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_us-gaap_ContractReceivableRetainageDueAfterOneYear_8B61B5D38D905BE48258F55A0C4CEF8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractsReceivableClaimsAndUncertainAmounts" xlink:label="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_D8F6B14A650C5B2BA5B69085F636202E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_D8F6B14A650C5B2BA5B69085F636202E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms" xlink:label="loc_us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms_3505818D2ED25DA197CE152F645D1AE1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms_3505818D2ED25DA197CE152F645D1AE1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome" xlink:label="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_BBB2D73A663355CE9A7E39990AEC67A5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_BBB2D73A663355CE9A7E39990AEC67A5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20161231.xsd#mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome" xlink:label="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_F038A4F1E57E5C01B1F498F1031A1101" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_0A8747B45073546A9855D9C987576292" xlink:to="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_F038A4F1E57E5C01B1F498F1031A1101" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsTables" xlink:type="extended" />
</link:linkbase>
