<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:34746eed-6f5b-4109-a5dc-fc3090897547,g:af5a62f4-b469-4f8d-9861-f8354f8ea07d-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CoverPage" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CoverPage" xlink:type="extended" id="i4e901c72ef4d4893bbeccf52cb38161d_CoverPage"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofIncome"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofIncome" xlink:type="extended" id="i68594e2451c4442c92df9e5a3606c7ad_CondensedConsolidatedStatementsofIncome"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofComprehensiveIncome"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="extended" id="iafb025098ff04d60969953ef419b4703_CondensedConsolidatedStatementsofComprehensiveIncome"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical" xlink:type="extended" id="i2627251f81704da0a287cd7e6035ad89_CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" id="i15c3f37ed40b474b96180f622780e802_CondensedConsolidatedBalanceSheets"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" id="icfc728fa687741cb9f1eed15a2f0a4e6_CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended" id="ie3cc7828a4644d259704de4e996ae1c4_CondensedConsolidatedStatementsofCashFlows"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofChangesinStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="extended" id="ie0736a10ed5b4b349d593c3e99372a62_CondensedConsolidatedStatementsofChangesinStockholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_3c5a6fc0-3e3e-441f-8bde-08ac44d7be69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3c5a6fc0-3e3e-441f-8bde-08ac44d7be69" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ea347334-a1d0-47bd-a7af-8606381d65c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_ea347334-a1d0-47bd-a7af-8606381d65c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_01e4064e-ada4-4437-be9e-4aa510c0478e" xlink:href="mtrx-20200930.xsd#mtrx_Beginningequitybalancesasadjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_01e4064e-ada4-4437-be9e-4aa510c0478e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_6dd147be-b562-4b8b-8062-779050eafca4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_ProfitLoss_6dd147be-b562-4b8b-8062-779050eafca4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_f18f5347-4055-41ae-9081-fe652509eb60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_f18f5347-4055-41ae-9081-fe652509eb60" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_75b22a8b-50b6-4ed5-b3df-a3cde4499232" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_75b22a8b-50b6-4ed5-b3df-a3cde4499232" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_508a50fa-d07e-41c1-b3bc-bca81546592f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_508a50fa-d07e-41c1-b3bc-bca81546592f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_52522ed1-94cd-44a4-becd-a3344db824be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_52522ed1-94cd-44a4-becd-a3344db824be" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_84931440-d92e-4353-ada1-c301fae2aca2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_84931440-d92e-4353-ada1-c301fae2aca2" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherTreasurySharePurchases_8f78091c-0a14-4811-94c9-27752e34fa3e" xlink:href="mtrx-20200930.xsd#mtrx_OtherTreasurySharePurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_mtrx_OtherTreasurySharePurchases_8f78091c-0a14-4811-94c9-27752e34fa3e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_94573e64-51cd-4b85-982d-13f87aeb1b99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_58b91748-c8c1-4953-b923-ef52db56c6c9" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_94573e64-51cd-4b85-982d-13f87aeb1b99" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_9c81d714-f60f-465f-a5bb-a140f4730513" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_efdede4e-8b30-41d9-8574-539ea6460bfe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3c5a6fc0-3e3e-441f-8bde-08ac44d7be69" xlink:to="loc_us-gaap_StatementTable_efdede4e-8b30-41d9-8574-539ea6460bfe" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_1614fc4e-a783-419d-b461-d034e225a10c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_efdede4e-8b30-41d9-8574-539ea6460bfe" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_1614fc4e-a783-419d-b461-d034e225a10c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1614fc4e-a783-419d-b461-d034e225a10c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1614fc4e-a783-419d-b461-d034e225a10c" xlink:to="loc_us-gaap_EquityComponentDomain_1614fc4e-a783-419d-b461-d034e225a10c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1614fc4e-a783-419d-b461-d034e225a10c" xlink:to="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_77a5cd37-d50e-4ae5-8479-d1c46cf688a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:to="loc_us-gaap_CommonStockMember_77a5cd37-d50e-4ae5-8479-d1c46cf688a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_0f8092cc-7add-48bf-932d-27821bbea4c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_0f8092cc-7add-48bf-932d-27821bbea4c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_12a27a3a-b9d9-4670-924e-8e7b8f87b33e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:to="loc_us-gaap_RetainedEarningsMember_12a27a3a-b9d9-4670-924e-8e7b8f87b33e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_f5ef15fd-c7b6-4140-b295-de361b1a6c24" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:to="loc_us-gaap_TreasuryStockMember_f5ef15fd-c7b6-4140-b295-de361b1a6c24" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_069ba1fa-e6b3-487c-bad0-ed9b92734124" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_12ec0bd9-36ef-4d22-aa5f-68d65b0f7976" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_069ba1fa-e6b3-487c-bad0-ed9b92734124" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical" xlink:type="extended" id="i7e1b41a3639f4b4fb8abd829c37c24ee_CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_80ca2a9c-aba9-4a67-93ea-a483d81e6fd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_80ca2a9c-aba9-4a67-93ea-a483d81e6fd4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_DeferredSharesIssued_539e443b-0649-40ba-af30-1aef5a4068ee" xlink:href="mtrx-20200930.xsd#mtrx_DeferredSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_mtrx_DeferredSharesIssued_539e443b-0649-40ba-af30-1aef5a4068ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_a52f4b43-6e07-41c8-ae26-412b6f7bbc40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_a52f4b43-6e07-41c8-ae26-412b6f7bbc40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_f1ae6ced-0454-47a0-ac9c-51da257cdd1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_f1ae6ced-0454-47a0-ac9c-51da257cdd1c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_7c7957f3-44f5-46fd-a115-a14535457bf2" xlink:href="mtrx-20200930.xsd#mtrx_OtherTreasurySharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_7c7957f3-44f5-46fd-a115-a14535457bf2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_414b1f9d-dc06-409d-af8a-3856780f5ed2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_a0ce9a0e-7735-4960-b61e-cb2300a6166b" xlink:to="loc_us-gaap_StatementTable_414b1f9d-dc06-409d-af8a-3856780f5ed2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_c5e23a10-a275-415e-b758-621b95fa1d14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_414b1f9d-dc06-409d-af8a-3856780f5ed2" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_c5e23a10-a275-415e-b758-621b95fa1d14" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c5e23a10-a275-415e-b758-621b95fa1d14_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c5e23a10-a275-415e-b758-621b95fa1d14" xlink:to="loc_us-gaap_EquityComponentDomain_c5e23a10-a275-415e-b758-621b95fa1d14_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_09e6a3da-d081-4a64-8e56-7b835d7e2a95" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c5e23a10-a275-415e-b758-621b95fa1d14" xlink:to="loc_us-gaap_EquityComponentDomain_09e6a3da-d081-4a64-8e56-7b835d7e2a95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_494cb23c-5dd0-43d3-979c-af3e129477c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09e6a3da-d081-4a64-8e56-7b835d7e2a95" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_494cb23c-5dd0-43d3-979c-af3e129477c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_ede861c2-98b1-49c0-b4f2-dbc339b8ce7d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09e6a3da-d081-4a64-8e56-7b835d7e2a95" xlink:to="loc_us-gaap_TreasuryStockMember_ede861c2-98b1-49c0-b4f2-dbc339b8ce7d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#BasisofPresentationNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationNotes" xlink:type="extended" id="i9adb5fc221914314abb4b0df2548e422_BasisofPresentationNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies" xlink:type="simple" xlink:href="mtrx-20200930.xsd#BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies" xlink:type="extended" id="i1d4ca57d996c4a7099dd328de6df180a_BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationNarrativeDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#BasisofPresentationBasisofPresentationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationNarrativeDetails" xlink:type="extended" id="i99c943e5d01b4041abea54e8facdb7e4_BasisofPresentationBasisofPresentationNarrativeDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RevenueNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueNotes" xlink:type="extended" id="icf728ff2e39444afb694c3948d21d34b_RevenueNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RevenueTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueTables" xlink:type="extended" id="i5ef56e73d8b84de7ac2ce56e2e71b52c_RevenueTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_283c8efc-06c6-45e3-ae18-c9acc4e6b8b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_53499aec-473d-490f-923f-a6347b12db9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_283c8efc-06c6-45e3-ae18-c9acc4e6b8b8" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_53499aec-473d-490f-923f-a6347b12db9a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_53499aec-473d-490f-923f-a6347b12db9a" xlink:to="loc_srt_StatementGeographicalAxis_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3" xlink:to="loc_srt_SegmentGeographicalDomain_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_e6bf3341-9a0d-47a3-80f1-88177411e66d" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_fcac8fdb-6499-4ef0-8f2d-c48f9c6ca7c3" xlink:to="loc_srt_SegmentGeographicalDomain_e6bf3341-9a0d-47a3-80f1-88177411e66d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_9bbd4b6f-99d8-437d-b768-3660cc37c9d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_53499aec-473d-490f-923f-a6347b12db9a" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_9bbd4b6f-99d8-437d-b768-3660cc37c9d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_9bbd4b6f-99d8-437d-b768-3660cc37c9d0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_9bbd4b6f-99d8-437d-b768-3660cc37c9d0" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_9bbd4b6f-99d8-437d-b768-3660cc37c9d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_f28867e5-7fb7-4b4d-bbae-d6e3eeb41fd9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_9bbd4b6f-99d8-437d-b768-3660cc37c9d0" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_f28867e5-7fb7-4b4d-bbae-d6e3eeb41fd9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RevenueDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueDetails" xlink:type="extended" id="ibfa4a260d4af485f9559215c968826ca_RevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_550012a1-2529-4bb6-95fd-3e1ac0125c9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_c0d797c1-1dc2-49cc-b50e-55eabc1b6647" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_550012a1-2529-4bb6-95fd-3e1ac0125c9a" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_c0d797c1-1dc2-49cc-b50e-55eabc1b6647" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_cc70f530-135a-43e5-b9e9-99cb257cf2f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_550012a1-2529-4bb6-95fd-3e1ac0125c9a" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_cc70f530-135a-43e5-b9e9-99cb257cf2f8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_022a2944-0599-4645-b858-26fe35a4a278" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_cc70f530-135a-43e5-b9e9-99cb257cf2f8" xlink:to="loc_srt_StatementGeographicalAxis_022a2944-0599-4645-b858-26fe35a4a278" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_022a2944-0599-4645-b858-26fe35a4a278_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_022a2944-0599-4645-b858-26fe35a4a278" xlink:to="loc_srt_SegmentGeographicalDomain_022a2944-0599-4645-b858-26fe35a4a278_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_36aa9341-5798-45c0-8a05-1ceadb794ddb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_022a2944-0599-4645-b858-26fe35a4a278" xlink:to="loc_srt_SegmentGeographicalDomain_36aa9341-5798-45c0-8a05-1ceadb794ddb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_2ed580b8-7946-412c-9b8c-a04dfeb5a3ec" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_36aa9341-5798-45c0-8a05-1ceadb794ddb" xlink:to="loc_country_US_2ed580b8-7946-412c-9b8c-a04dfeb5a3ec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CA_fa758f18-c16b-43d9-9931-448cd6271ada" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_CA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_36aa9341-5798-45c0-8a05-1ceadb794ddb" xlink:to="loc_country_CA_fa758f18-c16b-43d9-9931-448cd6271ada" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherinternationalMember_3242fbd5-24b1-46ce-a30a-1732d41d88e2" xlink:href="mtrx-20200930.xsd#mtrx_OtherinternationalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_36aa9341-5798-45c0-8a05-1ceadb794ddb" xlink:to="loc_mtrx_OtherinternationalMember_3242fbd5-24b1-46ce-a30a-1732d41d88e2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0f125e99-0c90-4191-9a4f-addc14db5f1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_cc70f530-135a-43e5-b9e9-99cb257cf2f8" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0f125e99-0c90-4191-9a4f-addc14db5f1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_0f125e99-0c90-4191-9a4f-addc14db5f1f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0f125e99-0c90-4191-9a4f-addc14db5f1f" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_0f125e99-0c90-4191-9a4f-addc14db5f1f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_555710da-ce93-4bfe-898c-b8071d85c599" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerBasisOfPricingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_0f125e99-0c90-4191-9a4f-addc14db5f1f" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_555710da-ce93-4bfe-898c-b8071d85c599" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedPriceContractMember_4a661172-80d5-4c9c-b1a9-3cbb1dfc7106" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FixedPriceContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_555710da-ce93-4bfe-898c-b8071d85c599" xlink:to="loc_us-gaap_FixedPriceContractMember_4a661172-80d5-4c9c-b1a9-3cbb1dfc7106" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeAndMaterialsContractMember_fc9c1b87-3a0f-43e0-8086-aae67e3af1f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TimeAndMaterialsContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_555710da-ce93-4bfe-898c-b8071d85c599" xlink:to="loc_us-gaap_TimeAndMaterialsContractMember_fc9c1b87-3a0f-43e0-8086-aae67e3af1f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_9e3f91b3-5b8c-4e72-aca8-e1a8018f501f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_68e1a919-6b27-4564-96a2-79819d5247da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesNotes" xlink:type="extended" id="i4e9af59723ba4a498a3cedb3fd98cd11_LeasesNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesTables" xlink:type="extended" id="i1d26c5b942ad42339be7c7c4e301c4ef_LeasesTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesNarrativeDetails" xlink:type="extended" id="i63ba1f92a6af4c00989a19affef83fd2_LeasesNarrativeDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesComponentsofLeaseCostsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="extended" id="i291471d6d9474c369b08d3fde573436e_LeasesComponentsofLeaseCostsDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesMaturityAnalysisDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesMaturityAnalysisDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesMaturityAnalysisDetails" xlink:type="extended" id="i07511fa48231431a9a2bdc4149daa9ef_LeasesMaturityAnalysisDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesOtherLeaseInformationDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesOtherLeaseInformationDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesOtherLeaseInformationDetails" xlink:type="extended" id="ifee0cf2a9fcc4543a290cf4e9ebe881c_LeasesOtherLeaseInformationDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesSupplementalCashFlowDisclosuresDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#LeasesSupplementalCashFlowDisclosuresDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesSupplementalCashFlowDisclosuresDetails" xlink:type="extended" id="ib8ed393d611247f1b0cf8a365031cc23_LeasesSupplementalCashFlowDisclosuresDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IntangibleAssetsIncludingGoodwillNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="extended" id="i08adca154d6148b89225ec95eced4fd0_IntangibleAssetsIncludingGoodwillNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IntangibleAssetsIncludingGoodwillTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="extended" id="i9211eb2ee0d34fa1a80bf45a36e31b90_IntangibleAssetsIncludingGoodwillTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_20ff5f8f-5b6a-4495-bcbc-01eff3d016fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTextBlock_9fc330fe-57c1-4ca9-994b-1910779be566" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGoodwillTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_20ff5f8f-5b6a-4495-bcbc-01eff3d016fb" xlink:to="loc_us-gaap_ScheduleOfGoodwillTextBlock_9fc330fe-57c1-4ca9-994b-1910779be566" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock_bdefb709-db5f-4d69-816f-605e7f26a35b" xlink:href="mtrx-20200930.xsd#mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_20ff5f8f-5b6a-4495-bcbc-01eff3d016fb" xlink:to="loc_mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock_bdefb709-db5f-4d69-816f-605e7f26a35b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock_114844b0-36b0-4860-9e06-83044b885c17" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_20ff5f8f-5b6a-4495-bcbc-01eff3d016fb" xlink:to="loc_us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock_114844b0-36b0-4860-9e06-83044b885c17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_20ff5f8f-5b6a-4495-bcbc-01eff3d016fb" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_16254e20-a068-4557-83d3-38f7aa1e6212" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_16254e20-a068-4557-83d3-38f7aa1e6212" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_16254e20-a068-4557-83d3-38f7aa1e6212_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_16254e20-a068-4557-83d3-38f7aa1e6212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_16254e20-a068-4557-83d3-38f7aa1e6212_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_443ac9c5-6770-4660-9e08-eb19e49f75cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_16254e20-a068-4557-83d3-38f7aa1e6212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_443ac9c5-6770-4660-9e08-eb19e49f75cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_a1b36491-7d6d-4b34-90bb-e4701289c501" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:to="loc_srt_ConsolidationItemsAxis_a1b36491-7d6d-4b34-90bb-e4701289c501" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_a1b36491-7d6d-4b34-90bb-e4701289c501_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_a1b36491-7d6d-4b34-90bb-e4701289c501" xlink:to="loc_srt_ConsolidationItemsDomain_a1b36491-7d6d-4b34-90bb-e4701289c501_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_c08859c3-853c-4256-9e01-abd76f375bf6" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_a1b36491-7d6d-4b34-90bb-e4701289c501" xlink:to="loc_srt_ConsolidationItemsDomain_c08859c3-853c-4256-9e01-abd76f375bf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8386e77c-6f1f-41bb-b5a3-81d12878bdee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8386e77c-6f1f-41bb-b5a3-81d12878bdee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8386e77c-6f1f-41bb-b5a3-81d12878bdee_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8386e77c-6f1f-41bb-b5a3-81d12878bdee" xlink:to="loc_us-gaap_SegmentDomain_8386e77c-6f1f-41bb-b5a3-81d12878bdee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7647ae94-d823-4c35-bb1a-9ae954ebc5e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8386e77c-6f1f-41bb-b5a3-81d12878bdee" xlink:to="loc_us-gaap_SegmentDomain_7647ae94-d823-4c35-bb1a-9ae954ebc5e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_28b26dda-3481-4542-9bf2-b714e6126d2c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_152bb604-9641-4d38-8232-c36d1da0a7c3" xlink:to="loc_srt_RangeAxis_28b26dda-3481-4542-9bf2-b714e6126d2c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_28b26dda-3481-4542-9bf2-b714e6126d2c_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_28b26dda-3481-4542-9bf2-b714e6126d2c" xlink:to="loc_srt_RangeMember_28b26dda-3481-4542-9bf2-b714e6126d2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_15a27279-2ac4-483c-9fd8-aeb22dde0742" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_28b26dda-3481-4542-9bf2-b714e6126d2c" xlink:to="loc_srt_RangeMember_15a27279-2ac4-483c-9fd8-aeb22dde0742" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails" xlink:type="extended" id="i34798ea1a99f44379ff5df82b488002d_IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillGross_1f5f308c-8436-4136-8f01-de6d01da52c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_GoodwillGross_1f5f308c-8436-4136-8f01-de6d01da52c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_e8b3e0d9-4f0e-4c8d-ae09-0c2031db4bd5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_e8b3e0d9-4f0e-4c8d-ae09-0c2031db4bd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0195ddaa-a669-41b2-9661-69ff4b97164f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_Goodwill_0195ddaa-a669-41b2-9661-69ff4b97164f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_6b90c68e-9d93-4060-a6d5-bd82e9e367f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_6b90c68e-9d93-4060-a6d5-bd82e9e367f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_d38e266d-78f6-45d5-87f2-200b46aeee5e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_d38e266d-78f6-45d5-87f2-200b46aeee5e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4e173710-d929-4664-91fb-9ecd0755aca7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_d582f72b-709c-4991-ade2-6c0daf65d50e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_d582f72b-709c-4991-ade2-6c0daf65d50e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_1d8b1d9f-db22-419c-a125-e8cf212ff02e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:to="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_1d8b1d9f-db22-419c-a125-e8cf212ff02e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_935ee697-9c4c-4721-8d81-4fcd90c3877f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_935ee697-9c4c-4721-8d81-4fcd90c3877f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_c8b9872d-4836-4bc3-9bd8-6df988c385f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_1c0864c6-3e03-4680-9c61-b6babfebfa5c" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_c8b9872d-4836-4bc3-9bd8-6df988c385f1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_2dc9e0cf-25eb-473d-93c8-2d8c904bdb7c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_47ad1a27-d3b1-4a95-b282-94a1afaacb89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_82647953-ab19-40a9-9c23-d83df25b62ff" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_47ad1a27-d3b1-4a95-b282-94a1afaacb89" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_3d8889cd-6291-40e2-958e-29eb30e4694f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_47ad1a27-d3b1-4a95-b282-94a1afaacb89" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3d8889cd-6291-40e2-958e-29eb30e4694f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3d8889cd-6291-40e2-958e-29eb30e4694f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3d8889cd-6291-40e2-958e-29eb30e4694f" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3d8889cd-6291-40e2-958e-29eb30e4694f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fe3c7976-5927-45af-9c19-5785068513f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3d8889cd-6291-40e2-958e-29eb30e4694f" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fe3c7976-5927-45af-9c19-5785068513f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_b4c19c81-6e94-4c7e-8874-df49e97ddd7f" xlink:href="mtrx-20200930.xsd#mtrx_BaillieTankEquipmentLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fe3c7976-5927-45af-9c19-5785068513f0" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_b4c19c81-6e94-4c7e-8874-df49e97ddd7f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_HoustonInterestsLLCMember_bd464e33-cbd9-46bb-a026-8de61c895070" xlink:href="mtrx-20200930.xsd#mtrx_HoustonInterestsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fe3c7976-5927-45af-9c19-5785068513f0" xlink:to="loc_mtrx_HoustonInterestsLLCMember_bd464e33-cbd9-46bb-a026-8de61c895070" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_dfe96607-bd77-40ed-a8c1-64bb82894058" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_47ad1a27-d3b1-4a95-b282-94a1afaacb89" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_dfe96607-bd77-40ed-a8c1-64bb82894058" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_dfe96607-bd77-40ed-a8c1-64bb82894058_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_dfe96607-bd77-40ed-a8c1-64bb82894058" xlink:to="loc_us-gaap_SegmentDomain_dfe96607-bd77-40ed-a8c1-64bb82894058_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_dfe96607-bd77-40ed-a8c1-64bb82894058" xlink:to="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_8fa08c56-a4b7-411b-b2f2-0098b6d97bf7" xlink:href="mtrx-20200930.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_8fa08c56-a4b7-411b-b2f2-0098b6d97bf7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OilGasAndChemicalMember_9967defd-74f8-4cee-aa5d-aae1e55a5456" xlink:href="mtrx-20200930.xsd#mtrx_OilGasAndChemicalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_OilGasAndChemicalMember_9967defd-74f8-4cee-aa5d-aae1e55a5456" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageSolutionsMember_7b81e09c-e578-4361-8779-2e4d56ed89a6" xlink:href="mtrx-20200930.xsd#mtrx_StorageSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_StorageSolutionsMember_7b81e09c-e578-4361-8779-2e4d56ed89a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnallocatedCorporateCostsMember_38b8722a-7e19-4179-bd56-a3baf93d8c19" xlink:href="mtrx-20200930.xsd#mtrx_UnallocatedCorporateCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_UnallocatedCorporateCostsMember_38b8722a-7e19-4179-bd56-a3baf93d8c19" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ReportingUnitMember_f182d27c-978c-4be9-b4a8-60863cc6b5ac" xlink:href="mtrx-20200930.xsd#mtrx_ReportingUnitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_ReportingUnitMember_f182d27c-978c-4be9-b4a8-60863cc6b5ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_1a674c1f-2ab8-4c12-9828-ac201ebbeb01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_us-gaap_AllOtherSegmentsMember_1a674c1f-2ab8-4c12-9828-ac201ebbeb01" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_a39a76ef-5144-4667-835f-95189b53080e" xlink:href="mtrx-20200930.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_a39a76ef-5144-4667-835f-95189b53080e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_da0798c6-cb15-4a13-b0e5-07727cb8f686" xlink:href="mtrx-20200930.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9f6cb5fd-aefc-4624-b678-9fb3f6b72a2e" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_da0798c6-cb15-4a13-b0e5-07727cb8f686" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails" xlink:type="extended" id="i29ff1c1fe5834c7c9f86f2410fc9d971_IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_7e8ac117-5023-4864-8a0c-c585fcb22def" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_7e8ac117-5023-4864-8a0c-c585fcb22def" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_cd77f7fd-438b-4869-a10a-09078ab0b86e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_cd77f7fd-438b-4869-a10a-09078ab0b86e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_de74bdeb-338b-423a-9d63-e8c7c515ad34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_de74bdeb-338b-423a-9d63-e8c7c515ad34" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_cd70d150-4422-470d-a51a-c34b2ced571a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_cd70d150-4422-470d-a51a-c34b2ced571a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_cf7d4b7c-7a8c-4d16-a9bb-dd7d152d256c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_cf7d4b7c-7a8c-4d16-a9bb-dd7d152d256c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c8c85c97-a963-4be9-aaac-941602aa0ccb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c8c85c97-a963-4be9-aaac-941602aa0ccb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedTradeNames_5a60d6be-2348-4768-9a41-397792988618" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedTradeNames"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_5a60d6be-2348-4768-9a41-397792988618" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_85a18dd6-9124-48ed-8194-618464d82ad7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_85a18dd6-9124-48ed-8194-618464d82ad7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_4f429aaa-f8af-4c0a-9219-e7a39692c120" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_4f429aaa-f8af-4c0a-9219-e7a39692c120" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_893ffe6d-a3fa-47c0-8f3e-e2bb4cb582c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_2e4d4f02-ca58-4d36-bffc-115f5a0137aa" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_893ffe6d-a3fa-47c0-8f3e-e2bb4cb582c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_a651631d-b620-492d-b395-2d9349105b60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_893ffe6d-a3fa-47c0-8f3e-e2bb4cb582c3" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_a651631d-b620-492d-b395-2d9349105b60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a651631d-b620-492d-b395-2d9349105b60_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a651631d-b620-492d-b395-2d9349105b60" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a651631d-b620-492d-b395-2d9349105b60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09fc45d3-fec8-4f95-b861-17acbf54b558" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a651631d-b620-492d-b395-2d9349105b60" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09fc45d3-fec8-4f95-b861-17acbf54b558" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_HoustonInterestsLLCMember_d3179463-7d56-4fd5-9550-22949ada792f" xlink:href="mtrx-20200930.xsd#mtrx_HoustonInterestsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09fc45d3-fec8-4f95-b861-17acbf54b558" xlink:to="loc_mtrx_HoustonInterestsLLCMember_d3179463-7d56-4fd5-9550-22949ada792f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_afcd1b02-2e3a-439a-8978-b432cfe22e93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_893ffe6d-a3fa-47c0-8f3e-e2bb4cb582c3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_afcd1b02-2e3a-439a-8978-b432cfe22e93" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_afcd1b02-2e3a-439a-8978-b432cfe22e93_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_afcd1b02-2e3a-439a-8978-b432cfe22e93" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_afcd1b02-2e3a-439a-8978-b432cfe22e93_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_afcd1b02-2e3a-439a-8978-b432cfe22e93" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntellectualPropertyMember_8f9d8c25-5185-4ed0-a160-c3ba8a5af34c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntellectualPropertyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:to="loc_us-gaap_IntellectualPropertyMember_8f9d8c25-5185-4ed0-a160-c3ba8a5af34c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1667c8d2-3c25-4697-a7b9-b824e086aef7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1667c8d2-3c25-4697-a7b9-b824e086aef7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_2aa5b398-40fd-47c8-9bc7-f059a66539c8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncompeteAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_2aa5b398-40fd-47c8-9bc7-f059a66539c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_ef10b977-801e-4b93-bfc6-a9e8d4b5945e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:to="loc_us-gaap_TradeNamesMember_ef10b977-801e-4b93-bfc6-a9e8d4b5945e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_IronandSteelCustomerRelationshipMember_5ba597bc-239a-4a73-8118-ceabceeb2fbf" xlink:href="mtrx-20200930.xsd#mtrx_IronandSteelCustomerRelationshipMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9af58cf8-17a0-4478-9800-e6728c2c8858" xlink:to="loc_mtrx_IronandSteelCustomerRelationshipMember_5ba597bc-239a-4a73-8118-ceabceeb2fbf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_baf08160-cab6-4451-9866-3cea96458a7b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_893ffe6d-a3fa-47c0-8f3e-e2bb4cb582c3" xlink:to="loc_srt_RangeAxis_baf08160-cab6-4451-9866-3cea96458a7b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_baf08160-cab6-4451-9866-3cea96458a7b_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_baf08160-cab6-4451-9866-3cea96458a7b" xlink:to="loc_srt_RangeMember_baf08160-cab6-4451-9866-3cea96458a7b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_73d47e37-0bc3-45a0-8232-8111437deabf" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_baf08160-cab6-4451-9866-3cea96458a7b" xlink:to="loc_srt_RangeMember_73d47e37-0bc3-45a0-8232-8111437deabf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_77b53239-5085-4aca-b2af-0085fbb84752" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_73d47e37-0bc3-45a0-8232-8111437deabf" xlink:to="loc_srt_MinimumMember_77b53239-5085-4aca-b2af-0085fbb84752" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_3780720a-61b7-4bf1-b879-1b5567bc8152" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_73d47e37-0bc3-45a0-8232-8111437deabf" xlink:to="loc_srt_MaximumMember_3780720a-61b7-4bf1-b879-1b5567bc8152" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="extended" id="ia6f5dd6982574a7ab8fac9a42fa085c0_IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3b8f5e37-4fb6-4530-8b4a-0329d9f88522" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_3b8f5e37-4fb6-4530-8b4a-0329d9f88522" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3ba6f639-9502-4e69-b469-a4645b3964f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3ba6f639-9502-4e69-b469-a4645b3964f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3ba6f639-9502-4e69-b469-a4645b3964f5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3ba6f639-9502-4e69-b469-a4645b3964f5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3ba6f639-9502-4e69-b469-a4645b3964f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2ec44c2a-f94e-428a-8b4e-e7c964c635cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_3ba6f639-9502-4e69-b469-a4645b3964f5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2ec44c2a-f94e-428a-8b4e-e7c964c635cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:to="loc_srt_ConsolidationItemsAxis_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524" xlink:to="loc_srt_ConsolidationItemsDomain_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_accf0da9-2ba3-4c4a-acd1-b0cab8a16f76" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_d1a19ebc-e0aa-4a2e-9fb3-c8158edf7524" xlink:to="loc_srt_ConsolidationItemsDomain_accf0da9-2ba3-4c4a-acd1-b0cab8a16f76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5b0368a3-2fca-455a-86df-6ad48c81373e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5b0368a3-2fca-455a-86df-6ad48c81373e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5b0368a3-2fca-455a-86df-6ad48c81373e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5b0368a3-2fca-455a-86df-6ad48c81373e" xlink:to="loc_us-gaap_SegmentDomain_5b0368a3-2fca-455a-86df-6ad48c81373e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e631e614-65ea-49ca-bde8-114a9de993d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5b0368a3-2fca-455a-86df-6ad48c81373e" xlink:to="loc_us-gaap_SegmentDomain_e631e614-65ea-49ca-bde8-114a9de993d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_cec97dc0-210e-4c29-8078-b222d058e233" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0abc8404-01a2-4fb5-a66f-8f2c99062584" xlink:to="loc_srt_RangeAxis_cec97dc0-210e-4c29-8078-b222d058e233" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_cec97dc0-210e-4c29-8078-b222d058e233_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_cec97dc0-210e-4c29-8078-b222d058e233" xlink:to="loc_srt_RangeMember_cec97dc0-210e-4c29-8078-b222d058e233_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5f7862fb-3df7-4667-bae6-ba03fb0680f6" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_cec97dc0-210e-4c29-8078-b222d058e233" xlink:to="loc_srt_RangeMember_5f7862fb-3df7-4667-bae6-ba03fb0680f6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#DebtNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="extended" id="ic1b50be1cdd442f6ae59e61c4023faa2_DebtNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#DebtTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="extended" id="i553af0befc5e468585d718edd9f432f0_DebtTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="simple" xlink:href="mtrx-20200930.xsd#DebtAdditionalInformationDetail"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="extended" id="ibced57fff4a541a6ae3e27e4dda1c904_DebtAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxLineOfCreditFacilityMaximumBorrowingCapacityNewAgreementAmount_b1b2c81f-4d4a-46ea-a734-888fa7687045" xlink:href="mtrx-20200930.xsd#mtrx_MtrxLineOfCreditFacilityMaximumBorrowingCapacityNewAgreementAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_MtrxLineOfCreditFacilityMaximumBorrowingCapacityNewAgreementAmount_b1b2c81f-4d4a-46ea-a734-888fa7687045" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CreditAgreementTerm_52312d13-150c-476c-8fc3-67db44460ca0" xlink:href="mtrx-20200930.xsd#mtrx_CreditAgreementTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_CreditAgreementTerm_52312d13-150c-476c-8fc3-67db44460ca0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_02083675-84c1-44aa-9239-a98ef2dc8edc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_02083675-84c1-44aa-9239-a98ef2dc8edc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_cbeafb00-9b82-45a6-ac19-b4cc05233ffe" xlink:href="mtrx-20200930.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_cbeafb00-9b82-45a6-ac19-b4cc05233ffe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_10b9097a-8561-4401-8ce6-9f9f91fca4e7" xlink:href="mtrx-20200930.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_10b9097a-8561-4401-8ce6-9f9f91fca4e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility_037b5b02-b4ce-44c5-ac0d-2eb3bf1bc694" xlink:href="mtrx-20200930.xsd#mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility_037b5b02-b4ce-44c5-ac0d-2eb3bf1bc694" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_b8abb143-54ee-457d-a36b-1010c1e7bae5" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_b8abb143-54ee-457d-a36b-1010c1e7bae5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_8708cba2-4377-4948-9398-1d25af90cfac" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_8708cba2-4377-4948-9398-1d25af90cfac" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_e98fd755-2d6e-4622-80da-a4a62789479c" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_e98fd755-2d6e-4622-80da-a4a62789479c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_1e58bc30-8f4e-4855-a030-14e7ed4c3282" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_1e58bc30-8f4e-4855-a030-14e7ed4c3282" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_213a6bee-c373-4cd7-90ad-b2cdf300f1b0" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_213a6bee-c373-4cd7-90ad-b2cdf300f1b0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_1ccd57de-dd85-47b0-9c6e-1e958e005fe3" xlink:href="mtrx-20200930.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_1ccd57de-dd85-47b0-9c6e-1e958e005fe3" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_58f27059-6be0-4363-8395-e50a3b1a27e4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_58f27059-6be0-4363-8395-e50a3b1a27e4" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SeniorLeverageRatioMax_d2938260-c448-4411-961e-2f510a327151" xlink:href="mtrx-20200930.xsd#mtrx_SeniorLeverageRatioMax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_SeniorLeverageRatioMax_d2938260-c448-4411-961e-2f510a327151" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SeniorLeverageRatioMin_1c3a8fa2-96f8-4d29-8c63-066ddda39719" xlink:href="mtrx-20200930.xsd#mtrx_SeniorLeverageRatioMin"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_SeniorLeverageRatioMin_1c3a8fa2-96f8-4d29-8c63-066ddda39719" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_ffce2ea9-3017-40a8-989d-9b3f560aca25" xlink:href="mtrx-20200930.xsd#mtrx_FixedChargeCoverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_ffce2ea9-3017-40a8-989d-9b3f560aca25" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_e18ad8ba-d8be-441e-bda8-a83d256175be" xlink:href="mtrx-20200930.xsd#mtrx_FixedChargeCoverageRatioMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_e18ad8ba-d8be-441e-bda8-a83d256175be" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion_0576f422-0bd0-498b-92db-11b31b022872" xlink:href="mtrx-20200930.xsd#mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion_0576f422-0bd0-498b-92db-11b31b022872" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_2752c993-88ee-40b8-baa2-37bde7c48498" xlink:href="mtrx-20200930.xsd#mtrx_AmountOfLimitOnAssetDispositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_2752c993-88ee-40b8-baa2-37bde7c48498" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_17e6a3c4-c95a-4fe6-ad86-6fb652e801d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_17e6a3c4-c95a-4fe6-ad86-6fb652e801d4" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_4718a610-52c3-40e8-a14a-d866ca76287e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_5f444f5d-552b-4799-90eb-85c62fae3bb7" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_4718a610-52c3-40e8-a14a-d866ca76287e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_36df102a-aaff-48f1-8deb-62c720fc6bb6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_4718a610-52c3-40e8-a14a-d866ca76287e" xlink:to="loc_us-gaap_VariableRateAxis_36df102a-aaff-48f1-8deb-62c720fc6bb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_36df102a-aaff-48f1-8deb-62c720fc6bb6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_36df102a-aaff-48f1-8deb-62c720fc6bb6" xlink:to="loc_us-gaap_VariableRateDomain_36df102a-aaff-48f1-8deb-62c720fc6bb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_25310fb9-b2d8-4aa5-b644-1d035a05e52a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_36df102a-aaff-48f1-8deb-62c720fc6bb6" xlink:to="loc_us-gaap_VariableRateDomain_25310fb9-b2d8-4aa5-b644-1d035a05e52a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CdorRateMember_6347b48c-491c-47ec-af17-0682dc8e7034" xlink:href="mtrx-20200930.xsd#mtrx_CdorRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_25310fb9-b2d8-4aa5-b644-1d035a05e52a" xlink:to="loc_mtrx_CdorRateMember_6347b48c-491c-47ec-af17-0682dc8e7034" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CanadianPrimeRateMember_c9f44486-91d9-4646-b6bd-08fc0afbfe45" xlink:href="mtrx-20200930.xsd#mtrx_CanadianPrimeRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_25310fb9-b2d8-4aa5-b644-1d035a05e52a" xlink:to="loc_mtrx_CanadianPrimeRateMember_c9f44486-91d9-4646-b6bd-08fc0afbfe45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_DebtAmendmentMember_b46c63bd-c0f5-4b38-8bdf-f4660aab143a" xlink:href="mtrx-20200930.xsd#mtrx_DebtAmendmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_25310fb9-b2d8-4aa5-b644-1d035a05e52a" xlink:to="loc_mtrx_DebtAmendmentMember_b46c63bd-c0f5-4b38-8bdf-f4660aab143a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_4718a610-52c3-40e8-a14a-d866ca76287e" xlink:to="loc_srt_RangeAxis_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030" xlink:to="loc_srt_RangeMember_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c982c2ee-bd96-416b-9c8c-5ba784686340" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e0b6c2b2-3e87-4bc8-8b8c-441272e5d030" xlink:to="loc_srt_RangeMember_c982c2ee-bd96-416b-9c8c-5ba784686340" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_edb5a629-7830-48ba-9372-d5e61d49b3c6" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c982c2ee-bd96-416b-9c8c-5ba784686340" xlink:to="loc_srt_MinimumMember_edb5a629-7830-48ba-9372-d5e61d49b3c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_7438b0d6-77fd-466d-ac43-66a592c468b8" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c982c2ee-bd96-416b-9c8c-5ba784686340" xlink:to="loc_srt_MaximumMember_7438b0d6-77fd-466d-ac43-66a592c468b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SrtRangeAxisAxis_ef5a99b2-ef52-44d6-8b89-41959fc88003" xlink:href="mtrx-20200930.xsd#mtrx_SrtRangeAxisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_4718a610-52c3-40e8-a14a-d866ca76287e" xlink:to="loc_mtrx_SrtRangeAxisAxis_ef5a99b2-ef52-44d6-8b89-41959fc88003" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SrtMinimumMemberMember_ef5a99b2-ef52-44d6-8b89-41959fc88003_default" xlink:href="mtrx-20200930.xsd#mtrx_SrtMinimumMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_SrtRangeAxisAxis_ef5a99b2-ef52-44d6-8b89-41959fc88003" xlink:to="loc_mtrx_SrtMinimumMemberMember_ef5a99b2-ef52-44d6-8b89-41959fc88003_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SrtMinimumMemberMember_145781ed-493d-4481-bcda-55f7c824d649" xlink:href="mtrx-20200930.xsd#mtrx_SrtMinimumMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_SrtRangeAxisAxis_ef5a99b2-ef52-44d6-8b89-41959fc88003" xlink:to="loc_mtrx_SrtMinimumMemberMember_145781ed-493d-4481-bcda-55f7c824d649" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SrtMaximumMemberMember_1c09121e-02ad-41f1-b708-1c5b7c7be16b" xlink:href="mtrx-20200930.xsd#mtrx_SrtMaximumMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_SrtRangeAxisAxis_ef5a99b2-ef52-44d6-8b89-41959fc88003" xlink:to="loc_mtrx_SrtMaximumMemberMember_1c09121e-02ad-41f1-b708-1c5b7c7be16b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_cf93efc6-ea73-4787-b4bb-2e036c566599" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_704e8a8f-8fda-45fb-8e48-4701528db6e8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_cf93efc6-ea73-4787-b4bb-2e036c566599" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_704e8a8f-8fda-45fb-8e48-4701528db6e8" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderTheSeniorCreditFacilityDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#DebtAvailabilityUnderTheSeniorCreditFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderTheSeniorCreditFacilityDetails" xlink:type="extended" id="i64c7a8f99120458a87d42c2e3f9b0a7b_DebtAvailabilityUnderTheSeniorCreditFacilityDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IncomeTaxes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:type="extended" id="i06375c4bd06b420a8936bfd87b3eaa44_IncomeTaxes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CoronavirusAidReliefandEconomicSecurityActDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CoronavirusAidReliefandEconomicSecurityActDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CoronavirusAidReliefandEconomicSecurityActDetails" xlink:type="extended" id="i9acf0425a4f946d7be76ac80c75ed05b_CoronavirusAidReliefandEconomicSecurityActDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#IncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:type="extended" id="i96d01c0250da42fb919f82e59e4f4c64_IncomeTaxesDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CommitmentsandContingenciesNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesNotes" xlink:type="extended" id="i12ad21a347054972959e7ffb260e5710_CommitmentsandContingenciesNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesAdditionalInformationDetail" xlink:type="simple" xlink:href="mtrx-20200930.xsd#CommitmentsandContingenciesAdditionalInformationDetail"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesAdditionalInformationDetail" xlink:type="extended" id="i19a2837fbad647199772f151895e5cce_CommitmentsandContingenciesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_99085e9a-5c4d-410b-b84a-9501a7c5b8d0" xlink:href="mtrx-20200930.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnapprovedChangeOrdersAmount_83823dce-e979-4fd8-829f-4a0bdf81e028" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnapprovedChangeOrdersAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_99085e9a-5c4d-410b-b84a-9501a7c5b8d0" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_83823dce-e979-4fd8-829f-4a0bdf81e028" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_4123f108-375b-4443-817e-a4c9a13c05e5" xlink:href="mtrx-20200930.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_99085e9a-5c4d-410b-b84a-9501a7c5b8d0" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_4123f108-375b-4443-817e-a4c9a13c05e5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectAxis_979a4839-b88b-4336-a4f6-df7ef2631ba5" xlink:href="mtrx-20200930.xsd#mtrx_PowerGenerationProjectAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_4123f108-375b-4443-817e-a4c9a13c05e5" xlink:to="loc_mtrx_PowerGenerationProjectAxis_979a4839-b88b-4336-a4f6-df7ef2631ba5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectDomain_979a4839-b88b-4336-a4f6-df7ef2631ba5_default" xlink:href="mtrx-20200930.xsd#mtrx_PowerGenerationProjectDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_979a4839-b88b-4336-a4f6-df7ef2631ba5" xlink:to="loc_mtrx_PowerGenerationProjectDomain_979a4839-b88b-4336-a4f6-df7ef2631ba5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectDomain_a54e7f37-5353-4f4a-91d1-5059c7bdbd66" xlink:href="mtrx-20200930.xsd#mtrx_PowerGenerationProjectDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_979a4839-b88b-4336-a4f6-df7ef2631ba5" xlink:to="loc_mtrx_PowerGenerationProjectDomain_a54e7f37-5353-4f4a-91d1-5059c7bdbd66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_3aec94e1-5e41-45da-aed2-7d783b7ec41e" xlink:href="mtrx-20200930.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_a54e7f37-5353-4f4a-91d1-5059c7bdbd66" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_3aec94e1-5e41-45da-aed2-7d783b7ec41e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_3cfdbebe-0a2a-42e9-8a6a-75f01e006c42" xlink:href="mtrx-20200930.xsd#mtrx_ClaimOnPowerGenerationProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_a54e7f37-5353-4f4a-91d1-5059c7bdbd66" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_3cfdbebe-0a2a-42e9-8a6a-75f01e006c42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_d1829a4b-8154-49a6-af3d-1e564f93f2ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_24c6ae0b-c864-4732-8075-bfa0abc950d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractsReceivableClaimsAndUncertainAmounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d1829a4b-8154-49a6-af3d-1e564f93f2ee" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_24c6ae0b-c864-4732-8075-bfa0abc950d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_248e1148-6461-4d72-be01-c9ef7f0eed64" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_d1829a4b-8154-49a6-af3d-1e564f93f2ee" xlink:to="loc_us-gaap_LossContingenciesTable_248e1148-6461-4d72-be01-c9ef7f0eed64" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#EarningsperCommonShareNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareNotes" xlink:type="extended" id="ibc2a0658f1ce4c82be4700314a867bef_EarningsperCommonShareNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#EarningsperCommonShareTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareTables" xlink:type="extended" id="i4c5ebb8877b3474496ebd6d097c0d56e_EarningsperCommonShareTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails" xlink:type="extended" id="iba8fc8e40e7d4f8a9022f1e2e905adaa_EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_d1cc2102-8e01-40e7-adc3-d5ca1e960f8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_e9f11bc6-2973-44a3-aef2-ae18897284b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_d1cc2102-8e01-40e7-adc3-d5ca1e960f8f" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_e9f11bc6-2973-44a3-aef2-ae18897284b5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_a15456fc-3406-46e9-8fd9-2bdbff551931" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_e9f11bc6-2973-44a3-aef2-ae18897284b5" xlink:to="loc_us-gaap_StatementClassOfStockAxis_a15456fc-3406-46e9-8fd9-2bdbff551931" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_a15456fc-3406-46e9-8fd9-2bdbff551931_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a15456fc-3406-46e9-8fd9-2bdbff551931" xlink:to="loc_us-gaap_ClassOfStockDomain_a15456fc-3406-46e9-8fd9-2bdbff551931_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2a4ff343-baf5-4432-8751-c09c4588e00c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a15456fc-3406-46e9-8fd9-2bdbff551931" xlink:to="loc_us-gaap_ClassOfStockDomain_2a4ff343-baf5-4432-8751-c09c4588e00c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails" xlink:type="extended" id="ic41ef2c1e2db43cd89b0a82e2ee03023_EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5535ecb7-f779-4850-9b6f-ca689beef4bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_f6bf3cc2-3e69-48ca-9239-9a728c9524d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5535ecb7-f779-4850-9b6f-ca689beef4bb" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_f6bf3cc2-3e69-48ca-9239-9a728c9524d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_fb427e8f-5fc0-4620-bbaa-745fcc10ffef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5535ecb7-f779-4850-9b6f-ca689beef4bb" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_fb427e8f-5fc0-4620-bbaa-745fcc10ffef" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_262194df-60db-45b9-a896-5350bdfc7957" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_fb427e8f-5fc0-4620-bbaa-745fcc10ffef" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_262194df-60db-45b9-a896-5350bdfc7957" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_262194df-60db-45b9-a896-5350bdfc7957_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_262194df-60db-45b9-a896-5350bdfc7957" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_262194df-60db-45b9-a896-5350bdfc7957_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_e7ca0891-4db5-4d2e-acc0-38a546bd57c0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_262194df-60db-45b9-a896-5350bdfc7957" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_e7ca0891-4db5-4d2e-acc0-38a546bd57c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_990617eb-0657-4a84-95a0-cafa59d720d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_e7ca0891-4db5-4d2e-acc0-38a546bd57c0" xlink:to="loc_us-gaap_EmployeeStockOptionMember_990617eb-0657-4a84-95a0-cafa59d720d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_f18083c9-41dc-41c1-892f-df7d2bf30982" xlink:href="mtrx-20200930.xsd#mtrx_NonvestedDeferredSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_e7ca0891-4db5-4d2e-acc0-38a546bd57c0" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_f18083c9-41dc-41c1-892f-df7d2bf30982" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#SegmentInformationNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="extended" id="i9bf027be35304f179f87d13cae092f51_SegmentInformationNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#SegmentInformationTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" id="i830d2798b49d419880db9aa865819885_SegmentInformationTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#SegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:type="extended" id="icb161953bec14de5b29e75dd4afa1fe8_SegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_Grossrevenues_95debbf7-d32e-43a9-bb66-f9e0666bd9ac" xlink:href="mtrx-20200930.xsd#mtrx_Grossrevenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_mtrx_Grossrevenues_95debbf7-d32e-43a9-bb66-f9e0666bd9ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_10fc15cc-03a8-43b8-9ebe-795f82a1a281" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_Revenues_10fc15cc-03a8-43b8-9ebe-795f82a1a281" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b97548f1-4cc3-4bd2-a364-920776c6dae3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_GrossProfit_b97548f1-4cc3-4bd2-a364-920776c6dae3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_cbd450c7-8fbe-4734-bd18-653ef5d4c8c5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_cbd450c7-8fbe-4734-bd18-653ef5d4c8c5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringSettlementAndImpairmentProvisions_85081b52-d94a-4131-85e0-a7488d12dff6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringSettlementAndImpairmentProvisions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_RestructuringSettlementAndImpairmentProvisions_85081b52-d94a-4131-85e0-a7488d12dff6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_77e7a674-c91f-47f3-bfab-9e6841cde869" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_OperatingIncomeLoss_77e7a674-c91f-47f3-bfab-9e6841cde869" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_87fad3ef-de68-4957-b344-84dbf43e4a16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_Assets_87fad3ef-de68-4957-b344-84dbf43e4a16" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_80d47428-fa7b-4ec9-88a6-068cb9ebde4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_39d91930-ecc1-4096-a436-4f1bd7209c2e" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_80d47428-fa7b-4ec9-88a6-068cb9ebde4e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_ed4561c2-569e-47cc-a23c-d22b04c8405d" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_80d47428-fa7b-4ec9-88a6-068cb9ebde4e" xlink:to="loc_srt_ConsolidationItemsAxis_ed4561c2-569e-47cc-a23c-d22b04c8405d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ed4561c2-569e-47cc-a23c-d22b04c8405d_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_ed4561c2-569e-47cc-a23c-d22b04c8405d" xlink:to="loc_srt_ConsolidationItemsDomain_ed4561c2-569e-47cc-a23c-d22b04c8405d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8814c993-bb02-4c37-b31d-8f889c3d5c91" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_ed4561c2-569e-47cc-a23c-d22b04c8405d" xlink:to="loc_srt_ConsolidationItemsDomain_8814c993-bb02-4c37-b31d-8f889c3d5c91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_c01afa9c-0b15-4f4e-9c00-574503b25fa2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8814c993-bb02-4c37-b31d-8f889c3d5c91" xlink:to="loc_us-gaap_IntersegmentEliminationMember_c01afa9c-0b15-4f4e-9c00-574503b25fa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7d63a639-6473-4047-a6ef-029c9d9a1e2a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_80d47428-fa7b-4ec9-88a6-068cb9ebde4e" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7d63a639-6473-4047-a6ef-029c9d9a1e2a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7d63a639-6473-4047-a6ef-029c9d9a1e2a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7d63a639-6473-4047-a6ef-029c9d9a1e2a" xlink:to="loc_us-gaap_SegmentDomain_7d63a639-6473-4047-a6ef-029c9d9a1e2a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7d63a639-6473-4047-a6ef-029c9d9a1e2a" xlink:to="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_16944dff-e790-46e0-a3d8-0ceaf58035d1" xlink:href="mtrx-20200930.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_16944dff-e790-46e0-a3d8-0ceaf58035d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_518b6e14-de5c-44d1-a2c7-82dd7a8827ca" xlink:href="mtrx-20200930.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_518b6e14-de5c-44d1-a2c7-82dd7a8827ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_d563e647-8df5-4ccc-b21f-054c64202d00" xlink:href="mtrx-20200930.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_d563e647-8df5-4ccc-b21f-054c64202d00" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnallocatedCorporateCostsMember_cfd27919-027f-4fce-99ac-a3eb4db8b676" xlink:href="mtrx-20200930.xsd#mtrx_UnallocatedCorporateCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9c2590e1-7457-47c5-9e78-cce06e043751" xlink:to="loc_mtrx_UnallocatedCorporateCostsMember_cfd27919-027f-4fce-99ac-a3eb4db8b676" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsNotes" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RestructuringCostsNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsNotes" xlink:type="extended" id="i1e443f13fcf3439697e89ac622ff7f0f_RestructuringCostsNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsTables" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RestructuringCostsTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsTables" xlink:type="extended" id="i18d01343154449bea640ab385724212f_RestructuringCostsTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsDetails" xlink:type="simple" xlink:href="mtrx-20200930.xsd#RestructuringCostsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsDetails" xlink:type="extended" id="i4817fbedc19a426e9b48e4c5d802b1ef_RestructuringCostsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_RestructuringcostsbytypeAbstract_1d555a40-845e-4af5-943a-e7981052ddb0" xlink:href="mtrx-20200930.xsd#mtrx_RestructuringcostsbytypeAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_mtrx_RestructuringcostsbytypeAbstract_1d555a40-845e-4af5-943a-e7981052ddb0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeveranceCosts1_c73e47b6-4352-448e-8536-0771ce11a713" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeveranceCosts1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_SeveranceCosts1_c73e47b6-4352-448e-8536-0771ce11a713" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessExitCosts1_16aa3be5-c5d4-495e-90cc-28b960dcff15" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessExitCosts1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_BusinessExitCosts1_16aa3be5-c5d4-495e-90cc-28b960dcff15" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_RestructuringcostsreserveRollForward_445afd45-653f-41a8-baad-03076a567fcd" xlink:href="mtrx-20200930.xsd#mtrx_RestructuringcostsreserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_mtrx_RestructuringcostsreserveRollForward_445afd45-653f-41a8-baad-03076a567fcd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_0a61c86c-7f9e-43fb-a931-b674a8ce5c33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_RestructuringReserve_0a61c86c-7f9e-43fb-a931-b674a8ce5c33" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_fcd64f72-8379-4e6d-8d1d-bbfaba73551d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_RestructuringCharges_fcd64f72-8379-4e6d-8d1d-bbfaba73551d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_7bfe162b-0b7e-4655-9e6f-fb4f6f6056d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_PaymentsForRestructuring_7bfe162b-0b7e-4655-9e6f-fb4f6f6056d8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c3c3a848-97b1-4dd6-b965-cb824dfc8399" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_38e75187-f80e-48e6-906e-1ded11121f09" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c3c3a848-97b1-4dd6-b965-cb824dfc8399" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3fca3d47-cfe9-4079-aa89-8baffa7299a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c3c3a848-97b1-4dd6-b965-cb824dfc8399" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3fca3d47-cfe9-4079-aa89-8baffa7299a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3fca3d47-cfe9-4079-aa89-8baffa7299a9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3fca3d47-cfe9-4079-aa89-8baffa7299a9" xlink:to="loc_us-gaap_SegmentDomain_3fca3d47-cfe9-4079-aa89-8baffa7299a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3fca3d47-cfe9-4079-aa89-8baffa7299a9" xlink:to="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_5eb27977-e65a-4ea7-81ec-a0a872e9f9c7" xlink:href="mtrx-20200930.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_5eb27977-e65a-4ea7-81ec-a0a872e9f9c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OilGasAndChemicalMember_901f65a4-fefa-4523-bcef-81e8e662a3bb" xlink:href="mtrx-20200930.xsd#mtrx_OilGasAndChemicalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_OilGasAndChemicalMember_901f65a4-fefa-4523-bcef-81e8e662a3bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageSolutionsMember_440a4ee2-1617-42f1-ba32-366dcf4cfabe" xlink:href="mtrx-20200930.xsd#mtrx_StorageSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_StorageSolutionsMember_440a4ee2-1617-42f1-ba32-366dcf4cfabe" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnallocatedCorporateCostsMember_54d5ee42-9a6d-4f4e-9de4-45ba2813b937" xlink:href="mtrx-20200930.xsd#mtrx_UnallocatedCorporateCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_UnallocatedCorporateCostsMember_54d5ee42-9a6d-4f4e-9de4-45ba2813b937" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_a6d10dca-194b-4197-9c5c-dd550158703b" xlink:href="mtrx-20200930.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_a6d10dca-194b-4197-9c5c-dd550158703b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_05eda6cd-2fff-423b-aacc-b8d7142706d3" xlink:href="mtrx-20200930.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6c136fb2-3f04-4fdb-b491-bdf2be78c271" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_05eda6cd-2fff-423b-aacc-b8d7142706d3" xlink:type="arc" order="5"/>
  </link:definitionLink>
</link:linkbase>
