<?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/AcquisitionsTables" xlink:href="mtrx-20181231.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:href="mtrx-20181231.xsd#BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:href="mtrx-20181231.xsd#BasisOfPresentationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationRevenueRecognitionPolicies" xlink:href="mtrx-20181231.xsd#BasisOfPresentationRevenueRecognitionPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="mtrx-20181231.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:href="mtrx-20181231.xsd#CommitmentsAndContingenciesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:href="mtrx-20181231.xsd#CondensedConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:href="mtrx-20181231.xsd#DebtAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:href="mtrx-20181231.xsd#DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:href="mtrx-20181231.xsd#DebtNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:href="mtrx-20181231.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsDetails" xlink:href="mtrx-20181231.xsd#DisposalsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsNarrativeDetails" xlink:href="mtrx-20181231.xsd#DisposalsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsNotes" xlink:href="mtrx-20181231.xsd#DisposalsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsProFormaDetails" xlink:href="mtrx-20181231.xsd#DisposalsProFormaDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsProFormaNarrativeDetails" xlink:href="mtrx-20181231.xsd#DisposalsProFormaNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:href="mtrx-20181231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:href="mtrx-20181231.xsd#EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:href="mtrx-20181231.xsd#EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:href="mtrx-20181231.xsd#EarningsPerCommonShareNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:href="mtrx-20181231.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EquityDetails" xlink:href="mtrx-20181231.xsd#EquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EquityNotes" xlink:href="mtrx-20181231.xsd#EquityNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:href="mtrx-20181231.xsd#IncomeTaxesIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:href="mtrx-20181231.xsd#IncomeTaxesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:href="mtrx-20181231.xsd#IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueDetails" xlink:href="mtrx-20181231.xsd#RevenueRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueNotes" xlink:href="mtrx-20181231.xsd#RevenueRevenueNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueTables" xlink:href="mtrx-20181231.xsd#RevenueRevenueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:href="mtrx-20181231.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:href="mtrx-20181231.xsd#SegmentInformationResultsOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:href="mtrx-20181231.xsd#SegmentInformationTables" 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/AcquisitionsTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_DBEC96DA44895F0180C054D827F3E5E8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_C6816D2F8781574AAEFA9FC3AD3F4843" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_DBEC96DA44895F0180C054D827F3E5E8" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_C6816D2F8781574AAEFA9FC3AD3F4843" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_E25BA6D92AB2513F99B76380362E8A6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_C6816D2F8781574AAEFA9FC3AD3F4843" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_E25BA6D92AB2513F99B76380362E8A6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2A642C90F24356240D14F3CBBFF014E3_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E25BA6D92AB2513F99B76380362E8A6D" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2A642C90F24356240D14F3CBBFF014E3_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E25BA6D92AB2513F99B76380362E8A6D" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_84E6373DA85B571086D0336C2EE60F11" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:to="loc_mtrx_HDBInc.Member_84E6373DA85B571086D0336C2EE60F11" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_3571F79218975637A9FEE7983C24591B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_3571F79218975637A9FEE7983C24591B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_7D6A9D76002B524999F7D267AA7D1D0F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_7D6A9D76002B524999F7D267AA7D1D0F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_987772DF6887518FBDC4135EAD6E608B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:to="loc_mtrx_HoustonInterestsLLCMember_987772DF6887518FBDC4135EAD6E608B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_03F4E20A6EAA5656A71A9F9ABA657578" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B3DBD95CF4835040BBF35CC0A2A8F7DF" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_03F4E20A6EAA5656A71A9F9ABA657578" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ConsiderationtransferredTableTextBlock" xlink:label="loc_mtrx_ConsiderationtransferredTableTextBlock_7A6D85D572D15758B5421F955A4A9B06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_DBEC96DA44895F0180C054D827F3E5E8" xlink:to="loc_mtrx_ConsiderationtransferredTableTextBlock_7A6D85D572D15758B5421F955A4A9B06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_A26D7267587C5F3BBAB30A9B5D2FE8B4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_DBEC96DA44895F0180C054D827F3E5E8" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_A26D7267587C5F3BBAB30A9B5D2FE8B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationTextBlock" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_2C6A01D39C645C688D668D660D9D3CD4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_DBEC96DA44895F0180C054D827F3E5E8" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_2C6A01D39C645C688D668D660D9D3CD4" 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/BasisOfPresentationRevenueRecognitionPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_7BD7085A05C053C2939F3BFB01A040B9" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_7308D791AB9D56E8A34100F5628F0C09" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_7BD7085A05C053C2939F3BFB01A040B9" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_7308D791AB9D56E8A34100F5628F0C09" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PowerGenerationProjectAxis" xlink:label="loc_mtrx_PowerGenerationProjectAxis_DC6FC8253D095D06B459B0C5E692D36A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_7308D791AB9D56E8A34100F5628F0C09" xlink:to="loc_mtrx_PowerGenerationProjectAxis_DC6FC8253D095D06B459B0C5E692D36A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_39A9447799148FFDAB4EEEDAB7FA35A5_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_DC6FC8253D095D06B459B0C5E692D36A" xlink:to="loc_mtrx_PowerGenerationProjectDomain_39A9447799148FFDAB4EEEDAB7FA35A5_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_3E6F2F06BD1A536E88F11CBCF53ADB59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_DC6FC8253D095D06B459B0C5E692D36A" xlink:to="loc_mtrx_PowerGenerationProjectDomain_3E6F2F06BD1A536E88F11CBCF53ADB59" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_08A9E01F61135ACB9D791F1486DB55BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_3E6F2F06BD1A536E88F11CBCF53ADB59" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_08A9E01F61135ACB9D791F1486DB55BE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ClaimOnPowerGenerationProjectMember" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_5E0096E1AB2E5E508EBF6319F1B09006" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_3E6F2F06BD1A536E88F11CBCF53ADB59" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_5E0096E1AB2E5E508EBF6319F1B09006" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnapprovedChangeOrdersAmount" xlink:label="loc_us-gaap_UnapprovedChangeOrdersAmount_BAA6EF3FADC25A9A859B195A2EF08383" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_7BD7085A05C053C2939F3BFB01A040B9" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_BAA6EF3FADC25A9A859B195A2EF08383" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_724C9A7FA2A5A335EBB5C93A2F1AC419" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_E5D4A9F9CBC71BBDFF07C93A2F172B24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_724C9A7FA2A5A335EBB5C93A2F1AC419" xlink:to="loc_us-gaap_StatementTable_E5D4A9F9CBC71BBDFF07C93A2F172B24" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_5BA6B14BFCF7189AA2D4C93A2F17DF57" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_E5D4A9F9CBC71BBDFF07C93A2F172B24" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_5BA6B14BFCF7189AA2D4C93A2F17DF57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_5BA6B14BFCF7189AA2D4C93A2F17DF57" xlink:to="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_5BA6B14BFCF7189AA2D4C93A2F17DF57" xlink:to="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_9BACFB6D7D1411BCADABC93A2F188DA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_CommonStockMember_9BACFB6D7D1411BCADABC93A2F188DA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_78B1CA6EED147164875AC93A2F196CA8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_78B1CA6EED147164875AC93A2F196CA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_372A3B13C6A87C93928DC93A2F19A816" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_RetainedEarningsMember_372A3B13C6A87C93928DC93A2F19A816" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_183EC9323F9EABF757C8C93A2F198AE0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_TreasuryStockMember_183EC9323F9EABF757C8C93A2F198AE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F602D2D2FE359D9FB671C93A2F1A5AFF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F602D2D2FE359D9FB671C93A2F1A5AFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_4457F8E9E79A7124E57DC93A2F1A8BA4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5283B9638C925935689DC93A2F181DCD" xlink:to="loc_us-gaap_NoncontrollingInterestMember_4457F8E9E79A7124E57DC93A2F1A8BA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_724C9A7FA2A5A335EBB5C93A2F1AC419" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_217EAF13C931688352DDC93A2F1BE04B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_217EAF13C931688352DDC93A2F1BE04B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Beginningequitybalancesasadjusted" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_98709152719E75A1C9F0C93A2F1BD5E0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_98709152719E75A1C9F0C93A2F1BD5E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_004C7712643570553F9CC93A2F1B9A9A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_004C7712643570553F9CC93A2F1B9A9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_1DE617EC05F0A9C25391C93A2F1B590A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_1DE617EC05F0A9C25391C93A2F1B590A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_6EE65DC4CECEDC777ACBC93A2F1B0EC5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_ProfitLoss_6EE65DC4CECEDC777ACBC93A2F1B0EC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_7D625B2B4C2034EAF069C93A2F1C4274" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_7D625B2B4C2034EAF069C93A2F1C4274" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_526F99B9BEED1A01EBE2C93A2F1DFE41" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_526F99B9BEED1A01EBE2C93A2F1DFE41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_89E3D49B74F8DB689BE6C93A2F1C6F05" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_89E3D49B74F8DB689BE6C93A2F1C6F05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_FC5F0E2D706F61ED6DE9C93A2F1CBDFB" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_FC5F0E2D706F61ED6DE9C93A2F1CBDFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_7D4645A2CC8AE70ED64DC93A2F1CA044" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_7D4645A2CC8AE70ED64DC93A2F1CA044" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireInterestInJointVenture" xlink:label="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_EF133396C6D0058545FBC93A2F1DF9B8" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_EF133396C6D0058545FBC93A2F1DF9B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_12C0428AAC7FC90C8E0FC93A2F1D5224" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_12C0428AAC7FC90C8E0FC93A2F1D5224" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_OtherTreasurySharePurchases" xlink:label="loc_mtrx_OtherTreasurySharePurchases_E377B2F7811F54981426C93A2F1D32C1" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_mtrx_OtherTreasurySharePurchases_E377B2F7811F54981426C93A2F1D32C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_7661A322B01380026F85C93A2F1DADB7" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_7661A322B01380026F85C93A2F1DADB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_856770FCB5E01854905AC93A2F1DE717" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_DE72D36F8A1125148221C93A2F1ADDA3" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_856770FCB5E01854905AC93A2F1DE717" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_A79A91E63D0E6869FC63C4321CE7EA77" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_us-gaap_StatementTable_A79A91E63D0E6869FC63C4321CE7EA77" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_714623BF43C895850FF2C4321CE73A94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_A79A91E63D0E6869FC63C4321CE7EA77" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_714623BF43C895850FF2C4321CE73A94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_714623BF43C895850FF2C4321CE73A94" xlink:to="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_714623BF43C895850FF2C4321CE73A94" xlink:to="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_FDA0BA415135816E3B0CC4321CE7EF70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_FDA0BA415135816E3B0CC4321CE7EF70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_1B1631349B047BEA1AFAC4321CE7C4CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_F306103257CBF9219AD3C4321CE7D208" xlink:to="loc_us-gaap_TreasuryStockMember_1B1631349B047BEA1AFAC4321CE7C4CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_AF84BAF8A6042FA5F5A7C4321CE7A8CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_AF84BAF8A6042FA5F5A7C4321CE7A8CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_60FA698DA9BBF384585FC4321CE7BA6B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_60FA698DA9BBF384585FC4321CE7BA6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_27A391185FA6A955AE71C4321CE7B6B5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_27A391185FA6A955AE71C4321CE7B6B5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_DeferredSharesIssued" xlink:label="loc_mtrx_DeferredSharesIssued_85AEDCCBF41665CD06C4C4321CE75513" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_mtrx_DeferredSharesIssued_85AEDCCBF41665CD06C4C4321CE75513" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_OtherTreasurySharesAcquired" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_7B0E36161573E3BFAC73C4321CE79A40" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_CA2FFC2DEB5AF4F5F4FEC4321CE72262" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_7B0E36161573E3BFAC73C4321CE79A40" 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/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable" xlink:label="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_DC97835A3C515AFDBB6F50594744DB15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_DC97835A3C515AFDBB6F50594744DB15" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_64FE467A28E05AA09184CF7113369A38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_DC97835A3C515AFDBB6F50594744DB15" xlink:to="loc_us-gaap_VariableRateAxis_64FE467A28E05AA09184CF7113369A38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_BF4376A07D173FC923ABEEDABA23967E_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_64FE467A28E05AA09184CF7113369A38" xlink:to="loc_us-gaap_VariableRateDomain_BF4376A07D173FC923ABEEDABA23967E_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_A5B276F12DBF5EB39ACF1C328EEA0C13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_64FE467A28E05AA09184CF7113369A38" xlink:to="loc_us-gaap_VariableRateDomain_A5B276F12DBF5EB39ACF1C328EEA0C13" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_CdorRateMember" xlink:label="loc_mtrx_CdorRateMember_2DA2E45857155C74A5F4B7623C7413A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_A5B276F12DBF5EB39ACF1C328EEA0C13" xlink:to="loc_mtrx_CdorRateMember_2DA2E45857155C74A5F4B7623C7413A9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_CanadianPrimeRateMember" xlink:label="loc_mtrx_CanadianPrimeRateMember_BF2C30A219AB590CBAF02332731DD1CC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_A5B276F12DBF5EB39ACF1C328EEA0C13" xlink:to="loc_mtrx_CanadianPrimeRateMember_BF2C30A219AB590CBAF02332731DD1CC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_DebtAmendmentMember" xlink:label="loc_mtrx_DebtAmendmentMember_DE9C243E1FAE5423B1C9857EE07C073A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_A5B276F12DBF5EB39ACF1C328EEA0C13" xlink:to="loc_mtrx_DebtAmendmentMember_DE9C243E1FAE5423B1C9857EE07C073A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_7974DC861B9552B19269D4B10A699606" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_DC97835A3C515AFDBB6F50594744DB15" xlink:to="loc_srt_RangeAxis_7974DC861B9552B19269D4B10A699606" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_EB1BDFE60B9EA64504DFEEDABA25BA29_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_7974DC861B9552B19269D4B10A699606" xlink:to="loc_srt_RangeMember_EB1BDFE60B9EA64504DFEEDABA25BA29_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_CB5AB3BE7A2B513996363837A4165B7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_7974DC861B9552B19269D4B10A699606" xlink:to="loc_srt_RangeMember_CB5AB3BE7A2B513996363837A4165B7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_AC7D576FBC5C511E97792A7D2E71D0B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CB5AB3BE7A2B513996363837A4165B7B" xlink:to="loc_srt_MinimumMember_AC7D576FBC5C511E97792A7D2E71D0B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_8611CD0CB4BB5965BCD8C846B2596B3D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CB5AB3BE7A2B513996363837A4165B7B" xlink:to="loc_srt_MaximumMember_8611CD0CB4BB5965BCD8C846B2596B3D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_CreditAgreementTerm" xlink:label="loc_mtrx_CreditAgreementTerm_E20981162D255F3A8C57AA1EABD7D3E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_CreditAgreementTerm_E20981162D255F3A8C57AA1EABD7D3E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_559E4148551C5B7AA9A2578F1247177C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_559E4148551C5B7AA9A2578F1247177C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_A378208CC24F5082AF8A8C99986E231A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_A378208CC24F5082AF8A8C99986E231A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_78D29AC5406550C08DA172006750A76A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_78D29AC5406550C08DA172006750A76A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_293E30FC61A3508FAB4F8FAC37FB4726" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_293E30FC61A3508FAB4F8FAC37FB4726" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SeniorLeverageRatioMax" xlink:label="loc_mtrx_SeniorLeverageRatioMax_BC4734FF315356578D5B67D4068A737E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_SeniorLeverageRatioMax_BC4734FF315356578D5B67D4068A737E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SeniorLeverageRatioMin" xlink:label="loc_mtrx_SeniorLeverageRatioMin_4C89BAF272C25C15A94B6F547F3E85DF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_SeniorLeverageRatioMin_4C89BAF272C25C15A94B6F547F3E85DF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_FixedChargeCoverageRatioMaximum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_68CD2A98DCFA53948811EE094EAE1048" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_68CD2A98DCFA53948811EE094EAE1048" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_FixedChargeCoverageRatioMinimum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_38984BCCD8B9593893B70C01EC0C16B9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_38984BCCD8B9593893B70C01EC0C16B9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_AmountOfLimitOnAssetDispositions" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_4EF79E6C42065768B1D6684404B79E7F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_4EF79E6C42065768B1D6684404B79E7F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_9079FDAA1A125383917701D75B41F2DD" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_9079FDAA1A125383917701D75B41F2DD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_40557A4C6AD65555BFBA8B5CB631E4A9" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_40557A4C6AD65555BFBA8B5CB631E4A9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_22C159C856165D4EA97E23A1AB58CD6A" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_22C159C856165D4EA97E23A1AB58CD6A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_6BAD7668D7355C228326B71B2EA43ECB" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_6BAD7668D7355C228326B71B2EA43ECB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_6A2826E003D05AAFB452230BB37C4D2A" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_6A2826E003D05AAFB452230BB37C4D2A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Sublimitonlettersofcreditunderthecreditfacility" xlink:label="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_D207975A2D895C9C9B95EC5C34AFEC03" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_D207975A2D895C9C9B95EC5C34AFEC03" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_83FEEE9525595DEB8A45759564BB646D" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_83FEEE9525595DEB8A45759564BB646D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_5E3723BF14A55576AA2B4B732F044ED3" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_5E3723BF14A55576AA2B4B732F044ED3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_BC6007E9DF9657CE8F5030C86B8FA247" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_BC6007E9DF9657CE8F5030C86B8FA247" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_253BE7D01C235049A2378F45F8AB9859" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_253BE7D01C235049A2378F45F8AB9859" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_15975D80EFA95BA18F3DD16874996EBE" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_15975D80EFA95BA18F3DD16874996EBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentDescriptionOfVariableRateBasis" xlink:label="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_A1028531B1465FB982AB7AFE48005DAA" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_A1028531B1465FB982AB7AFE48005DAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_144FEF201AA95E919F105E31835A88EE" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_144FEF201AA95E919F105E31835A88EE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LineOfCreditFacilityCanadianPrimeRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_0D3A96174E7558CCBC087A76B8EA787A" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_0D3A96174E7558CCBC087A76B8EA787A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6C26AEF778EA5457900AF803A83BF2B7" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6C26AEF778EA5457900AF803A83BF2B7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_MaximumLimitOfConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_F9940ED52EF55EDC80496506F09D3A09" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_F9940ED52EF55EDC80496506F09D3A09" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement" xlink:label="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_BB6D3DD2A0DF5C65A14F322B31205E62" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_BB6D3DD2A0DF5C65A14F322B31205E62" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_ConsolidatedFundedIndebtedness_C7AAE3B41E8D54BBB86F873B917F9CFE" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_ConsolidatedFundedIndebtedness_C7AAE3B41E8D54BBB86F873B917F9CFE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_MinimumConsolidatedEBITDARequired" xlink:label="loc_mtrx_MinimumConsolidatedEBITDARequired_711269EEAA1554A39F5C7271D49D94BF" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_MinimumConsolidatedEBITDARequired_711269EEAA1554A39F5C7271D49D94BF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_RestrictedPaymentsUnderCreditAmendment" xlink:label="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_2D4E1D4F344E55F88325297DBDCCD607" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_2D4E1D4F344E55F88325297DBDCCD607" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_DC37217AB6CD5B02B65CFEB28D9D22EE" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_DC37217AB6CD5B02B65CFEB28D9D22EE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_0D8B11A9C2415FA1A43364D8B402F608" xlink:type="locator" />
    <link:definitionArc order="32" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_0D8B11A9C2415FA1A43364D8B402F608" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_DividendRestrictionUnderCreditAgreement" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreement_73E0745761AD50C5985C105D03FC03CB" xlink:type="locator" />
    <link:definitionArc order="33" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreement_73E0745761AD50C5985C105D03FC03CB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_DividendRestrictionUnderCreditAgreementAmount" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_9F4F3B98B6EF59839E58F99E6EA855C8" xlink:type="locator" />
    <link:definitionArc order="34" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_020AB848D64F571498D72B04C0ABC6CA" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_9F4F3B98B6EF59839E58F99E6EA855C8" 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/DisposalsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B152B1A498EF53178DDC32CF0B42CDED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B152B1A498EF53178DDC32CF0B42CDED" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_99DCE566B7FE50F69A1CDE0CC6818F8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B152B1A498EF53178DDC32CF0B42CDED" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_99DCE566B7FE50F69A1CDE0CC6818F8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A6DF87D03DC9210E9369F3CBBFB58872_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99DCE566B7FE50F69A1CDE0CC6818F8C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A6DF87D03DC9210E9369F3CBBFB58872_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F04C7FFA21C8573785A9370898637A24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99DCE566B7FE50F69A1CDE0CC6818F8C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F04C7FFA21C8573785A9370898637A24" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_849AB484C150569C8042625BFA48B276" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F04C7FFA21C8573785A9370898637A24" xlink:to="loc_mtrx_HoustonInterestsLLCMember_849AB484C150569C8042625BFA48B276" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_0575A061B64C59D2A4DE53F482002A87" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F04C7FFA21C8573785A9370898637A24" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_0575A061B64C59D2A4DE53F482002A87" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_871B8320CA605C049081AA1E68BE426B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F04C7FFA21C8573785A9370898637A24" xlink:to="loc_mtrx_HDBInc.Member_871B8320CA605C049081AA1E68BE426B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_DDC9B1444302500299B842591C05CE6B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_DDC9B1444302500299B842591C05CE6B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Cashpaidforequityinterest" xlink:label="loc_mtrx_Cashpaidforequityinterest_75399DCFF6CE5F49AA7BBE562FD543D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_mtrx_Cashpaidforequityinterest_75399DCFF6CE5F49AA7BBE562FD543D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_1FFFD53CAEB15D9A9A452D7CE1526E20" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_1FFFD53CAEB15D9A9A452D7CE1526E20" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts" xlink:label="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_586E23A82FF05013ADEFAA5386966698" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_586E23A82FF05013ADEFAA5386966698" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_688428F194A5582582DDC3121D64E067" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_688428F194A5582582DDC3121D64E067" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_1C61BD59B3C659CD90E157864D81411B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_1C61BD59B3C659CD90E157864D81411B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_EA2AC4C58A8D53C0B9F41498C057AAA6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_EA2AC4C58A8D53C0B9F41498C057AAA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_9A53F3B32E6254AB9BBFB5CEDD7DA629" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_9A53F3B32E6254AB9BBFB5CEDD7DA629" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_D311B92FA14350FDA7E19717A4F2A1EE" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_D311B92FA14350FDA7E19717A4F2A1EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_A9FD2DF4598553D6ADED6636FB96D075" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_A9FD2DF4598553D6ADED6636FB96D075" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_362718C4638F5BC6BB4918E1BACF5D96" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_362718C4638F5BC6BB4918E1BACF5D96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_EB4C2FAB45E75E58B4E13BDE1CBC21AA" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_EB4C2FAB45E75E58B4E13BDE1CBC21AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_A4883B21C8EC5406AB064EF950854217" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_A4883B21C8EC5406AB064EF950854217" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings" xlink:label="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_85EC8A489EBF5F00ACF40CB6CF90CC5E" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_85EC8A489EBF5F00ACF40CB6CF90CC5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_08655F22F3465A7FADB5A43A215F8A94" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_08655F22F3465A7FADB5A43A215F8A94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_710BB6F114705026837A3B9F214F1F5F" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_710BB6F114705026837A3B9F214F1F5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_EBFD57EC0D955552B8B6A6F2001EBA23" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_EBFD57EC0D955552B8B6A6F2001EBA23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_A9F1EA7108715436ABADD2FDD90CFCA0" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_A9F1EA7108715436ABADD2FDD90CFCA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_3A12C77BF2DF5272926B9918D199EEBA" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_3A12C77BF2DF5272926B9918D199EEBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_6D3E23C044D653FBAD8D071EABF87E7C" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_6D3E23C044D653FBAD8D071EABF87E7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_02E58D9B70295662BB24E9BAC43C22B9" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_02E58D9B70295662BB24E9BAC43C22B9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Warrantyreserveworkingcapitalprovision" xlink:label="loc_mtrx_Warrantyreserveworkingcapitalprovision_2681BBBB5E3C567597612157D30E5F00" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_mtrx_Warrantyreserveworkingcapitalprovision_2681BBBB5E3C567597612157D30E5F00" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Settlementofwarrantyreserve" xlink:label="loc_mtrx_Settlementofwarrantyreserve_0F50E3C4A3365CEAB3114007BC44E2CB" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_525EBF36BBB75AD6BB8D774A49C09F93" xlink:to="loc_mtrx_Settlementofwarrantyreserve_0F50E3C4A3365CEAB3114007BC44E2CB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DisposalsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_102C749AF6C3552A825BBE17CDF34704" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_102C749AF6C3552A825BBE17CDF34704" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_0B6F99013E9D522F83D5D87FF757D547" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_102C749AF6C3552A825BBE17CDF34704" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0B6F99013E9D522F83D5D87FF757D547" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E2307E719697F75C7A1F3CBBF656956_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0B6F99013E9D522F83D5D87FF757D547" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E2307E719697F75C7A1F3CBBF656956_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_825D0296C422507BA1ACA1C8B679536C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0B6F99013E9D522F83D5D87FF757D547" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_825D0296C422507BA1ACA1C8B679536C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_677C4020776A5DD1A46C52E2EEB166F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_825D0296C422507BA1ACA1C8B679536C" xlink:to="loc_mtrx_HoustonInterestsLLCMember_677C4020776A5DD1A46C52E2EEB166F9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_FAE0939470F15FF3AD00976046C52C2F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_825D0296C422507BA1ACA1C8B679536C" xlink:to="loc_mtrx_HDBInc.Member_FAE0939470F15FF3AD00976046C52C2F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_711074E723065C26AFCC215154A07D1E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_825D0296C422507BA1ACA1C8B679536C" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_711074E723065C26AFCC215154A07D1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" xlink:label="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_918B681B1D175968B46D670EF04DDA58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_918B681B1D175968B46D670EF04DDA58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionNameOfAcquiredEntity" xlink:label="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_22835D72F3BC5D5C808E76BBE2EA16AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_22835D72F3BC5D5C808E76BBE2EA16AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_DB4DAF98561E5F50AC6195FD1C0B3B48" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_DB4DAF98561E5F50AC6195FD1C0B3B48" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_621313B8BED45A14A50993784E53CDE6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_621313B8BED45A14A50993784E53CDE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnSaleOfBusiness" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_0C8D5DA2F49B50B3BCF091B90A7BB679" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_0C8D5DA2F49B50B3BCF091B90A7BB679" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Workingcapitalpaymentmadeinperiodnotpresented" xlink:label="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_6D6FE3471B635F6A93D2E8AD58B45A8D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_6D6FE3471B635F6A93D2E8AD58B45A8D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Economicpurchaseprice" xlink:label="loc_mtrx_Economicpurchaseprice_F484CAAE1D4D5923B4561EDB6126215E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_mtrx_Economicpurchaseprice_F484CAAE1D4D5923B4561EDB6126215E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_BBCBA903D83A5911BC5871C6D4B466D0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0497088E53B356C2AB39C5C8A1A753AC" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_BBCBA903D83A5911BC5871C6D4B466D0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DisposalsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DisposalsProFormaDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B0807E847963596DA70E787E7F9F4F15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B0807E847963596DA70E787E7F9F4F15" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_2A691F25EEDF52D290B66DB3D0FFB8FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B0807E847963596DA70E787E7F9F4F15" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_2A691F25EEDF52D290B66DB3D0FFB8FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E8C5D990E7D1AF21192FF3CBBF46D291_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2A691F25EEDF52D290B66DB3D0FFB8FF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E8C5D990E7D1AF21192FF3CBBF46D291_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_237D0727E2CA59458DEBA077C62E457E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2A691F25EEDF52D290B66DB3D0FFB8FF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_237D0727E2CA59458DEBA077C62E457E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_A46CAB09E11C5566800CB5183179EEFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_237D0727E2CA59458DEBA077C62E457E" xlink:to="loc_mtrx_HoustonInterestsLLCMember_A46CAB09E11C5566800CB5183179EEFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_DE52493C294159AFA53FB10C7CA0E2FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_DE52493C294159AFA53FB10C7CA0E2FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_0A3C28B3A77456659E761782A85EEB14" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_0A3C28B3A77456659E761782A85EEB14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_E8CE11953A6C57CF9EFD1521B13AD82C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_E8CE11953A6C57CF9EFD1521B13AD82C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_2D67D78ECC525DF4BC8E76D72D651B19" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BB11D0ACF4CD5E868D82558AF4070DAC" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_2D67D78ECC525DF4BC8E76D72D651B19" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DisposalsProFormaNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_6AF25BBC8A0C5E15B1D745350109DCED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_6AF25BBC8A0C5E15B1D745350109DCED" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_11DCD981A00D5DEF8F1855D359CDAD3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_6AF25BBC8A0C5E15B1D745350109DCED" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_11DCD981A00D5DEF8F1855D359CDAD3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DABD39143F88506F3083F3CBBF2A45D9_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_11DCD981A00D5DEF8F1855D359CDAD3A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DABD39143F88506F3083F3CBBF2A45D9_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2AAEA0FF71D45112A23A1E2C624DA32E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_11DCD981A00D5DEF8F1855D359CDAD3A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2AAEA0FF71D45112A23A1E2C624DA32E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_CF91B552A09F5E26AC83A5505D639839" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2AAEA0FF71D45112A23A1E2C624DA32E" xlink:to="loc_mtrx_HoustonInterestsLLCMember_CF91B552A09F5E26AC83A5505D639839" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Proformaacquisitioncosts" xlink:label="loc_mtrx_Proformaacquisitioncosts_8F9137EA2B3150CBA20A9F6850A76CFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_mtrx_Proformaacquisitioncosts_8F9137EA2B3150CBA20A9F6850A76CFC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Proformaacquisitioncostsamortizedovertime" xlink:label="loc_mtrx_Proformaacquisitioncostsamortizedovertime_019E51964DA054E9A412A3F7BB08FE4D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_mtrx_Proformaacquisitioncostsamortizedovertime_019E51964DA054E9A412A3F7BB08FE4D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Proformainterestexpense" xlink:label="loc_mtrx_Proformainterestexpense_2F9FBB13FB105B5088FAF806F634C192" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_mtrx_Proformainterestexpense_2F9FBB13FB105B5088FAF806F634C192" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Proformadepreciationandamortizationexpense" xlink:label="loc_mtrx_Proformadepreciationandamortizationexpense_726791CB6AE659CD8221A52773B6D03B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_mtrx_Proformadepreciationandamortizationexpense_726791CB6AE659CD8221A52773B6D03B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Proformaincometaxexpense" xlink:label="loc_mtrx_Proformaincometaxexpense_0EFF8B2726C55E4494EA9274A10019F6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1FF04B41308E5ED29B9D7F6CB7A0AF56" xlink:to="loc_mtrx_Proformaincometaxexpense_0EFF8B2726C55E4494EA9274A10019F6" xlink:type="arc" />
  </link:definitionLink>
  <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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_BE36B0E28B29565FAA65160450916D1A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_34CB45D5A4A75E15B86BF6123F397A68" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_BE36B0E28B29565FAA65160450916D1A" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_34CB45D5A4A75E15B86BF6123F397A68" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8F57EA51863153C2AED31FDD2ABF79F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_34CB45D5A4A75E15B86BF6123F397A68" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8F57EA51863153C2AED31FDD2ABF79F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_884EE106CBC668CCE5D8EEDAB99A5A81_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8F57EA51863153C2AED31FDD2ABF79F6" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_884EE106CBC668CCE5D8EEDAB99A5A81_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F466F82394B75D21A23CAA0FA3CEC162" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_8F57EA51863153C2AED31FDD2ABF79F6" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F466F82394B75D21A23CAA0FA3CEC162" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_60B2C86401DF56D9A4847EC4095FDCBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F466F82394B75D21A23CAA0FA3CEC162" xlink:to="loc_us-gaap_EmployeeStockOptionMember_60B2C86401DF56D9A4847EC4095FDCBB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_NonvestedDeferredSharesMember" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_ECA68FC284C7506189A7E2B2CE41DEB9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F466F82394B75D21A23CAA0FA3CEC162" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_ECA68FC284C7506189A7E2B2CE41DEB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_742C428F81435FE6ADB085CE2D3D6F6B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_BE36B0E28B29565FAA65160450916D1A" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_742C428F81435FE6ADB085CE2D3D6F6B" 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/EquityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EquityNotes" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_045417E96E7EF095B367C4BEA246AD96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_045417E96E7EF095B367C4BEA246AD96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_045417E96E7EF095B367C4BEA246AD96" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_045417E96E7EF095B367C4BEA246AD96" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_33D76D86C96030D8254CC4BEA2568B63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_33D76D86C96030D8254CC4BEA2568B63" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_7D7ECC030F8592BD1E1CC4BEA256421A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73" xlink:to="loc_mtrx_HoustonInterestsLLCMember_7D7ECC030F8592BD1E1CC4BEA256421A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5B6C84A908720A9C5CB4C4BEA2569BD8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5B6C84A908720A9C5CB4C4BEA2569BD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_2AE9B4BD0A1A9B5F1165C4BEA2563679_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5B6C84A908720A9C5CB4C4BEA2569BD8" xlink:to="loc_us-gaap_SegmentDomain_2AE9B4BD0A1A9B5F1165C4BEA2563679_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_2AE9B4BD0A1A9B5F1165C4BEA2563679" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5B6C84A908720A9C5CB4C4BEA2569BD8" xlink:to="loc_us-gaap_SegmentDomain_2AE9B4BD0A1A9B5F1165C4BEA2563679" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_74F7DCEFF26BB3326661C4BEA256060C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:to="loc_srt_RangeAxis_74F7DCEFF26BB3326661C4BEA256060C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_74F7DCEFF26BB3326661C4BEA256060C" xlink:to="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_74F7DCEFF26BB3326661C4BEA256060C" xlink:to="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_973468D33C82C61FF323C4BEA256D1AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90" xlink:to="loc_srt_MinimumMember_973468D33C82C61FF323C4BEA256D1AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_FF0C07BB05343DD35A0AC4BEA2564B9C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90" xlink:to="loc_srt_MaximumMember_FF0C07BB05343DD35A0AC4BEA2564B9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_7FBF077D80C9B6E6EAF6C4BEA256BC0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_6D7160622F0A5BCC6919C4BEA2463A6F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_7FBF077D80C9B6E6EAF6C4BEA256BC0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_7FBF077D80C9B6E6EAF6C4BEA256BC0D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_7FBF077D80C9B6E6EAF6C4BEA256BC0D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntellectualPropertyMember" xlink:label="loc_us-gaap_IntellectualPropertyMember_A9F6684654A76EC518A9C4BEA256F5F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_us-gaap_IntellectualPropertyMember_A9F6684654A76EC518A9C4BEA256F5F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_69CA14968ADD6302BEACC4BEA256AFDE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_us-gaap_CustomerRelationshipsMember_69CA14968ADD6302BEACC4BEA256AFDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_0F1E521DEC9515560C1AC4BEA2565B84" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_0F1E521DEC9515560C1AC4BEA2565B84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_7B4F32D337DF756F0865C4BEA256DCB0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_us-gaap_TradeNamesMember_7B4F32D337DF756F0865C4BEA256DCB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_C47FDA591F41BA6F6D33C4BEA266A92A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_C47FDA591F41BA6F6D33C4BEA266A92A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_SMElectricTradeNameMember" xlink:label="loc_mtrx_SMElectricTradeNameMember_D34329774329625ED6EDC4BEA26638DB" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057" xlink:to="loc_mtrx_SMElectricTradeNameMember_D34329774329625ED6EDC4BEA26638DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue_3649FE5DBC6C63D6EEC6C4BEA2666EB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue_3649FE5DBC6C63D6EEC6C4BEA2666EB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_B07BEED70E2D39E0C4B9C4BEA266AA13" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_B07BEED70E2D39E0C4B9C4BEA266AA13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_9FF3456B4E7AFA9D0729C4BEA2662CEA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_9FF3456B4E7AFA9D0729C4BEA2662CEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_552CD16561CA472A0C58C4BEA266C9EE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_552CD16561CA472A0C58C4BEA266C9EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_546950F73F4E99DF2654C4BEA266082C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4784D51315703B7B7E16C4BEA2663415" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_546950F73F4E99DF2654C4BEA266082C" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_301DE0C034A548261EE0C93A2E7F5E51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_301DE0C034A548261EE0C93A2E7F5E51" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_05D55EE43496A0CF3B2CC93A2E7F8100" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_301DE0C034A548261EE0C93A2E7F5E51" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_05D55EE43496A0CF3B2CC93A2E7F8100" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_05D55EE43496A0CF3B2CC93A2E7F8100" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_05D55EE43496A0CF3B2CC93A2E7F8100" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_7725A97306CEBD5F7308C93A2E80335D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_7725A97306CEBD5F7308C93A2E80335D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_40DB038245D806E069F3C93A2E818AF9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DACF4B4FF6B419F08B3C93A2E802855" xlink:to="loc_mtrx_HoustonInterestsLLCMember_40DB038245D806E069F3C93A2E818AF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_2F6889256F510CD2147AC93A2E81E9AE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_301DE0C034A548261EE0C93A2E7F5E51" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_2F6889256F510CD2147AC93A2E81E9AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2F6889256F510CD2147AC93A2E81E9AE" xlink:to="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2F6889256F510CD2147AC93A2E81E9AE" xlink:to="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_BAE68FE98573ADA65A6FC93A2E81B8CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_mtrx_ElectricalInfrastructureMember_BAE68FE98573ADA65A6FC93A2E81B8CB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_1C5F162F2ABCC2326BA3C93A2E81C229" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_mtrx_OilGasAndChemicalMember_1C5F162F2ABCC2326BA3C93A2E81C229" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_55E3DA95C5DC0DBED77AC93A2E8294B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_mtrx_StorageSolutionsMember_55E3DA95C5DC0DBED77AC93A2E8294B7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_A0CAA778934DFCCD3D0AC93A2E8279CF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_mtrx_IndustrialMember_A0CAA778934DFCCD3D0AC93A2E8279CF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ReportingUnitMember" xlink:label="loc_mtrx_ReportingUnitMember_9EAB1FC1CA9EC129B077C93A2E82FA93" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_mtrx_ReportingUnitMember_9EAB1FC1CA9EC129B077C93A2E82FA93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_16F1DF9C098F0468A9A6C93A2E827988" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_90DC1412762C8DF908B1C93A2E81104C" xlink:to="loc_us-gaap_AllOtherSegmentsMember_16F1DF9C098F0468A9A6C93A2E827988" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_1CBE0897813950B93CAAC93A2E849E4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_GoodwillGross_1CBE0897813950B93CAAC93A2E849E4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_61024EF449FE5BAFF8A1C93A2E85B6D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_61024EF449FE5BAFF8A1C93A2E85B6D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_EC77298A97AEBD4693A4C93A2E854AFE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_Goodwill_EC77298A97AEBD4693A4C93A2E854AFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount" xlink:label="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_F5E000658AD598CEE418C93A2E85C007" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_F5E000658AD598CEE418C93A2E85C007" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_DAFFDB5693A0DCA452BDC93A2E830403" xlink:to="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_DA7C12C14D9A164B7DFDC93A2E86AAB0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_DA7C12C14D9A164B7DFDC93A2E86AAB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit" xlink:label="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_97FA7632ACEE561E8CB4C93A2E871F02" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:to="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_97FA7632ACEE561E8CB4C93A2E871F02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_8398BC518183BEB935D9C93A2E878E62" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_8398BC518183BEB935D9C93A2E878E62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_79DF114D1D2A1EDA4627C93A2E87CCE4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_68E9FFA4E6D90C9916CBC93A2E8641BD" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_79DF114D1D2A1EDA4627C93A2E87CCE4" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_38DD0F63A60F5062B49157A91ED295A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_38DD0F63A60F5062B49157A91ED295A8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_47ECDE466D145A7AA01A47E27029B242" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_38DD0F63A60F5062B49157A91ED295A8" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_47ECDE466D145A7AA01A47E27029B242" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_264BE97E71FCDF62D3E8EEDABB092B4E_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_47ECDE466D145A7AA01A47E27029B242" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_264BE97E71FCDF62D3E8EEDABB092B4E_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1A040F70AF4A5DE5A26336A22DD85C91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_47ECDE466D145A7AA01A47E27029B242" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1A040F70AF4A5DE5A26336A22DD85C91" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_9E368D7EE8ED5557A38C91D624E60C15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1A040F70AF4A5DE5A26336A22DD85C91" xlink:to="loc_mtrx_HoustonInterestsLLCMember_9E368D7EE8ED5557A38C91D624E60C15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DA68588C0C945567B4316AC2AF70BF89" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_38DD0F63A60F5062B49157A91ED295A8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DA68588C0C945567B4316AC2AF70BF89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6ABC94EC89E67F5540F3EEDABB0A3BCB_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DA68588C0C945567B4316AC2AF70BF89" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6ABC94EC89E67F5540F3EEDABB0A3BCB_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DA68588C0C945567B4316AC2AF70BF89" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntellectualPropertyMember" xlink:label="loc_us-gaap_IntellectualPropertyMember_7F1C4CFCC23751AEB3E9508BDA20293D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:to="loc_us-gaap_IntellectualPropertyMember_7F1C4CFCC23751AEB3E9508BDA20293D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_3183A27D50275B74A88428AC2B8FBE1D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:to="loc_us-gaap_CustomerRelationshipsMember_3183A27D50275B74A88428AC2B8FBE1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_C0EE2E566CFB55DA90905B6FAD656349" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_C0EE2E566CFB55DA90905B6FAD656349" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_532EDDEA9ACD55C1A11030E3DED7F4E8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9BCC8809D7D6514685F63B515C3BF253" xlink:to="loc_us-gaap_TradeNamesMember_532EDDEA9ACD55C1A11030E3DED7F4E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_CC44500513C55FFC9BB32D7F6AC60519" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_38DD0F63A60F5062B49157A91ED295A8" xlink:to="loc_srt_RangeAxis_CC44500513C55FFC9BB32D7F6AC60519" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_834FCC2F20B737258DD8EEDABB0C3D82_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_CC44500513C55FFC9BB32D7F6AC60519" xlink:to="loc_srt_RangeMember_834FCC2F20B737258DD8EEDABB0C3D82_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_097E37AFE40E54CFBCC213FF2EB55AE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_CC44500513C55FFC9BB32D7F6AC60519" xlink:to="loc_srt_RangeMember_097E37AFE40E54CFBCC213FF2EB55AE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_0A617DD37FB85D4A925B50389B439CED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_097E37AFE40E54CFBCC213FF2EB55AE4" xlink:to="loc_srt_MinimumMember_0A617DD37FB85D4A925B50389B439CED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_C9586AE23ED957B3B2043E87926AA9BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_097E37AFE40E54CFBCC213FF2EB55AE4" xlink:to="loc_srt_MaximumMember_C9586AE23ED957B3B2043E87926AA9BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_E826AD55E2915006A1270B90C622DDDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_E826AD55E2915006A1270B90C622DDDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_2B83BA49CA1C58A4816E054F79E11A40" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_2B83BA49CA1C58A4816E054F79E11A40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_173520031D485B3ABDF11260A74E98D4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_173520031D485B3ABDF11260A74E98D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_FF3A5FB2BEDD5809B2C40F0E4AE1959A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_FF3A5FB2BEDD5809B2C40F0E4AE1959A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IndefiniteLivedTradeNames" xlink:label="loc_us-gaap_IndefiniteLivedTradeNames_5C0B642F117D5EE2A2612F11DF77C2AA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_5C0B642F117D5EE2A2612F11DF77C2AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_7B12924799A25B22BE91D3A3BB299EE4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_7B12924799A25B22BE91D3A3BB299EE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_E5DFEDA927C650C7809B0E9718338D1E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_B15CD1AA0A5D52578374411027378512" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_E5DFEDA927C650C7809B0E9718338D1E" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_46AE68914BE6535BA1769C9BACCE15B6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_46AE68914BE6535BA1769C9BACCE15B6" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_57383F94199657D18FB964CB23432032" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_57383F94199657D18FB964CB23432032" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_15702F651ACEFD947A55EEDABAB6ACBD_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_57383F94199657D18FB964CB23432032" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_15702F651ACEFD947A55EEDABAB6ACBD_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_75B0844CFE7C5766B2D58FA175B7E877" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_57383F94199657D18FB964CB23432032" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_75B0844CFE7C5766B2D58FA175B7E877" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_5D11271652015E519475B644081EE94C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:to="loc_srt_ConsolidationItemsAxis_5D11271652015E519475B644081EE94C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_7F72CCD6361E277126C3EEDABAB786E7_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_5D11271652015E519475B644081EE94C" xlink:to="loc_srt_ConsolidationItemsDomain_7F72CCD6361E277126C3EEDABAB786E7_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_89036DD813B25BB798065049877CB976" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_5D11271652015E519475B644081EE94C" xlink:to="loc_srt_ConsolidationItemsDomain_89036DD813B25BB798065049877CB976" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_D0F79EA169175FF8A534D7F870FA6FD6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_D0F79EA169175FF8A534D7F870FA6FD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_81143B1DA517871EF32DEEDABAB71FE6_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D0F79EA169175FF8A534D7F870FA6FD6" xlink:to="loc_us-gaap_SegmentDomain_81143B1DA517871EF32DEEDABAB71FE6_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6BB7E658EA2A55728ED49E293D34D5BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D0F79EA169175FF8A534D7F870FA6FD6" xlink:to="loc_us-gaap_SegmentDomain_6BB7E658EA2A55728ED49E293D34D5BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_63A999E18F31577BBB222C7FB66B9853" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_143C07AFF2715B13A21CB8CB05AF6669" xlink:to="loc_srt_RangeAxis_63A999E18F31577BBB222C7FB66B9853" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_CD98D75C9691CE93B103EEDABAB885AA_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_63A999E18F31577BBB222C7FB66B9853" xlink:to="loc_srt_RangeMember_CD98D75C9691CE93B103EEDABAB885AA_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_BA76B0529A9F5779850A77A0C88B2BA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_63A999E18F31577BBB222C7FB66B9853" xlink:to="loc_srt_RangeMember_BA76B0529A9F5779850A77A0C88B2BA5" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_56CD2D8C30665D779466BC0FDE06CB23" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_56CD2D8C30665D779466BC0FDE06CB23" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3011BCC61F7F5E519C4ADD7DE0C2D837" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3011BCC61F7F5E519C4ADD7DE0C2D837" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_492EB438D6CFA7C38CEDEEDABB4BD613_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3011BCC61F7F5E519C4ADD7DE0C2D837" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_492EB438D6CFA7C38CEDEEDABB4BD613_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D47A57FF33935DDCB9BC351E3F72AC34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3011BCC61F7F5E519C4ADD7DE0C2D837" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_D47A57FF33935DDCB9BC351E3F72AC34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_76EBE19BF8DD57CBBB2EDDFF2D6C4B74" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:to="loc_srt_ConsolidationItemsAxis_76EBE19BF8DD57CBBB2EDDFF2D6C4B74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_9A8F0AE2AB2ECB5EDD5FEEDABB4CA955_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_76EBE19BF8DD57CBBB2EDDFF2D6C4B74" xlink:to="loc_srt_ConsolidationItemsDomain_9A8F0AE2AB2ECB5EDD5FEEDABB4CA955_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_D9EAE6584EFE57DF95927766B3DADDCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_76EBE19BF8DD57CBBB2EDDFF2D6C4B74" xlink:to="loc_srt_ConsolidationItemsDomain_D9EAE6584EFE57DF95927766B3DADDCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_074279171CA55A1C8DFF9DC35335D44E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_074279171CA55A1C8DFF9DC35335D44E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_453C65721E661383A495EEDABB4C42DD_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_074279171CA55A1C8DFF9DC35335D44E" xlink:to="loc_us-gaap_SegmentDomain_453C65721E661383A495EEDABB4C42DD_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_A43581F39B3651AE932C7D89A6D0D02E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_074279171CA55A1C8DFF9DC35335D44E" xlink:to="loc_us-gaap_SegmentDomain_A43581F39B3651AE932C7D89A6D0D02E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_5871636695B5562FAE367B08ED02F6E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1DBD779C942E5FDBA03FE2CCBA2771C6" xlink:to="loc_srt_RangeAxis_5871636695B5562FAE367B08ED02F6E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A9B61423BA9026832ACEEEDABB4DD0ED_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5871636695B5562FAE367B08ED02F6E3" xlink:to="loc_srt_RangeMember_A9B61423BA9026832ACEEEDABB4DD0ED_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_DCEB75BB569850E4A575C2DC6DE91EFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5871636695B5562FAE367B08ED02F6E3" xlink:to="loc_srt_RangeMember_DCEB75BB569850E4A575C2DC6DE91EFD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueRevenueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_D9DBFD0A2B49A76CBC9CC4B7433936A1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_3397165D55DD0D2237FEC4B74337CBF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_D9DBFD0A2B49A76CBC9CC4B7433936A1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_3397165D55DD0D2237FEC4B74337CBF1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_73903CC86B056CA6E292C4B743378F35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3397165D55DD0D2237FEC4B74337CBF1" xlink:to="loc_srt_StatementGeographicalAxis_73903CC86B056CA6E292C4B743378F35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_73903CC86B056CA6E292C4B743378F35" xlink:to="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_73903CC86B056CA6E292C4B743378F35" xlink:to="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_6141464746FDAA99E184C4B74338F54B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388" xlink:to="loc_country_US_6141464746FDAA99E184C4B74338F54B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA" xlink:label="loc_country_CA_28C886C117D038810E94C4B743387AF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388" xlink:to="loc_country_CA_28C886C117D038810E94C4B743387AF1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_OtherinternationalMember" xlink:label="loc_mtrx_OtherinternationalMember_9BC52628652421520214C4B743390762" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388" xlink:to="loc_mtrx_OtherinternationalMember_9BC52628652421520214C4B743390762" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_53C6E29C12FF694CD58DC4B74339441F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_D9DBFD0A2B49A76CBC9CC4B7433936A1" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_53C6E29C12FF694CD58DC4B74339441F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueRevenueNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueRevenueTables" xlink:type="extended" />
  <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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1B0A36FB04865FD689FC9A962DE33F06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1B0A36FB04865FD689FC9A962DE33F06" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_47878E186F3D5DE088FD1A991D306F05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1B0A36FB04865FD689FC9A962DE33F06" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_47878E186F3D5DE088FD1A991D306F05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DEB6F152AE9FD7707CDBEEDABA80C3E3_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_47878E186F3D5DE088FD1A991D306F05" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DEB6F152AE9FD7707CDBEEDABA80C3E3_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C70045906F425C02A8D040AAE3A46295" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_47878E186F3D5DE088FD1A991D306F05" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C70045906F425C02A8D040AAE3A46295" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_C55A40AD5E8C582C9A19BD3151262795" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C70045906F425C02A8D040AAE3A46295" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_C55A40AD5E8C582C9A19BD3151262795" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_1C45DE028172558E93D128A8124F2C59" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1B0A36FB04865FD689FC9A962DE33F06" xlink:to="loc_srt_ConsolidationItemsAxis_1C45DE028172558E93D128A8124F2C59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_549B853D0E908813B76DEEDABA8105D3_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_1C45DE028172558E93D128A8124F2C59" xlink:to="loc_srt_ConsolidationItemsDomain_549B853D0E908813B76DEEDABA8105D3_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_FFCCEFBE233E5082AE5F05858301B670" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_1C45DE028172558E93D128A8124F2C59" xlink:to="loc_srt_ConsolidationItemsDomain_FFCCEFBE233E5082AE5F05858301B670" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_132CEEA69EDC5A8A95527614864E8880" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_FFCCEFBE233E5082AE5F05858301B670" xlink:to="loc_us-gaap_IntersegmentEliminationMember_132CEEA69EDC5A8A95527614864E8880" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8AC59B666305593D9349E04E3B6D99F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1B0A36FB04865FD689FC9A962DE33F06" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8AC59B666305593D9349E04E3B6D99F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_9C8D4867F442BE1B0EFBEEDABA815069_AD159C7EF1F557858C78A78FD7883138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8AC59B666305593D9349E04E3B6D99F4" xlink:to="loc_us-gaap_SegmentDomain_9C8D4867F442BE1B0EFBEEDABA815069_AD159C7EF1F557858C78A78FD7883138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8AC59B666305593D9349E04E3B6D99F4" xlink:to="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_EC1B04C373EB517592563D2B3E018895" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:to="loc_mtrx_ElectricalInfrastructureMember_EC1B04C373EB517592563D2B3E018895" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_1CE370FAC8525628BC9588AA1959884E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:to="loc_mtrx_OilGasAndChemicalMember_1CE370FAC8525628BC9588AA1959884E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_0BE4C3B9851F59FC93BB1C3B12624BE9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:to="loc_mtrx_StorageSolutionsMember_0BE4C3B9851F59FC93BB1C3B12624BE9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_4F9BCD83813A528CB355C4FA1A1838A4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:to="loc_mtrx_IndustrialMember_4F9BCD83813A528CB355C4FA1A1838A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_778C7F44CF375A9F9EB5C5C501D517A3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_48860926714E5E4EB1170B95030A995F" xlink:to="loc_us-gaap_AllOtherSegmentsMember_778C7F44CF375A9F9EB5C5C501D517A3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20181231.xsd#mtrx_Grossrevenues" xlink:label="loc_mtrx_Grossrevenues_5F34B5709A90592B9D8B3808A91AD637" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_mtrx_Grossrevenues_5F34B5709A90592B9D8B3808A91AD637" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_5EF4BF8466AC5B8CAAF9EF6A13969041" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_us-gaap_Revenues_5EF4BF8466AC5B8CAAF9EF6A13969041" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_BFFACEE1338556FC9AA2C8CADB0152DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_us-gaap_GrossProfit_BFFACEE1338556FC9AA2C8CADB0152DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_BA3071C289815D45866B6D87C0F2DF73" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_us-gaap_OperatingIncomeLoss_BA3071C289815D45866B6D87C0F2DF73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_7CBFA60B94035DB390D21BFDAC3F2BBC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_4E2CBFF24C5655FC8D87FA6AA2A099E6" xlink:to="loc_us-gaap_Assets_7CBFA60B94035DB390D21BFDAC3F2BBC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" />
</link:linkbase>
