<?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-20190331.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:href="mtrx-20190331.xsd#BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:href="mtrx-20190331.xsd#BasisOfPresentationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationRevenueRecognitionPolicies" xlink:href="mtrx-20190331.xsd#BasisOfPresentationRevenueRecognitionPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="mtrx-20190331.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:href="mtrx-20190331.xsd#CommitmentsAndContingenciesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:href="mtrx-20190331.xsd#CondensedConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:href="mtrx-20190331.xsd#DebtAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:href="mtrx-20190331.xsd#DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:href="mtrx-20190331.xsd#DebtNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:href="mtrx-20190331.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsDisposalsDetails" xlink:href="mtrx-20190331.xsd#DisposalsDisposalsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsNarrativeDetails" xlink:href="mtrx-20190331.xsd#DisposalsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsNotes" xlink:href="mtrx-20190331.xsd#DisposalsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsProFormaDetails" xlink:href="mtrx-20190331.xsd#DisposalsProFormaDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DisposalsProFormaNarrativeDetails" xlink:href="mtrx-20190331.xsd#DisposalsProFormaNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:href="mtrx-20190331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:href="mtrx-20190331.xsd#EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:href="mtrx-20190331.xsd#EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:href="mtrx-20190331.xsd#EarningsPerCommonShareNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:href="mtrx-20190331.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:href="mtrx-20190331.xsd#IncomeTaxesIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:href="mtrx-20190331.xsd#IncomeTaxesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:href="mtrx-20190331.xsd#IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueDetails" xlink:href="mtrx-20190331.xsd#RevenueRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueNotes" xlink:href="mtrx-20190331.xsd#RevenueRevenueNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueRevenueTables" xlink:href="mtrx-20190331.xsd#RevenueRevenueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:href="mtrx-20190331.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:href="mtrx-20190331.xsd#SegmentInformationResultsOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:href="mtrx-20190331.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_3079BB20950F5038B8E8BBECA564D9BE" 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_F55C4C29837950EDB1916153F20B4D83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_3079BB20950F5038B8E8BBECA564D9BE" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_F55C4C29837950EDB1916153F20B4D83" 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_7E70BD6CE9F752269E19A32007DE3CD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_F55C4C29837950EDB1916153F20B4D83" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_7E70BD6CE9F752269E19A32007DE3CD4" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7E70BD6CE9F752269E19A32007DE3CD4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2A642C90F24356240D14F3CBBFF014E3_BFD370DFBFF359B6A557D281F91D8F63" 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_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7E70BD6CE9F752269E19A32007DE3CD4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_20A73D2EBA405ABE83ABDF9D286B9987" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:to="loc_mtrx_HDBInc.Member_20A73D2EBA405ABE83ABDF9D286B9987" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_1BC5850B6305567588D3E914CA191CC6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_1BC5850B6305567588D3E914CA191CC6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_735A9FD95D525E86AF7C870D834318EE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_735A9FD95D525E86AF7C870D834318EE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_A8977DB722015F1EB7F8C1F262F03071" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:to="loc_mtrx_HoustonInterestsLLCMember_A8977DB722015F1EB7F8C1F262F03071" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_F3DD3AB632D55817AFB13D2172D93631" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3AC012907ACE5D818CFF7ACE699DFBD9" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_F3DD3AB632D55817AFB13D2172D93631" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ConsiderationtransferredTableTextBlock" xlink:label="loc_mtrx_ConsiderationtransferredTableTextBlock_F841D06A64505F0E83F5D15C26E84ABA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_3079BB20950F5038B8E8BBECA564D9BE" xlink:to="loc_mtrx_ConsiderationtransferredTableTextBlock_F841D06A64505F0E83F5D15C26E84ABA" 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_514885FBCED85E30A09307E4F4B87FFA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_3079BB20950F5038B8E8BBECA564D9BE" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_514885FBCED85E30A09307E4F4B87FFA" 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_DD019468B9DE59E294212D031B43F4B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_3079BB20950F5038B8E8BBECA564D9BE" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_DD019468B9DE59E294212D031B43F4B7" 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-20190331.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_8216C3FA31BA591888A77BD3DFEEA4F7" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_A1082BF51663582C88C9F80A4909BF1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_8216C3FA31BA591888A77BD3DFEEA4F7" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_A1082BF51663582C88C9F80A4909BF1A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_PowerGenerationProjectAxis" xlink:label="loc_mtrx_PowerGenerationProjectAxis_BA5B40D6967C582F846890018B36F177" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_A1082BF51663582C88C9F80A4909BF1A" xlink:to="loc_mtrx_PowerGenerationProjectAxis_BA5B40D6967C582F846890018B36F177" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_39A9447799148FFDAB4EEEDAB7FA35A5_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_BA5B40D6967C582F846890018B36F177" xlink:to="loc_mtrx_PowerGenerationProjectDomain_39A9447799148FFDAB4EEEDAB7FA35A5_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_330A5FCBDAF75A9A91FEDC97CD35E62F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_BA5B40D6967C582F846890018B36F177" xlink:to="loc_mtrx_PowerGenerationProjectDomain_330A5FCBDAF75A9A91FEDC97CD35E62F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_FD899530C3675AB29F481882F3D7FB16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_330A5FCBDAF75A9A91FEDC97CD35E62F" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_FD899530C3675AB29F481882F3D7FB16" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ClaimOnPowerGenerationProjectMember" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_49356A0438375503BADB71A3E5B9A420" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_330A5FCBDAF75A9A91FEDC97CD35E62F" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_49356A0438375503BADB71A3E5B9A420" 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_B8B76CCDA70953CB871F3A006B58826C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_8216C3FA31BA591888A77BD3DFEEA4F7" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_B8B76CCDA70953CB871F3A006B58826C" 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_C2F9E7326896B00470CB9844B5C764D9" 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_9B4FDF59210288C881AA9844B5BF2786" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_C2F9E7326896B00470CB9844B5C764D9" xlink:to="loc_us-gaap_StatementTable_9B4FDF59210288C881AA9844B5BF2786" 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_8FD24B7DC9A2CA8E17979844B5C4D9E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_9B4FDF59210288C881AA9844B5BF2786" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_8FD24B7DC9A2CA8E17979844B5C4D9E0" 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_27CE36BA0E525F160E389844B5C554DF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8FD24B7DC9A2CA8E17979844B5C4D9E0" xlink:to="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF_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_27CE36BA0E525F160E389844B5C554DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8FD24B7DC9A2CA8E17979844B5C4D9E0" xlink:to="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" 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_DF268B33A952438F55ED9844B5C51D6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_CommonStockMember_DF268B33A952438F55ED9844B5C51D6E" 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_173D2B684946CC62572D9844B5C5A8DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_173D2B684946CC62572D9844B5C5A8DA" 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_C55F4D13B76A65EE71599844B5C7C8F1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_RetainedEarningsMember_C55F4D13B76A65EE71599844B5C7C8F1" 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_58280891416D95EA63A19844B5C7058C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_TreasuryStockMember_58280891416D95EA63A19844B5C7058C" 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_E07B16812D47AA0182549844B5C7F6C3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_E07B16812D47AA0182549844B5C7F6C3" 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_439C06FF34660C3462459844B5C70405" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_27CE36BA0E525F160E389844B5C554DF" xlink:to="loc_us-gaap_NoncontrollingInterestMember_439C06FF34660C3462459844B5C70405" 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_58B0CCD506C41C1EFB9C9844B5C72595" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C2F9E7326896B00470CB9844B5C764D9" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" 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_243FC485F2D221B2AE219844B5C82800" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_243FC485F2D221B2AE219844B5C82800" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Beginningequitybalancesasadjusted" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_CBF3DF26DB540FBBFFAE9844B5C809D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_CBF3DF26DB540FBBFFAE9844B5C809D8" 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_5C1C45F119F537DD2BFA9844B5C8D351" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_5C1C45F119F537DD2BFA9844B5C8D351" 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_47E2D751E7C7ADEE65BF9844B5C87202" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_47E2D751E7C7ADEE65BF9844B5C87202" 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_9C44A236657BCAD7146F9844B5C92B72" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_ProfitLoss_9C44A236657BCAD7146F9844B5C92B72" 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_DEC476A186CD6EFB077C9844B5C95178" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DEC476A186CD6EFB077C9844B5C95178" 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_99997F8CF688861D34769844B5CE14FA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_99997F8CF688861D34769844B5CE14FA" 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_3A06CCB637D1997A04109844B5CE0E3C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_3A06CCB637D1997A04109844B5CE0E3C" 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_7E64971FCCFF4B9D066C9844B5CE5DD0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_7E64971FCCFF4B9D066C9844B5CE5DD0" 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_27D04F8CF9D0D4DCA5AB9844B5CF0CE9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_27D04F8CF9D0D4DCA5AB9844B5CF0CE9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_OtherTreasurySharePurchases" xlink:label="loc_mtrx_OtherTreasurySharePurchases_43D60BE4B1041071C3129844B5CF84E3" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_mtrx_OtherTreasurySharePurchases_43D60BE4B1041071C3129844B5CF84E3" 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_483F2DB5B699226B66F09844B5CF1BEA" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_483F2DB5B699226B66F09844B5CF1BEA" 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_6A9CCA8066BF121978AF9844B5CF0B4F" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_6A9CCA8066BF121978AF9844B5CF0B4F" 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_3FA1B037AF813D89540B9844B5D05A54" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_3FA1B037AF813D89540B9844B5D05A54" 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_3762FCA8B56E498D65F39844B5D39CBD" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58B0CCD506C41C1EFB9C9844B5C72595" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_3762FCA8B56E498D65F39844B5D39CBD" 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_258953659F59040065529812A3D0D931" 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_6901C77F4FDC0FE2F7CB9812A3B9A0DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_us-gaap_StatementTable_6901C77F4FDC0FE2F7CB9812A3B9A0DB" 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_8379BCB30C8AF5C067F89812A3CAF732" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6901C77F4FDC0FE2F7CB9812A3B9A0DB" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_8379BCB30C8AF5C067F89812A3CAF732" 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_FB1321D4D3974E6CCE379812A3CAA689_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8379BCB30C8AF5C067F89812A3CAF732" xlink:to="loc_us-gaap_EquityComponentDomain_FB1321D4D3974E6CCE379812A3CAA689_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_FB1321D4D3974E6CCE379812A3CAA689" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8379BCB30C8AF5C067F89812A3CAF732" xlink:to="loc_us-gaap_EquityComponentDomain_FB1321D4D3974E6CCE379812A3CAA689" 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_EB2E592E4A9C003E52829812A3CBF19B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_FB1321D4D3974E6CCE379812A3CAA689" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_EB2E592E4A9C003E52829812A3CBF19B" 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_4F87D7BD13771AD6BF6F9812A3CE5772" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_FB1321D4D3974E6CCE379812A3CAA689" xlink:to="loc_us-gaap_TreasuryStockMember_4F87D7BD13771AD6BF6F9812A3CE5772" 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_BB68143CBFC9561026CA9812A3D0C83E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_BB68143CBFC9561026CA9812A3D0C83E" 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_50B223691F8D16A64CA49812A3D053D6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_50B223691F8D16A64CA49812A3D053D6" 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_472ABA7B2DDCFB78E1659812A3D11004" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_472ABA7B2DDCFB78E1659812A3D11004" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_DeferredSharesIssued" xlink:label="loc_mtrx_DeferredSharesIssued_2F6D9F49E50CE93F35A79812A3D1FF87" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_mtrx_DeferredSharesIssued_2F6D9F49E50CE93F35A79812A3D1FF87" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_OtherTreasurySharesAcquired" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_A8FBD8D45EBDDF782A2E9812A3D1C1A0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_258953659F59040065529812A3D0D931" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_A8FBD8D45EBDDF782A2E9812A3D1C1A0" 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_3F8656A817A950EF8E984EB9101FDC50" 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_FBA3B18F31A55629B4E754BE050E9BF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_FBA3B18F31A55629B4E754BE050E9BF6" 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_77C0613386C854FD896505BB221253DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_FBA3B18F31A55629B4E754BE050E9BF6" xlink:to="loc_us-gaap_VariableRateAxis_77C0613386C854FD896505BB221253DB" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_77C0613386C854FD896505BB221253DB" xlink:to="loc_us-gaap_VariableRateDomain_BF4376A07D173FC923ABEEDABA23967E_BFD370DFBFF359B6A557D281F91D8F63" 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_1F2B6794950854308099266B13C41877" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_77C0613386C854FD896505BB221253DB" xlink:to="loc_us-gaap_VariableRateDomain_1F2B6794950854308099266B13C41877" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_CdorRateMember" xlink:label="loc_mtrx_CdorRateMember_FBD6111853BC55009F984D99310EB9D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_1F2B6794950854308099266B13C41877" xlink:to="loc_mtrx_CdorRateMember_FBD6111853BC55009F984D99310EB9D6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_CanadianPrimeRateMember" xlink:label="loc_mtrx_CanadianPrimeRateMember_008E4F144AE35DB68B7EEB048BA1FCD5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_1F2B6794950854308099266B13C41877" xlink:to="loc_mtrx_CanadianPrimeRateMember_008E4F144AE35DB68B7EEB048BA1FCD5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_DebtAmendmentMember" xlink:label="loc_mtrx_DebtAmendmentMember_ABE4D95835E2569380BAD6990A843597" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_1F2B6794950854308099266B13C41877" xlink:to="loc_mtrx_DebtAmendmentMember_ABE4D95835E2569380BAD6990A843597" 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_3787AD12A4FB5B89B3C68F81D2ED2068" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_FBA3B18F31A55629B4E754BE050E9BF6" xlink:to="loc_srt_RangeAxis_3787AD12A4FB5B89B3C68F81D2ED2068" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3787AD12A4FB5B89B3C68F81D2ED2068" xlink:to="loc_srt_RangeMember_EB1BDFE60B9EA64504DFEEDABA25BA29_BFD370DFBFF359B6A557D281F91D8F63" 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_CF115B4F23195458A63E53C768B9E8CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3787AD12A4FB5B89B3C68F81D2ED2068" xlink:to="loc_srt_RangeMember_CF115B4F23195458A63E53C768B9E8CE" 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_2A8C677591C9503D8C4240A2EE5E4C03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CF115B4F23195458A63E53C768B9E8CE" xlink:to="loc_srt_MinimumMember_2A8C677591C9503D8C4240A2EE5E4C03" 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_77480D6EA9F053E1880ACEFCB2D26883" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CF115B4F23195458A63E53C768B9E8CE" xlink:to="loc_srt_MaximumMember_77480D6EA9F053E1880ACEFCB2D26883" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_CreditAgreementTerm" xlink:label="loc_mtrx_CreditAgreementTerm_5FA65BCDD4F8504CB7135AF3F8BB0A1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_CreditAgreementTerm_5FA65BCDD4F8504CB7135AF3F8BB0A1A" 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_0707C0FEDEC75F218A1A23266D16DFBF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_0707C0FEDEC75F218A1A23266D16DFBF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_B3B4AEC843035A4694E463394A73BF9A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_B3B4AEC843035A4694E463394A73BF9A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_C9BA81A21AB3542B820239C964665762" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_C9BA81A21AB3542B820239C964665762" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_BBFE85E14FAE577FBD58A99F92654D73" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_BBFE85E14FAE577FBD58A99F92654D73" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SeniorLeverageRatioMax" xlink:label="loc_mtrx_SeniorLeverageRatioMax_6C94776DF322581E80984CD95E499159" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_SeniorLeverageRatioMax_6C94776DF322581E80984CD95E499159" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SeniorLeverageRatioMin" xlink:label="loc_mtrx_SeniorLeverageRatioMin_35B27A2BD9265645BC4CAE60E91A6BC6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_SeniorLeverageRatioMin_35B27A2BD9265645BC4CAE60E91A6BC6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_FixedChargeCoverageRatioMaximum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_02A13D08C6D15D71A9CF555DC4CB96B0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_02A13D08C6D15D71A9CF555DC4CB96B0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_FixedChargeCoverageRatioMinimum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_7334D846C1265D7FAA32939A732B338E" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_7334D846C1265D7FAA32939A732B338E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_AmountOfLimitOnAssetDispositions" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_D54F385F9DEE5D609629946C2C6018EB" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_D54F385F9DEE5D609629946C2C6018EB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_2251CCE8323D518D82C79D4C438B34AC" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_2251CCE8323D518D82C79D4C438B34AC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_2B0952A4B2915C1189D139AFB345048A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_2B0952A4B2915C1189D139AFB345048A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_421E52FE274F58599DDC757CF69403E7" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_421E52FE274F58599DDC757CF69403E7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_FA8CE21FD411516FB6BF88D155E49FE9" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_FA8CE21FD411516FB6BF88D155E49FE9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_AEC54A32293D5632B592BB83F898FF89" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_AEC54A32293D5632B592BB83F898FF89" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Sublimitonlettersofcreditunderthecreditfacility" xlink:label="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_4094919DEAD45558AEBA34FB31F0248E" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_4094919DEAD45558AEBA34FB31F0248E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_603819C5BE425EBAA73EDC71A0B2AE23" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_603819C5BE425EBAA73EDC71A0B2AE23" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_6DF2BD0430E55F8CB152907E698AED95" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_6DF2BD0430E55F8CB152907E698AED95" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_70E293869E03561894E70290288D208A" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_70E293869E03561894E70290288D208A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_F5EE2AC84FAA507CB89D9C6313264B5D" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_F5EE2AC84FAA507CB89D9C6313264B5D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_6E1C78138F1F52D780B00CD6A13D4691" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_6E1C78138F1F52D780B00CD6A13D4691" 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_43F08AD7FDC25F739331B1981789DEC3" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_43F08AD7FDC25F739331B1981789DEC3" 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_F2742B1CE8EC5EA8BF0E1393675260D7" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_F2742B1CE8EC5EA8BF0E1393675260D7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LineOfCreditFacilityCanadianPrimeRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_D1AE0016767D5D20BC5BAEF95036BB78" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_D1AE0016767D5D20BC5BAEF95036BB78" 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_774B2FE9825B5B118E2F06526311AB13" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_774B2FE9825B5B118E2F06526311AB13" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_MaximumLimitOfConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_5AF392A8B6175AC4B095764AF45EB82E" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_5AF392A8B6175AC4B095764AF45EB82E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement" xlink:label="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_DA9261D0019F5CBFB6E26C341B029B05" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_DA9261D0019F5CBFB6E26C341B029B05" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_ConsolidatedFundedIndebtedness_0E304EC4162A59E3B194CD85DC880D12" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_ConsolidatedFundedIndebtedness_0E304EC4162A59E3B194CD85DC880D12" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_MinimumConsolidatedEBITDARequired" xlink:label="loc_mtrx_MinimumConsolidatedEBITDARequired_7C188C86146D5DA6B359F103E098A4BD" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_MinimumConsolidatedEBITDARequired_7C188C86146D5DA6B359F103E098A4BD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_RestrictedPaymentsUnderCreditAmendment" xlink:label="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_87C112DB3DAE509886EC5D563D8F8DE5" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_87C112DB3DAE509886EC5D563D8F8DE5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_CBC1D242738156A493FDFFE7D556BE0D" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_CBC1D242738156A493FDFFE7D556BE0D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_D9E3F6E062285CC29480532FEA75FC71" xlink:type="locator" />
    <link:definitionArc order="32" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_D9E3F6E062285CC29480532FEA75FC71" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_DividendRestrictionUnderCreditAgreement" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreement_6B85BA426A365AC5AE894F2F40799C6D" xlink:type="locator" />
    <link:definitionArc order="33" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreement_6B85BA426A365AC5AE894F2F40799C6D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_DividendRestrictionUnderCreditAgreementAmount" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_636595FEBA475347B240578EAB115AB0" xlink:type="locator" />
    <link:definitionArc order="34" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_3F8656A817A950EF8E984EB9101FDC50" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_636595FEBA475347B240578EAB115AB0" 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/DisposalsDisposalsDetails" 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_90192DDBDCA0313C8F8A9D6D04944B6C" 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_062211CFEE1D53BCACD29D6D048B0454" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_062211CFEE1D53BCACD29D6D048B0454" 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_EAE9B21AA2CF8AE8BE039D6D048CD8B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_062211CFEE1D53BCACD29D6D048B0454" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_EAE9B21AA2CF8AE8BE039D6D048CD8B7" 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_C29F621E35E31655B2489D6D0491E07B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_EAE9B21AA2CF8AE8BE039D6D048CD8B7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C29F621E35E31655B2489D6D0491E07B_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_C29F621E35E31655B2489D6D0491E07B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_EAE9B21AA2CF8AE8BE039D6D048CD8B7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C29F621E35E31655B2489D6D0491E07B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_8AD00F6A2E380BAF4A419D6D04914293" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C29F621E35E31655B2489D6D0491E07B" xlink:to="loc_mtrx_HoustonInterestsLLCMember_8AD00F6A2E380BAF4A419D6D04914293" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_C2491D668563ECE278D29D6D04927CBB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C29F621E35E31655B2489D6D0491E07B" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_C2491D668563ECE278D29D6D04927CBB" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_52AF437F83FBC6C68D439D6D0492E866" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C29F621E35E31655B2489D6D0491E07B" xlink:to="loc_mtrx_HDBInc.Member_52AF437F83FBC6C68D439D6D0492E866" 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_38E9FD2DB931C00A00369D6D04949C3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_38E9FD2DB931C00A00369D6D04949C3E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Cashpaidforequityinterest" xlink:label="loc_mtrx_Cashpaidforequityinterest_74BB45CBF4168168B6969D6D04947A85" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_mtrx_Cashpaidforequityinterest_74BB45CBF4168168B6969D6D04947A85" 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_52194FB94B29B66DDC5B9D6D04949A1D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_52194FB94B29B66DDC5B9D6D04949A1D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts" xlink:label="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_A88F56E05EB67C72FC1F9D6D0494164A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_A88F56E05EB67C72FC1F9D6D0494164A" 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_FA9C8586D2D2587665F99D6D0495B6D8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_FA9C8586D2D2587665F99D6D0495B6D8" 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_A34236F51252B2EBA89F9D6D04955672" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_A34236F51252B2EBA89F9D6D04955672" 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_91B450F59EFFD0F313719D6D049575B1" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_91B450F59EFFD0F313719D6D049575B1" 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_18FEBEA754B7CA90572C9D6D049554C6" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_18FEBEA754B7CA90572C9D6D049554C6" 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_A9498FAACE5676FFEBC69D6D0495F1F2" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_A9498FAACE5676FFEBC69D6D0495F1F2" 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_E0DB71B464BFF62740389D6D04978DD7" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_E0DB71B464BFF62740389D6D04978DD7" 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_EDF30BE5B65CE569E0959D6D0497A50A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_EDF30BE5B65CE569E0959D6D0497A50A" 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_9F91D28887F7EA0838999D6D049775A1" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_9F91D28887F7EA0838999D6D049775A1" 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_9EF31591B7C9C3FFB4109D6D049ACF28" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_9EF31591B7C9C3FFB4109D6D049ACF28" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings" xlink:label="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_F717A31AC2181BE3CDEE9D6D049FDCC9" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_F717A31AC2181BE3CDEE9D6D049FDCC9" 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_6169D069DCC79E284DAE9D6D04A06637" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_6169D069DCC79E284DAE9D6D04A06637" 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_A5568167B3652B316C549D6D04A04ABB" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_A5568167B3652B316C549D6D04A04ABB" 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_BF591714056EC58945C29D6D04A01967" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_BF591714056EC58945C29D6D04A01967" 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_48EBF7ACA56E253030D89D6D04A076F6" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_48EBF7ACA56E253030D89D6D04A076F6" 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_961B063AFF58F429BA7D9D6D04A2F31C" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_961B063AFF58F429BA7D9D6D04A2F31C" 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_F5E101A108C28AA111B09D6D04A29207" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_F5E101A108C28AA111B09D6D04A29207" 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_A3B31F2BE508E14F55C19D6D04A2FB48" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_A3B31F2BE508E14F55C19D6D04A2FB48" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Warrantyreserveworkingcapitalprovision" xlink:label="loc_mtrx_Warrantyreserveworkingcapitalprovision_5E62D6C326C3E6E1051A9D6D04A26A88" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_mtrx_Warrantyreserveworkingcapitalprovision_5E62D6C326C3E6E1051A9D6D04A26A88" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Settlementofwarrantyreserve" xlink:label="loc_mtrx_Settlementofwarrantyreserve_30364090542FA3E97FBE9D6D04A3C22A" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_90192DDBDCA0313C8F8A9D6D04944B6C" xlink:to="loc_mtrx_Settlementofwarrantyreserve_30364090542FA3E97FBE9D6D04A3C22A" 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_E16F5B78118A542ABBFC922FEA2A62E5" 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_85F5B4DF848951D88D7888EB0D38999D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_85F5B4DF848951D88D7888EB0D38999D" 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_79AD4D37A54250FD93FA5D80F7ECD968" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_85F5B4DF848951D88D7888EB0D38999D" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_79AD4D37A54250FD93FA5D80F7ECD968" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_79AD4D37A54250FD93FA5D80F7ECD968" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E2307E719697F75C7A1F3CBBF656956_BFD370DFBFF359B6A557D281F91D8F63" 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_57BD475B9CE2594A9C72C86107A9E917" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_79AD4D37A54250FD93FA5D80F7ECD968" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57BD475B9CE2594A9C72C86107A9E917" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_03896282F842567BA46A94ACC825D99D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57BD475B9CE2594A9C72C86107A9E917" xlink:to="loc_mtrx_HoustonInterestsLLCMember_03896282F842567BA46A94ACC825D99D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_A5B0DCAE768C5D37870525BF3BB3D55D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57BD475B9CE2594A9C72C86107A9E917" xlink:to="loc_mtrx_HDBInc.Member_A5B0DCAE768C5D37870525BF3BB3D55D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_DE5F8E55E1935EAB9E1F92E0990E5D1E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57BD475B9CE2594A9C72C86107A9E917" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_DE5F8E55E1935EAB9E1F92E0990E5D1E" 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_0178628D0F2C553098037311D21FDB32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_0178628D0F2C553098037311D21FDB32" 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_9F21E4967D8B5E9AB4CD55991F30A817" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_9F21E4967D8B5E9AB4CD55991F30A817" 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_5E32BD78FC9C5119AE02FE5E41FE5869" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_5E32BD78FC9C5119AE02FE5E41FE5869" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_479154915A905770821AADBF96377DDD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_479154915A905770821AADBF96377DDD" 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_B433FC95B70F553198D190BD56F1E5DC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_B433FC95B70F553198D190BD56F1E5DC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Workingcapitalpaymentmadeinperiodnotpresented" xlink:label="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_746F4D53F4775ECBB12A7EB370EFB991" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_746F4D53F4775ECBB12A7EB370EFB991" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Economicpurchaseprice" xlink:label="loc_mtrx_Economicpurchaseprice_52A104470AF752A1805B81C9452E24BC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_mtrx_Economicpurchaseprice_52A104470AF752A1805B81C9452E24BC" 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_EBB5E06F674F57DFA0DBD4FFA8AFA5CF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_E16F5B78118A542ABBFC922FEA2A62E5" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_EBB5E06F674F57DFA0DBD4FFA8AFA5CF" 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_0F7F507CC8D85E06910FD3F44A8B3332" 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_35D457D82950567A8136F9866A142025" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0F7F507CC8D85E06910FD3F44A8B3332" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_35D457D82950567A8136F9866A142025" 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_7B6ECF943E355EB982118499582ACCAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_35D457D82950567A8136F9866A142025" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_7B6ECF943E355EB982118499582ACCAD" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7B6ECF943E355EB982118499582ACCAD" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E8C5D990E7D1AF21192FF3CBBF46D291_BFD370DFBFF359B6A557D281F91D8F63" 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_F3204E8BF44E5CA79DACC9BB802763D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7B6ECF943E355EB982118499582ACCAD" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F3204E8BF44E5CA79DACC9BB802763D6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_AB9F7B6FAEB05EF494B6C1D890D08A08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F3204E8BF44E5CA79DACC9BB802763D6" xlink:to="loc_mtrx_HoustonInterestsLLCMember_AB9F7B6FAEB05EF494B6C1D890D08A08" 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_C6BC082104EB5C77AD0E5B6C381F9654" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0F7F507CC8D85E06910FD3F44A8B3332" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_C6BC082104EB5C77AD0E5B6C381F9654" 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_3F23B624DDE85BAFAEE7AC732A607E91" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0F7F507CC8D85E06910FD3F44A8B3332" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_3F23B624DDE85BAFAEE7AC732A607E91" 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_D296C5091DF5570B8A1C54805C79A92A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0F7F507CC8D85E06910FD3F44A8B3332" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_D296C5091DF5570B8A1C54805C79A92A" 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_E8BCEAE3F554572DAC7A0658EE22BB93" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0F7F507CC8D85E06910FD3F44A8B3332" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_E8BCEAE3F554572DAC7A0658EE22BB93" 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_763D3F77FF955FCAB91849B57D4C309E" 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_C08490DCE0A05EB4B50A7B4F6650E9E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_C08490DCE0A05EB4B50A7B4F6650E9E1" 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_5AF1E727489A5182A0DF968700C35578" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_C08490DCE0A05EB4B50A7B4F6650E9E1" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_5AF1E727489A5182A0DF968700C35578" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5AF1E727489A5182A0DF968700C35578" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DABD39143F88506F3083F3CBBF2A45D9_BFD370DFBFF359B6A557D281F91D8F63" 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_2499DC58980C543AAC3034B85B1BD34D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5AF1E727489A5182A0DF968700C35578" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2499DC58980C543AAC3034B85B1BD34D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_28572972E1CD51F1ABB75C868CADCEDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2499DC58980C543AAC3034B85B1BD34D" xlink:to="loc_mtrx_HoustonInterestsLLCMember_28572972E1CD51F1ABB75C868CADCEDF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Proformaacquisitioncosts" xlink:label="loc_mtrx_Proformaacquisitioncosts_6B1783ED3A925A848E6F28878ECFDC3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_mtrx_Proformaacquisitioncosts_6B1783ED3A925A848E6F28878ECFDC3E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Proformaacquisitioncostsamortizedovertime" xlink:label="loc_mtrx_Proformaacquisitioncostsamortizedovertime_72B07FB9E07458F9BF42C24195151D36" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_mtrx_Proformaacquisitioncostsamortizedovertime_72B07FB9E07458F9BF42C24195151D36" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Proformainterestexpense" xlink:label="loc_mtrx_Proformainterestexpense_C0DE4C702A7C5F64B7D3A05289DD08F0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_mtrx_Proformainterestexpense_C0DE4C702A7C5F64B7D3A05289DD08F0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Proformadepreciationandamortizationexpense" xlink:label="loc_mtrx_Proformadepreciationandamortizationexpense_D122B20F067953D1835B2B24CD45FC1B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_mtrx_Proformadepreciationandamortizationexpense_D122B20F067953D1835B2B24CD45FC1B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Proformaincometaxexpense" xlink:label="loc_mtrx_Proformaincometaxexpense_B4B833AA8EB65AB684C5560648DC8CE5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_763D3F77FF955FCAB91849B57D4C309E" xlink:to="loc_mtrx_Proformaincometaxexpense_B4B833AA8EB65AB684C5560648DC8CE5" 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_37D6E49A83C374FEF0CD981D9CC73B75" 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_5B746B715CAFF1991334981D9CC4816B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_37D6E49A83C374FEF0CD981D9CC73B75" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_5B746B715CAFF1991334981D9CC4816B" 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_5EEFE364564EDB3C99FA981D9CC4E64E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_5B746B715CAFF1991334981D9CC4816B" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5EEFE364564EDB3C99FA981D9CC4E64E" 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_AE8A87F9FE43DCEED8DD981D9CC5AFE2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5EEFE364564EDB3C99FA981D9CC4E64E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_AE8A87F9FE43DCEED8DD981D9CC5AFE2_default" 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_AE8A87F9FE43DCEED8DD981D9CC5AFE2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5EEFE364564EDB3C99FA981D9CC4E64E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_AE8A87F9FE43DCEED8DD981D9CC5AFE2" 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_6D9EB0D3A254EA724F03981D9CC66416" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_AE8A87F9FE43DCEED8DD981D9CC5AFE2" xlink:to="loc_us-gaap_EmployeeStockOptionMember_6D9EB0D3A254EA724F03981D9CC66416" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_NonvestedDeferredSharesMember" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_90AECCC6BE89CD23F54E981D9CC7F14F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_AE8A87F9FE43DCEED8DD981D9CC5AFE2" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_90AECCC6BE89CD23F54E981D9CC7F14F" 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_1B93CBB443061C4EEC96981D9CC795DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_37D6E49A83C374FEF0CD981D9CC73B75" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_1B93CBB443061C4EEC96981D9CC795DC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" 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_A3C13B9AB02E5523AF9049B5F34D7B22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A3C13B9AB02E5523AF9049B5F34D7B22" 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_784D3DCC9F2954909C180F6AECA3F104" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A3C13B9AB02E5523AF9049B5F34D7B22" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_784D3DCC9F2954909C180F6AECA3F104" 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_228D4AFA4B7251EB87EC58620D4A3676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_784D3DCC9F2954909C180F6AECA3F104" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1F96793A0414F84F6AFC4BEA256AF73_228D4AFA4B7251EB87EC58620D4A3676" 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_7E9116243BA052CEA68581E5188268E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_784D3DCC9F2954909C180F6AECA3F104" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E9116243BA052CEA68581E5188268E4" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_958B3FEE51C757208358AFD2FE387DAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E9116243BA052CEA68581E5188268E4" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_958B3FEE51C757208358AFD2FE387DAC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_E7BD7DF35F5D51FC986FCC3252E071AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7E9116243BA052CEA68581E5188268E4" xlink:to="loc_mtrx_HoustonInterestsLLCMember_E7BD7DF35F5D51FC986FCC3252E071AF" 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_644B4C2491375287A70861048795B852" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A3C13B9AB02E5523AF9049B5F34D7B22" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_644B4C2491375287A70861048795B852" 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_228D4AFA4B7251EB87EC58620D4A3676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_644B4C2491375287A70861048795B852" xlink:to="loc_us-gaap_SegmentDomain_2AE9B4BD0A1A9B5F1165C4BEA2563679_228D4AFA4B7251EB87EC58620D4A3676" 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_E2A0EAFCD03C5A27B27B90378C251325" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_644B4C2491375287A70861048795B852" xlink:to="loc_us-gaap_SegmentDomain_E2A0EAFCD03C5A27B27B90378C251325" 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_0CE26064E34E5B148C75A0E0E96FCB7A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A3C13B9AB02E5523AF9049B5F34D7B22" xlink:to="loc_srt_RangeAxis_0CE26064E34E5B148C75A0E0E96FCB7A" 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_228D4AFA4B7251EB87EC58620D4A3676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0CE26064E34E5B148C75A0E0E96FCB7A" xlink:to="loc_srt_RangeMember_A385504F9727DB914973C4BEA2560E90_228D4AFA4B7251EB87EC58620D4A3676" 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_53320959586B5B8DA62E2C50134F2AB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0CE26064E34E5B148C75A0E0E96FCB7A" xlink:to="loc_srt_RangeMember_53320959586B5B8DA62E2C50134F2AB2" 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_8B5061F17740579F9BAA45D13132F095" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53320959586B5B8DA62E2C50134F2AB2" xlink:to="loc_srt_MinimumMember_8B5061F17740579F9BAA45D13132F095" 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_C601629CFB90527E99577C9B0385D73C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53320959586B5B8DA62E2C50134F2AB2" xlink:to="loc_srt_MaximumMember_C601629CFB90527E99577C9B0385D73C" 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_EA46075868375A5B81FC5982A065D0E4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_A3C13B9AB02E5523AF9049B5F34D7B22" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EA46075868375A5B81FC5982A065D0E4" 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_228D4AFA4B7251EB87EC58620D4A3676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EA46075868375A5B81FC5982A065D0E4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2258334B2209CC08280DC4BEA256F057_228D4AFA4B7251EB87EC58620D4A3676" 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_61334972903155CF8461A0EF7DD79F12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EA46075868375A5B81FC5982A065D0E4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" 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_65711B807D955B9EA55B7AB786179EB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_us-gaap_IntellectualPropertyMember_65711B807D955B9EA55B7AB786179EB0" 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_5E3D0144511352B9AA0F23D8A3AC1BBC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_us-gaap_CustomerRelationshipsMember_5E3D0144511352B9AA0F23D8A3AC1BBC" 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_2A0DAD3E786B56C18FCF823E93BBED59" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_2A0DAD3E786B56C18FCF823E93BBED59" 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_3C0F4BFFF5DE5A8D9076D5A42D9A03B5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_us-gaap_TradeNamesMember_3C0F4BFFF5DE5A8D9076D5A42D9A03B5" 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_F7B127712C175B1FA0C6E83B1F916330" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_F7B127712C175B1FA0C6E83B1F916330" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_SMElectricTradeNameMember" xlink:label="loc_mtrx_SMElectricTradeNameMember_D327D540BFC55E738529A00631ED84AD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_61334972903155CF8461A0EF7DD79F12" xlink:to="loc_mtrx_SMElectricTradeNameMember_D327D540BFC55E738529A00631ED84AD" 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_9C835E0CA7D15AF2AB3796F5906DA010" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue_9C835E0CA7D15AF2AB3796F5906DA010" 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_2E2082AF0BAC52158B39F266A144BCD9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_2E2082AF0BAC52158B39F266A144BCD9" 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_09FB72A63A625540AD4A19B8883DA8B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_09FB72A63A625540AD4A19B8883DA8B7" 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_0277D9AB667C5E1999EE190F28D6D5E2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_0277D9AB667C5E1999EE190F28D6D5E2" 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_2645A622E5165A869A9D7F7FC8DF7CCB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_DFE349E4BA095F21B7753E36F7726FEF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_2645A622E5165A869A9D7F7FC8DF7CCB" 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_34B3F869F2A19363589D8E7A006CFCC9" 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_C30F4DB4114C6A1BFBA68E7A006CF874" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_C30F4DB4114C6A1BFBA68E7A006CF874" 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_AF3A4E4E8D7BC769867D8E7A006CC8E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C30F4DB4114C6A1BFBA68E7A006CF874" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_AF3A4E4E8D7BC769867D8E7A006CC8E0" 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_8C97B2AD46C4F624ABB88E7A006CEF4F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AF3A4E4E8D7BC769867D8E7A006CC8E0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8C97B2AD46C4F624ABB88E7A006CEF4F_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_8C97B2AD46C4F624ABB88E7A006CEF4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AF3A4E4E8D7BC769867D8E7A006CC8E0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8C97B2AD46C4F624ABB88E7A006CEF4F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_915687EF164B21544B418E7A006CCAA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8C97B2AD46C4F624ABB88E7A006CEF4F" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_915687EF164B21544B418E7A006CCAA3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_7E2C3FF503E1702D62508E7A006C1728" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8C97B2AD46C4F624ABB88E7A006CEF4F" xlink:to="loc_mtrx_HoustonInterestsLLCMember_7E2C3FF503E1702D62508E7A006C1728" 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_DC9BBD48C8296F5B35868E7A006CF91E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C30F4DB4114C6A1BFBA68E7A006CF874" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_DC9BBD48C8296F5B35868E7A006CF91E" 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_72C93FD8271BEAD25A498E7A006C222E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DC9BBD48C8296F5B35868E7A006CF91E" xlink:to="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E_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_72C93FD8271BEAD25A498E7A006C222E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DC9BBD48C8296F5B35868E7A006CF91E" xlink:to="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_747F23925F2C915825208E7A006C0AE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_mtrx_ElectricalInfrastructureMember_747F23925F2C915825208E7A006C0AE3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_B0D04170038F3A0C98358E7A006C71AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_mtrx_OilGasAndChemicalMember_B0D04170038F3A0C98358E7A006C71AD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_57940260FA11E67A53848E7A006CEB5B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_mtrx_StorageSolutionsMember_57940260FA11E67A53848E7A006CEB5B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_F5F7852E34926A771B8B8E7A006CBD37" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_mtrx_IndustrialMember_F5F7852E34926A771B8B8E7A006CBD37" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ReportingUnitMember" xlink:label="loc_mtrx_ReportingUnitMember_2A415A2179B4D656DF178E7A006C0326" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_mtrx_ReportingUnitMember_2A415A2179B4D656DF178E7A006C0326" 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_AEF921FBB46DF95A8D6F8E7A006CBFAA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_72C93FD8271BEAD25A498E7A006C222E" xlink:to="loc_us-gaap_AllOtherSegmentsMember_AEF921FBB46DF95A8D6F8E7A006CBFAA" 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_C968C12E6028625524CD8E7A006CB92C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_GoodwillGross_C968C12E6028625524CD8E7A006CB92C" 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_2181FE0EAECBFC46918B8E7A006C4913" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_2181FE0EAECBFC46918B8E7A006C4913" 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_82881E635E5F1339FE028E7A006CC868" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_Goodwill_82881E635E5F1339FE028E7A006CC868" 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_4021321BB04F776608DC8E7A006C7C28" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_4021321BB04F776608DC8E7A006C7C28" 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_972B912EF62B6DA0A2588E7A006C33D1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_34B3F869F2A19363589D8E7A006CFCC9" xlink:to="loc_us-gaap_GoodwillRollForward_972B912EF62B6DA0A2588E7A006C33D1" 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_DF444A85DB9FFF47E0A28E7A006CC321" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_972B912EF62B6DA0A2588E7A006C33D1" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_DF444A85DB9FFF47E0A28E7A006CC321" 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_C025845AA0675DFEEE118E7A006C672D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_972B912EF62B6DA0A2588E7A006C33D1" xlink:to="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_C025845AA0675DFEEE118E7A006C672D" 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_E831CBABAB2807D62B688E7A006CC182" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_972B912EF62B6DA0A2588E7A006C33D1" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_E831CBABAB2807D62B688E7A006CC182" 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_EF484B41C41FD1ED1C538E7A006C5E5B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_972B912EF62B6DA0A2588E7A006C33D1" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_EF484B41C41FD1ED1C538E7A006C5E5B" 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_BCF088A5962F560C805537FADAD494DE" 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_9DDA3D500E69546D8A02AFF5F3E9D6AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9DDA3D500E69546D8A02AFF5F3E9D6AD" 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_E14AA6F831CD54BC8FD1C428B4C775D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9DDA3D500E69546D8A02AFF5F3E9D6AD" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_E14AA6F831CD54BC8FD1C428B4C775D6" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E14AA6F831CD54BC8FD1C428B4C775D6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_264BE97E71FCDF62D3E8EEDABB092B4E_BFD370DFBFF359B6A557D281F91D8F63" 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_DB84A1135D84510E96FF0680A10FEB43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E14AA6F831CD54BC8FD1C428B4C775D6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DB84A1135D84510E96FF0680A10FEB43" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_DE178DF2B92E5D78B4D90EA2B5792334" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DB84A1135D84510E96FF0680A10FEB43" xlink:to="loc_mtrx_HoustonInterestsLLCMember_DE178DF2B92E5D78B4D90EA2B5792334" 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_4CC49639B8F659E5808E525F234CEC19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9DDA3D500E69546D8A02AFF5F3E9D6AD" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4CC49639B8F659E5808E525F234CEC19" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4CC49639B8F659E5808E525F234CEC19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6ABC94EC89E67F5540F3EEDABB0A3BCB_BFD370DFBFF359B6A557D281F91D8F63" 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_5B17B74DFD585AEF97AD2440ED09A5E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4CC49639B8F659E5808E525F234CEC19" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5B17B74DFD585AEF97AD2440ED09A5E5" 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_CDDA805B99DD520E9B43EE82EF147ED1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5B17B74DFD585AEF97AD2440ED09A5E5" xlink:to="loc_us-gaap_IntellectualPropertyMember_CDDA805B99DD520E9B43EE82EF147ED1" 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_18A47D47DB4D55EEA1C94021BFC5F4D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5B17B74DFD585AEF97AD2440ED09A5E5" xlink:to="loc_us-gaap_CustomerRelationshipsMember_18A47D47DB4D55EEA1C94021BFC5F4D8" 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_0D71AEEF10A653FDB9A20F2005FF696A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5B17B74DFD585AEF97AD2440ED09A5E5" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_0D71AEEF10A653FDB9A20F2005FF696A" 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_32B8F6A53BEF5BE1AFDEA9D2A68BA450" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5B17B74DFD585AEF97AD2440ED09A5E5" xlink:to="loc_us-gaap_TradeNamesMember_32B8F6A53BEF5BE1AFDEA9D2A68BA450" 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_E88560DDBB1B5FBB8EFE5A92FF4AEC54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9DDA3D500E69546D8A02AFF5F3E9D6AD" xlink:to="loc_srt_RangeAxis_E88560DDBB1B5FBB8EFE5A92FF4AEC54" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_E88560DDBB1B5FBB8EFE5A92FF4AEC54" xlink:to="loc_srt_RangeMember_834FCC2F20B737258DD8EEDABB0C3D82_BFD370DFBFF359B6A557D281F91D8F63" 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_5479E9D4FC335F76A8F8E2B7E8FAFE98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_E88560DDBB1B5FBB8EFE5A92FF4AEC54" xlink:to="loc_srt_RangeMember_5479E9D4FC335F76A8F8E2B7E8FAFE98" 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_6DBD9D1A651B5A36801A59EBEF20DCF5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5479E9D4FC335F76A8F8E2B7E8FAFE98" xlink:to="loc_srt_MinimumMember_6DBD9D1A651B5A36801A59EBEF20DCF5" 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_8C7E0488434752928EE3E34806E16D3D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5479E9D4FC335F76A8F8E2B7E8FAFE98" xlink:to="loc_srt_MaximumMember_8C7E0488434752928EE3E34806E16D3D" 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_16336CDA8B3A586F98DC3D5554E1494A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_16336CDA8B3A586F98DC3D5554E1494A" 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_36FA302F2F8852B5839319145E836386" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_36FA302F2F8852B5839319145E836386" 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_C9895D5A379D5AB38AA597D9509D1D95" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_C9895D5A379D5AB38AA597D9509D1D95" 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_F69DFD28D48E507B8AD3D2BB2452DDDC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_F69DFD28D48E507B8AD3D2BB2452DDDC" 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_CA838DB2A544599297147461B4407E6B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_CA838DB2A544599297147461B4407E6B" 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_EE539A06993F5DC2B7392949382E486C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_EE539A06993F5DC2B7392949382E486C" 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_05B5B511FD035D029ACFA0EBFF9FA40D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BCF088A5962F560C805537FADAD494DE" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_05B5B511FD035D029ACFA0EBFF9FA40D" 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_F83153C7B7EE5341BCE36C617D8C013F" 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_DE3A2D2AB82751FB8494AC99FF959445" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_F83153C7B7EE5341BCE36C617D8C013F" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DE3A2D2AB82751FB8494AC99FF959445" 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_349EE00CBBD358A398179B816FE43C53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DE3A2D2AB82751FB8494AC99FF959445" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_349EE00CBBD358A398179B816FE43C53" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_349EE00CBBD358A398179B816FE43C53" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_15702F651ACEFD947A55EEDABAB6ACBD_BFD370DFBFF359B6A557D281F91D8F63" 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_229A6C0DD9A158A89A0F59920D7F8C76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_349EE00CBBD358A398179B816FE43C53" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_229A6C0DD9A158A89A0F59920D7F8C76" 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_A8A8822784805D289CF9668A68E2BA0F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DE3A2D2AB82751FB8494AC99FF959445" xlink:to="loc_srt_ConsolidationItemsAxis_A8A8822784805D289CF9668A68E2BA0F" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_A8A8822784805D289CF9668A68E2BA0F" xlink:to="loc_srt_ConsolidationItemsDomain_7F72CCD6361E277126C3EEDABAB786E7_BFD370DFBFF359B6A557D281F91D8F63" 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_5B2353D25F53569E8FAB04C71BF42677" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_A8A8822784805D289CF9668A68E2BA0F" xlink:to="loc_srt_ConsolidationItemsDomain_5B2353D25F53569E8FAB04C71BF42677" 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_70ED95E87993574199F8DED5F771D2C5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DE3A2D2AB82751FB8494AC99FF959445" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_70ED95E87993574199F8DED5F771D2C5" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_70ED95E87993574199F8DED5F771D2C5" xlink:to="loc_us-gaap_SegmentDomain_81143B1DA517871EF32DEEDABAB71FE6_BFD370DFBFF359B6A557D281F91D8F63" 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_BD4ED3B000CD5257977BE5FA61759476" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_70ED95E87993574199F8DED5F771D2C5" xlink:to="loc_us-gaap_SegmentDomain_BD4ED3B000CD5257977BE5FA61759476" 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_721AA5C606D35984B0ECBD460B97C83D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DE3A2D2AB82751FB8494AC99FF959445" xlink:to="loc_srt_RangeAxis_721AA5C606D35984B0ECBD460B97C83D" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_721AA5C606D35984B0ECBD460B97C83D" xlink:to="loc_srt_RangeMember_CD98D75C9691CE93B103EEDABAB885AA_BFD370DFBFF359B6A557D281F91D8F63" 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_67366476F8D55F2D9B801E0993B03A62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_721AA5C606D35984B0ECBD460B97C83D" xlink:to="loc_srt_RangeMember_67366476F8D55F2D9B801E0993B03A62" 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_8CBF5ACD53A05F249F879367659D6F32" 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_DCFD60086D355206BA1A813C40BCEE4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8CBF5ACD53A05F249F879367659D6F32" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCFD60086D355206BA1A813C40BCEE4A" 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_12E28FBD9F2F51A2AC3EB0D93A408A7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCFD60086D355206BA1A813C40BCEE4A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_12E28FBD9F2F51A2AC3EB0D93A408A7B" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_12E28FBD9F2F51A2AC3EB0D93A408A7B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_492EB438D6CFA7C38CEDEEDABB4BD613_BFD370DFBFF359B6A557D281F91D8F63" 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_E58F722DD8795E408629926F4237787E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_12E28FBD9F2F51A2AC3EB0D93A408A7B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E58F722DD8795E408629926F4237787E" 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_1FFD83FEF0205AA4AB7938A3279511C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCFD60086D355206BA1A813C40BCEE4A" xlink:to="loc_srt_ConsolidationItemsAxis_1FFD83FEF0205AA4AB7938A3279511C4" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_1FFD83FEF0205AA4AB7938A3279511C4" xlink:to="loc_srt_ConsolidationItemsDomain_9A8F0AE2AB2ECB5EDD5FEEDABB4CA955_BFD370DFBFF359B6A557D281F91D8F63" 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_2282B3500BA95D129C07199E9AB47F73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_1FFD83FEF0205AA4AB7938A3279511C4" xlink:to="loc_srt_ConsolidationItemsDomain_2282B3500BA95D129C07199E9AB47F73" 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_9D5C8FFEA36B5FA9AB337BCE33F7558B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCFD60086D355206BA1A813C40BCEE4A" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9D5C8FFEA36B5FA9AB337BCE33F7558B" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9D5C8FFEA36B5FA9AB337BCE33F7558B" xlink:to="loc_us-gaap_SegmentDomain_453C65721E661383A495EEDABB4C42DD_BFD370DFBFF359B6A557D281F91D8F63" 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_1A4CC9EF294C595584D65B86F5A21E23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9D5C8FFEA36B5FA9AB337BCE33F7558B" xlink:to="loc_us-gaap_SegmentDomain_1A4CC9EF294C595584D65B86F5A21E23" 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_C757F7A8EA0658BD9EF54FCBDBF01C5E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCFD60086D355206BA1A813C40BCEE4A" xlink:to="loc_srt_RangeAxis_C757F7A8EA0658BD9EF54FCBDBF01C5E" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_C757F7A8EA0658BD9EF54FCBDBF01C5E" xlink:to="loc_srt_RangeMember_A9B61423BA9026832ACEEEDABB4DD0ED_BFD370DFBFF359B6A557D281F91D8F63" 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_19E4649AEE05549F8F13DD52321F9221" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_C757F7A8EA0658BD9EF54FCBDBF01C5E" xlink:to="loc_srt_RangeMember_19E4649AEE05549F8F13DD52321F9221" 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_24DF0D0969DB567D89278F85E18FA3F8" 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_6ABE0A8B748A5D1E8F633C99D76A5D8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_24DF0D0969DB567D89278F85E18FA3F8" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_6ABE0A8B748A5D1E8F633C99D76A5D8F" 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_75DCFAF70995598B92BAA95CB5AAF0A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_6ABE0A8B748A5D1E8F633C99D76A5D8F" xlink:to="loc_srt_StatementGeographicalAxis_75DCFAF70995598B92BAA95CB5AAF0A0" 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_228D4AFA4B7251EB87EC58620D4A3676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_75DCFAF70995598B92BAA95CB5AAF0A0" xlink:to="loc_srt_SegmentGeographicalDomain_D8BC6A738E0D4ABF8C45C4B74338E388_228D4AFA4B7251EB87EC58620D4A3676" 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_07C085C325B353BC931211F16A9A6C2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_75DCFAF70995598B92BAA95CB5AAF0A0" xlink:to="loc_srt_SegmentGeographicalDomain_07C085C325B353BC931211F16A9A6C2A" 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_DD98E653377352AD8BC91696AB8D85DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_07C085C325B353BC931211F16A9A6C2A" xlink:to="loc_country_US_DD98E653377352AD8BC91696AB8D85DF" 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_6E4F7BD3FA895891A7081C933AA0BED3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_07C085C325B353BC931211F16A9A6C2A" xlink:to="loc_country_CA_6E4F7BD3FA895891A7081C933AA0BED3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_OtherinternationalMember" xlink:label="loc_mtrx_OtherinternationalMember_5F998C6329A35074B62FA7CE5264A5FA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_07C085C325B353BC931211F16A9A6C2A" xlink:to="loc_mtrx_OtherinternationalMember_5F998C6329A35074B62FA7CE5264A5FA" 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_C49095A46D27511792B4875B8271AEEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_24DF0D0969DB567D89278F85E18FA3F8" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_C49095A46D27511792B4875B8271AEEE" 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_F56953C642325EBB85675420C614841C" 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_EE1F3231E26F5E1B8107BAD9E3D35D42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EE1F3231E26F5E1B8107BAD9E3D35D42" 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_C050EA76B304548E8FD3BEEB42F06044" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EE1F3231E26F5E1B8107BAD9E3D35D42" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_C050EA76B304548E8FD3BEEB42F06044" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C050EA76B304548E8FD3BEEB42F06044" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_DEB6F152AE9FD7707CDBEEDABA80C3E3_BFD370DFBFF359B6A557D281F91D8F63" 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_A541CABF97EE52CCA7BF020B56D67B2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C050EA76B304548E8FD3BEEB42F06044" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A541CABF97EE52CCA7BF020B56D67B2F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_4D3EBFFFF5A15ABD870CA996B5E013AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A541CABF97EE52CCA7BF020B56D67B2F" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_4D3EBFFFF5A15ABD870CA996B5E013AE" 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_07EDDBB975875212B296D35B5614A5B1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EE1F3231E26F5E1B8107BAD9E3D35D42" xlink:to="loc_srt_ConsolidationItemsAxis_07EDDBB975875212B296D35B5614A5B1" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_07EDDBB975875212B296D35B5614A5B1" xlink:to="loc_srt_ConsolidationItemsDomain_549B853D0E908813B76DEEDABA8105D3_BFD370DFBFF359B6A557D281F91D8F63" 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_5FCA6E13C4295B5A8B7251B4E85E850E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_07EDDBB975875212B296D35B5614A5B1" xlink:to="loc_srt_ConsolidationItemsDomain_5FCA6E13C4295B5A8B7251B4E85E850E" 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_B1F412CAC81A55C4AACB1B1641B58EF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_5FCA6E13C4295B5A8B7251B4E85E850E" xlink:to="loc_us-gaap_IntersegmentEliminationMember_B1F412CAC81A55C4AACB1B1641B58EF1" 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_1F236CB81BBE54059185AD063E0870B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EE1F3231E26F5E1B8107BAD9E3D35D42" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_1F236CB81BBE54059185AD063E0870B3" 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_BFD370DFBFF359B6A557D281F91D8F63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1F236CB81BBE54059185AD063E0870B3" xlink:to="loc_us-gaap_SegmentDomain_9C8D4867F442BE1B0EFBEEDABA815069_BFD370DFBFF359B6A557D281F91D8F63" 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_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1F236CB81BBE54059185AD063E0870B3" xlink:to="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_67ADF08710F155CD8AF8D69946D03A79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:to="loc_mtrx_ElectricalInfrastructureMember_67ADF08710F155CD8AF8D69946D03A79" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_F0E0ABBD9F24505292005F692093B10F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:to="loc_mtrx_OilGasAndChemicalMember_F0E0ABBD9F24505292005F692093B10F" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_467398C3A5B5559C8529E5FDCAD51CA0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:to="loc_mtrx_StorageSolutionsMember_467398C3A5B5559C8529E5FDCAD51CA0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_9E750E45BB585ADA8F06B49E64D97681" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:to="loc_mtrx_IndustrialMember_9E750E45BB585ADA8F06B49E64D97681" 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_E66C97F85C9A510B83C8222453512309" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F24741B8B8B05F7281AB5F18B49FE3CE" xlink:to="loc_us-gaap_AllOtherSegmentsMember_E66C97F85C9A510B83C8222453512309" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20190331.xsd#mtrx_Grossrevenues" xlink:label="loc_mtrx_Grossrevenues_9CD36E8671625D74A51344481AED11A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_mtrx_Grossrevenues_9CD36E8671625D74A51344481AED11A1" 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_744D4EAC500F5F9EB7B1794C73AF5850" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_us-gaap_Revenues_744D4EAC500F5F9EB7B1794C73AF5850" 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_5E33E161DFA85363B4EF89088A282D8C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_us-gaap_GrossProfit_5E33E161DFA85363B4EF89088A282D8C" 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_168582197CB85D43A875FFAC8BA61D3E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_us-gaap_OperatingIncomeLoss_168582197CB85D43A875FFAC8BA61D3E" 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_389C81435E235E1BA6F045116324E1A0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F56953C642325EBB85675420C614841C" xlink:to="loc_us-gaap_Assets_389C81435E235E1BA6F045116324E1A0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" />
</link:linkbase>
