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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:467edcd8-6bc6-4874-889e-ccba3b83f353,g:9d4adbf0-5e55-4451-a3b4-7b8eb4463921-->
<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-20201231.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CoverPage" xlink:type="extended" id="i727d7341d5824c1cb55784ee9c6ad963_CoverPage"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofIncome"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofIncome" xlink:type="extended" id="i0f68bdc704d948ca9675f09de0434263_CondensedConsolidatedStatementsofIncome"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofComprehensiveIncome"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncome" xlink:type="extended" id="i385c9967a4f243ee86cd8ca892c6aea9_CondensedConsolidatedStatementsofComprehensiveIncome"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical" xlink:type="extended" id="ic7e1aac50fe942e2855c08ab4eb74a30_CondensedConsolidatedStatementsofComprehensiveIncomeParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_0fd15427-b8ce-400e-903a-a6ad8db93cd0" 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_StatementTable_c6ada9b5-a164-4533-9c55-1badc5940570" 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_0fd15427-b8ce-400e-903a-a6ad8db93cd0" xlink:to="loc_us-gaap_StatementTable_c6ada9b5-a164-4533-9c55-1badc5940570" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" id="i5c831d274ed4486f9bf90c0e9d8e5f0d_CondensedConsolidatedBalanceSheets"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" id="idf7ef634b653411daf09e37ed81664d2_CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended" id="i0be975f5f8fb4ae0a91922fae4657f36_CondensedConsolidatedStatementsofCashFlows"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofChangesinStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="extended" id="i0ddb6dfe6d3743618af40405d35f106c_CondensedConsolidatedStatementsofChangesinStockholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_d64e208e-1121-4e0e-b4e5-7b03fa1d8201" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" 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_d64e208e-1121-4e0e-b4e5-7b03fa1d8201" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e6806fdf-9d47-4364-8a13-eab41ae2e326" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e6806fdf-9d47-4364-8a13-eab41ae2e326" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_a58c60e5-ef66-48f0-980e-4d192ba2ced8" xlink:href="mtrx-20201231.xsd#mtrx_Beginningequitybalancesasadjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_a58c60e5-ef66-48f0-980e-4d192ba2ced8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_36c3b230-a75c-41a9-9eb2-3431ca30df2c" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_ProfitLoss_36c3b230-a75c-41a9-9eb2-3431ca30df2c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_df295a70-fa90-40c3-99bc-f78afddaa11c" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_df295a70-fa90-40c3-99bc-f78afddaa11c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_f61e6b53-6d3b-48f1-998e-98d3d2789676" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_f61e6b53-6d3b-48f1-998e-98d3d2789676" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_7e043503-dbfa-4696-9ca6-39f5d7a1a2d0" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_7e043503-dbfa-4696-9ca6-39f5d7a1a2d0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_6f0d1993-3511-4ba8-b579-ca8353028f54" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_6f0d1993-3511-4ba8-b579-ca8353028f54" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6aeb97ee-1aab-43bc-b058-a7eb2dfcd76f" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6aeb97ee-1aab-43bc-b058-a7eb2dfcd76f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherTreasurySharePurchases_8cf1a20b-b5a1-4189-bfc4-860b62acee45" xlink:href="mtrx-20201231.xsd#mtrx_OtherTreasurySharePurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_mtrx_OtherTreasurySharePurchases_8cf1a20b-b5a1-4189-bfc4-860b62acee45" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_03b091a5-4a44-4d1a-a613-33c156de3ade" 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_b6b6e8c3-601c-4bcc-82f5-ea45507c9f2e" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_03b091a5-4a44-4d1a-a613-33c156de3ade" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_407ea255-b227-43c6-b812-af72a922fcab" 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_e3bdb815-3210-401f-abed-0bc04784a4a9" 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_d64e208e-1121-4e0e-b4e5-7b03fa1d8201" xlink:to="loc_us-gaap_StatementTable_e3bdb815-3210-401f-abed-0bc04784a4a9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_c94ffef0-d05a-4067-a9db-1d1919ac68ef" 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_e3bdb815-3210-401f-abed-0bc04784a4a9" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_c94ffef0-d05a-4067-a9db-1d1919ac68ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c94ffef0-d05a-4067-a9db-1d1919ac68ef_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_c94ffef0-d05a-4067-a9db-1d1919ac68ef" xlink:to="loc_us-gaap_EquityComponentDomain_c94ffef0-d05a-4067-a9db-1d1919ac68ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e162f03d-b224-437d-b302-a6a0e1c869d3" 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_c94ffef0-d05a-4067-a9db-1d1919ac68ef" xlink:to="loc_us-gaap_EquityComponentDomain_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_24be0661-08c3-40e6-9640-a9f57b38924b" 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_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:to="loc_us-gaap_CommonStockMember_24be0661-08c3-40e6-9640-a9f57b38924b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_e2cec949-77b7-41b2-b48e-8ed9edce2555" 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_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_e2cec949-77b7-41b2-b48e-8ed9edce2555" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_454c2270-315c-4de9-b39e-48e710ad9065" 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_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:to="loc_us-gaap_RetainedEarningsMember_454c2270-315c-4de9-b39e-48e710ad9065" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_d38dcd99-d1d4-4432-ad28-07ed11cc6be1" 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_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:to="loc_us-gaap_TreasuryStockMember_d38dcd99-d1d4-4432-ad28-07ed11cc6be1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_2a4a9a48-d06f-4cab-8075-72d4e57dd708" 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_e162f03d-b224-437d-b302-a6a0e1c869d3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_2a4a9a48-d06f-4cab-8075-72d4e57dd708" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical" xlink:type="extended" id="i2fa57fc2842247c5932f4e6be72e4889_CondensedConsolidatedStatementsofChangesinStockholdersEquityParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_a102ea38-d40d-4f16-b252-534a5b73b244" 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_ca54a014-87f9-46b3-a028-cf97ac2e6674" 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_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_ca54a014-87f9-46b3-a028-cf97ac2e6674" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_DeferredSharesIssued_a825953f-a8f0-455c-9994-4d185b83d02f" xlink:href="mtrx-20201231.xsd#mtrx_DeferredSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_mtrx_DeferredSharesIssued_a825953f-a8f0-455c-9994-4d185b83d02f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_eef01a95-fb95-446e-9315-630df8e17e57" 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_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_eef01a95-fb95-446e-9315-630df8e17e57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_29c2805a-69ad-4187-8318-9d29567a1dbf" 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_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_29c2805a-69ad-4187-8318-9d29567a1dbf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_77e987c2-2533-4b9f-ba2f-fac83010c61e" xlink:href="mtrx-20201231.xsd#mtrx_OtherTreasurySharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_77e987c2-2533-4b9f-ba2f-fac83010c61e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_8926ce64-c609-4dbc-97c5-f6016f028800" 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_a102ea38-d40d-4f16-b252-534a5b73b244" xlink:to="loc_us-gaap_StatementTable_8926ce64-c609-4dbc-97c5-f6016f028800" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_4b9abeed-2121-4d52-81ec-0e5cbd603237" 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_8926ce64-c609-4dbc-97c5-f6016f028800" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_4b9abeed-2121-4d52-81ec-0e5cbd603237" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4b9abeed-2121-4d52-81ec-0e5cbd603237_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_4b9abeed-2121-4d52-81ec-0e5cbd603237" xlink:to="loc_us-gaap_EquityComponentDomain_4b9abeed-2121-4d52-81ec-0e5cbd603237_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e903ad76-f528-42c9-9352-49c0bbd76fe2" 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_4b9abeed-2121-4d52-81ec-0e5cbd603237" xlink:to="loc_us-gaap_EquityComponentDomain_e903ad76-f528-42c9-9352-49c0bbd76fe2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_78edc296-9a1d-4ed7-91fc-f176ac99a073" 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_e903ad76-f528-42c9-9352-49c0bbd76fe2" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_78edc296-9a1d-4ed7-91fc-f176ac99a073" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_aaa97b37-8387-449d-8633-1233ae43da62" 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_e903ad76-f528-42c9-9352-49c0bbd76fe2" xlink:to="loc_us-gaap_TreasuryStockMember_aaa97b37-8387-449d-8633-1233ae43da62" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#BasisofPresentationNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationNotes" xlink:type="extended" id="i73e968a015554498981fe228dba17d61_BasisofPresentationNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies" xlink:type="simple" xlink:href="mtrx-20201231.xsd#BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies" xlink:type="extended" id="i25e755bbaa3e48dd8e54bd77686d3d5a_BasisofPresentationBasisofPresentationLeaseAccountingPolicyPolicies"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationNarrativeDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#BasisofPresentationBasisofPresentationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisofPresentationBasisofPresentationNarrativeDetails" xlink:type="extended" id="i2aa2de1415a6455c950f546d29370f76_BasisofPresentationBasisofPresentationNarrativeDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RevenueNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueNotes" xlink:type="extended" id="i0e2ea553b1a24a459db6cdf502ab9228_RevenueNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RevenueTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueTables" xlink:type="extended" id="iad25fbef810146c8a85c0a0786c5ec49_RevenueTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_808c4f2c-6b9a-42f9-b4fc-565a4ce3dc96" 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_fc1365c7-79ad-43cd-9969-ec71e42fe8b9" 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_808c4f2c-6b9a-42f9-b4fc-565a4ce3dc96" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_fc1365c7-79ad-43cd-9969-ec71e42fe8b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d" 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_fc1365c7-79ad-43cd-9969-ec71e42fe8b9" xlink:to="loc_srt_StatementGeographicalAxis_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d_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_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d" xlink:to="loc_srt_SegmentGeographicalDomain_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_090ed8da-31dc-47e5-b319-95614cabd2a9" 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_7d4cf456-d6a0-412e-bfb3-45092b0cfa1d" xlink:to="loc_srt_SegmentGeographicalDomain_090ed8da-31dc-47e5-b319-95614cabd2a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_b2aea4a1-816b-40ba-8801-64132990cb7e" 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_fc1365c7-79ad-43cd-9969-ec71e42fe8b9" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_b2aea4a1-816b-40ba-8801-64132990cb7e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_b2aea4a1-816b-40ba-8801-64132990cb7e_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_b2aea4a1-816b-40ba-8801-64132990cb7e" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_b2aea4a1-816b-40ba-8801-64132990cb7e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_b8d425c5-157f-41d8-a1ae-6ff6e3f8dbc6" 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_b2aea4a1-816b-40ba-8801-64132990cb7e" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_b8d425c5-157f-41d8-a1ae-6ff6e3f8dbc6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RevenueDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RevenueDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RevenueDetails" xlink:type="extended" id="i9769103c3a494c4fa05b430dad9b5b87_RevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_e1805695-cc31-4232-aca0-168427aded84" 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_17fae662-26ab-4d95-a748-420c5e44c6d9" 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_e1805695-cc31-4232-aca0-168427aded84" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_17fae662-26ab-4d95-a748-420c5e44c6d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_410efb41-8d2a-4c42-a25d-c56a5b830093" 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_e1805695-cc31-4232-aca0-168427aded84" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_410efb41-8d2a-4c42-a25d-c56a5b830093" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_758d0ebf-be09-4d15-8fbb-9aa26045352f" 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_410efb41-8d2a-4c42-a25d-c56a5b830093" xlink:to="loc_srt_StatementGeographicalAxis_758d0ebf-be09-4d15-8fbb-9aa26045352f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_758d0ebf-be09-4d15-8fbb-9aa26045352f_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_758d0ebf-be09-4d15-8fbb-9aa26045352f" xlink:to="loc_srt_SegmentGeographicalDomain_758d0ebf-be09-4d15-8fbb-9aa26045352f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_40eeb5db-834a-4aa6-8d4f-43c9aba386e4" 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_758d0ebf-be09-4d15-8fbb-9aa26045352f" xlink:to="loc_srt_SegmentGeographicalDomain_40eeb5db-834a-4aa6-8d4f-43c9aba386e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_b97cae3d-f4f0-45c4-acfc-c5afeb47afe7" 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_40eeb5db-834a-4aa6-8d4f-43c9aba386e4" xlink:to="loc_country_US_b97cae3d-f4f0-45c4-acfc-c5afeb47afe7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CA_5b6a6a69-c226-4744-acdb-db0bb2e994cf" 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_40eeb5db-834a-4aa6-8d4f-43c9aba386e4" xlink:to="loc_country_CA_5b6a6a69-c226-4744-acdb-db0bb2e994cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OtherinternationalMember_2a720f7e-5c03-475f-b6d5-e0ea52bfb282" xlink:href="mtrx-20201231.xsd#mtrx_OtherinternationalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_40eeb5db-834a-4aa6-8d4f-43c9aba386e4" xlink:to="loc_mtrx_OtherinternationalMember_2a720f7e-5c03-475f-b6d5-e0ea52bfb282" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_183c1cf5-3de2-4257-a204-2f9ce41e6e28" 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_410efb41-8d2a-4c42-a25d-c56a5b830093" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingAxis_183c1cf5-3de2-4257-a204-2f9ce41e6e28" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_183c1cf5-3de2-4257-a204-2f9ce41e6e28_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_183c1cf5-3de2-4257-a204-2f9ce41e6e28" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_183c1cf5-3de2-4257-a204-2f9ce41e6e28_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_7f2e129c-f090-4226-bc25-f09324ae1a98" 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_183c1cf5-3de2-4257-a204-2f9ce41e6e28" xlink:to="loc_us-gaap_ContractWithCustomerBasisOfPricingDomain_7f2e129c-f090-4226-bc25-f09324ae1a98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedPriceContractMember_8f478adc-43b5-4069-be4b-b72e201e3c77" 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_7f2e129c-f090-4226-bc25-f09324ae1a98" xlink:to="loc_us-gaap_FixedPriceContractMember_8f478adc-43b5-4069-be4b-b72e201e3c77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeAndMaterialsContractMember_dee7245f-e880-42f7-9036-019edfb09c44" 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_7f2e129c-f090-4226-bc25-f09324ae1a98" xlink:to="loc_us-gaap_TimeAndMaterialsContractMember_dee7245f-e880-42f7-9036-019edfb09c44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_4de89674-0a3c-457a-b626-6b24dceb5b35" 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_7e4e33a9-456a-45b9-bd24-3d9e349432ae" 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-20201231.xsd#LeasesNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesNotes" xlink:type="extended" id="if03b81f4217540bb8a4fface15e8f2ef_LeasesNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesTables" xlink:type="extended" id="iaa798a388dea41bb8ff15a627be109bf_LeasesTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesNarrativeDetails" xlink:type="extended" id="ifc3bfda2e23e4a8f9741c9e1204783b0_LeasesNarrativeDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesComponentsofLeaseCostsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesComponentsofLeaseCostsDetails" xlink:type="extended" id="i7afba73dae384c94ac895e1ce2d8c851_LeasesComponentsofLeaseCostsDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesMaturityAnalysisDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesMaturityAnalysisDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesMaturityAnalysisDetails" xlink:type="extended" id="id94e46da18ee42b981bc45324f1cef6c_LeasesMaturityAnalysisDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesOtherLeaseInformationDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesOtherLeaseInformationDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesOtherLeaseInformationDetails" xlink:type="extended" id="i673203f2035e49c9a4eef6dbc7d8e7b7_LeasesOtherLeaseInformationDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/LeasesSupplementalCashFlowDisclosuresDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#LeasesSupplementalCashFlowDisclosuresDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/LeasesSupplementalCashFlowDisclosuresDetails" xlink:type="extended" id="i64448975abf34ecdbe03c307e6808425_LeasesSupplementalCashFlowDisclosuresDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IntangibleAssetsIncludingGoodwillNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="extended" id="i1c2ea0c2b52346e0a99b077cc11bd1ea_IntangibleAssetsIncludingGoodwillNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IntangibleAssetsIncludingGoodwillTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="extended" id="i0b54e85e31e04c92aae1e5fe609bbc43_IntangibleAssetsIncludingGoodwillTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_b44956b3-d2f7-4998-8bde-9a3af8615f0a" 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_5b96856e-769d-423a-900b-2e95d077d3ae" 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_b44956b3-d2f7-4998-8bde-9a3af8615f0a" xlink:to="loc_us-gaap_ScheduleOfGoodwillTextBlock_5b96856e-769d-423a-900b-2e95d077d3ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock_ab6414d1-40d1-4c6d-aa2a-753ea7a4e90d" xlink:href="mtrx-20201231.xsd#mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_b44956b3-d2f7-4998-8bde-9a3af8615f0a" xlink:to="loc_mtrx_ScheduleOfIntangibleAssetsExcludingGoodwillTableTextBlock_ab6414d1-40d1-4c6d-aa2a-753ea7a4e90d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock_f9c6b05c-1caf-49de-a1f7-6c5716bc91b9" 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_b44956b3-d2f7-4998-8bde-9a3af8615f0a" xlink:to="loc_us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock_f9c6b05c-1caf-49de-a1f7-6c5716bc91b9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_745d6b5a-cefa-4891-bd72-bd004f4f6634" 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_b44956b3-d2f7-4998-8bde-9a3af8615f0a" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_745d6b5a-cefa-4891-bd72-bd004f4f6634" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_15088093-57f5-4b5d-bae4-a235840d8648" 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_745d6b5a-cefa-4891-bd72-bd004f4f6634" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_15088093-57f5-4b5d-bae4-a235840d8648" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_15088093-57f5-4b5d-bae4-a235840d8648_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_15088093-57f5-4b5d-bae4-a235840d8648" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_15088093-57f5-4b5d-bae4-a235840d8648_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_eef08828-0676-4052-83c5-cf75e29c5371" 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_15088093-57f5-4b5d-bae4-a235840d8648" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_eef08828-0676-4052-83c5-cf75e29c5371" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a" 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_745d6b5a-cefa-4891-bd72-bd004f4f6634" xlink:to="loc_srt_ConsolidationItemsAxis_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a_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_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a" xlink:to="loc_srt_ConsolidationItemsDomain_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4bd0df60-0198-4135-ad34-f0c2b345dfd4" 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_57ac1706-d9eb-4901-a75d-e8d88a3ffe4a" xlink:to="loc_srt_ConsolidationItemsDomain_4bd0df60-0198-4135-ad34-f0c2b345dfd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05" 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_745d6b5a-cefa-4891-bd72-bd004f4f6634" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05_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_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05" xlink:to="loc_us-gaap_SegmentDomain_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5a793761-fc53-4a69-9faf-7cdcb88bb7f1" 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_a6c8954e-3cf5-4aa2-af17-6bedc60f0d05" xlink:to="loc_us-gaap_SegmentDomain_5a793761-fc53-4a69-9faf-7cdcb88bb7f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_071c285c-9e30-4046-afa9-cb9fa990d720" 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_745d6b5a-cefa-4891-bd72-bd004f4f6634" xlink:to="loc_srt_RangeAxis_071c285c-9e30-4046-afa9-cb9fa990d720" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_071c285c-9e30-4046-afa9-cb9fa990d720_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_071c285c-9e30-4046-afa9-cb9fa990d720" xlink:to="loc_srt_RangeMember_071c285c-9e30-4046-afa9-cb9fa990d720_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ee1f1bf8-954e-4996-b471-938586a0732a" 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_071c285c-9e30-4046-afa9-cb9fa990d720" xlink:to="loc_srt_RangeMember_ee1f1bf8-954e-4996-b471-938586a0732a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails" xlink:type="extended" id="i65706b2a4e404aaab11fd2a2007fb99c_IntangibleAssetsIncludingGoodwillCarryingValueofGoodwillBySegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_f98800be-da9d-4fae-ac24-fb0b72505dac" 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_ee72f376-069e-4051-9587-2e51d2b10465" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_GoodwillGross_ee72f376-069e-4051-9587-2e51d2b10465" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_ed016d64-ef2f-4f92-823f-53409714bd4c" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_ed016d64-ef2f-4f92-823f-53409714bd4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4f7c1bfe-04ce-4c76-8fbf-c94fd1ba83e2" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_Goodwill_4f7c1bfe-04ce-4c76-8fbf-c94fd1ba83e2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_a387286c-c6b1-43a1-ac3e-8b2426710ef4" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_a387286c-c6b1-43a1-ac3e-8b2426710ef4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_96c9938d-3d75-45f9-88b4-75ee3c4c6188" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_96c9938d-3d75-45f9-88b4-75ee3c4c6188" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_83090f68-e202-473b-88d3-f6db1ebbaa8a" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_GoodwillRollForward_83090f68-e202-473b-88d3-f6db1ebbaa8a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_7d0f970c-bca9-4694-9a78-09f7e154ecdb" 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_89389353-4005-4071-9947-1fb4658f2856" 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_83090f68-e202-473b-88d3-f6db1ebbaa8a" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_89389353-4005-4071-9947-1fb4658f2856" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_617c4346-4d10-4c1e-b1d7-096005145aaa" 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_83090f68-e202-473b-88d3-f6db1ebbaa8a" xlink:to="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_617c4346-4d10-4c1e-b1d7-096005145aaa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_4a065c57-8149-4b1a-a6bb-f4786465dfbe" 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_83090f68-e202-473b-88d3-f6db1ebbaa8a" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_4a065c57-8149-4b1a-a6bb-f4786465dfbe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_1aff598a-b246-4da7-8315-bba0961bc624" 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_83090f68-e202-473b-88d3-f6db1ebbaa8a" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_1aff598a-b246-4da7-8315-bba0961bc624" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_66c3977f-f91d-42ed-9cbb-0434cf6085da" 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_8c3cb2c8-8d12-46a1-9f74-c494d3fb46d1" 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_f98800be-da9d-4fae-ac24-fb0b72505dac" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_8c3cb2c8-8d12-46a1-9f74-c494d3fb46d1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_82362d79-1aab-4267-affe-3081d715b470" 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_8c3cb2c8-8d12-46a1-9f74-c494d3fb46d1" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_82362d79-1aab-4267-affe-3081d715b470" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_82362d79-1aab-4267-affe-3081d715b470_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_82362d79-1aab-4267-affe-3081d715b470" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_82362d79-1aab-4267-affe-3081d715b470_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6fff1d1-658a-44ef-94e1-b4456a1f012a" 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_82362d79-1aab-4267-affe-3081d715b470" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6fff1d1-658a-44ef-94e1-b4456a1f012a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_2ae798ea-8707-4c10-905d-4b7d4de6aa39" xlink:href="mtrx-20201231.xsd#mtrx_BaillieTankEquipmentLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6fff1d1-658a-44ef-94e1-b4456a1f012a" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_2ae798ea-8707-4c10-905d-4b7d4de6aa39" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_HoustonInterestsLLCMember_720b1b2e-8595-4f02-957e-4539760e4721" xlink:href="mtrx-20201231.xsd#mtrx_HoustonInterestsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6fff1d1-658a-44ef-94e1-b4456a1f012a" xlink:to="loc_mtrx_HoustonInterestsLLCMember_720b1b2e-8595-4f02-957e-4539760e4721" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_ef9e93df-416d-4f77-9be4-7a29a50c233c" 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_8c3cb2c8-8d12-46a1-9f74-c494d3fb46d1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_ef9e93df-416d-4f77-9be4-7a29a50c233c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ef9e93df-416d-4f77-9be4-7a29a50c233c_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_ef9e93df-416d-4f77-9be4-7a29a50c233c" xlink:to="loc_us-gaap_SegmentDomain_ef9e93df-416d-4f77-9be4-7a29a50c233c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c373e784-7b5b-4aba-9421-b8669a50f5e8" 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_ef9e93df-416d-4f77-9be4-7a29a50c233c" xlink:to="loc_us-gaap_SegmentDomain_c373e784-7b5b-4aba-9421-b8669a50f5e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_30f3e09d-1ebd-4eca-a646-acc60806d36f" xlink:href="mtrx-20201231.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c373e784-7b5b-4aba-9421-b8669a50f5e8" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_30f3e09d-1ebd-4eca-a646-acc60806d36f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_8bb6c001-4536-4fdd-9728-fc2fb6308f7b" xlink:href="mtrx-20201231.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c373e784-7b5b-4aba-9421-b8669a50f5e8" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_8bb6c001-4536-4fdd-9728-fc2fb6308f7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_03f28f95-f920-49e7-935d-43a615289afe" xlink:href="mtrx-20201231.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c373e784-7b5b-4aba-9421-b8669a50f5e8" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_03f28f95-f920-49e7-935d-43a615289afe" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails" xlink:type="extended" id="i16775c64081a41ef96a0761bdf15b57b_IntangibleAssetsIncludingGoodwillCarryingValueofOtherIntangibleAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_9688d93a-765e-4548-b034-c2a8077031b4" 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_ea48901d-c783-40ec-934b-086a85aff70f" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_ea48901d-c783-40ec-934b-086a85aff70f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_f2ab6a8b-bb44-4223-806d-6511894d7eb6" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_f2ab6a8b-bb44-4223-806d-6511894d7eb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_b581f18f-e35a-47a6-8258-eb32602db7fd" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_b581f18f-e35a-47a6-8258-eb32602db7fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_68f5a66f-17e3-4b03-a822-8746c90518f7" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_68f5a66f-17e3-4b03-a822-8746c90518f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_efcf8f28-b1c3-447f-b90b-8d1f9c128a17" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_efcf8f28-b1c3-447f-b90b-8d1f9c128a17" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f44e3c40-79a3-40bd-bfc9-a717978dc5c8" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f44e3c40-79a3-40bd-bfc9-a717978dc5c8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedTradeNames_e822cfcd-af8f-44d5-ad2d-f0755dfa56be" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_e822cfcd-af8f-44d5-ad2d-f0755dfa56be" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f9eff571-05bf-4f76-87df-0a04434a1cf4" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f9eff571-05bf-4f76-87df-0a04434a1cf4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_4300a0cf-774a-4deb-aa46-e09a0a1cf5e1" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_4300a0cf-774a-4deb-aa46-e09a0a1cf5e1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_20d53850-774b-4d25-83fe-771a33f26b39" 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_9688d93a-765e-4548-b034-c2a8077031b4" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_20d53850-774b-4d25-83fe-771a33f26b39" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_468d0849-2bcf-4f6b-8851-ef7a73431b80" 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_20d53850-774b-4d25-83fe-771a33f26b39" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_468d0849-2bcf-4f6b-8851-ef7a73431b80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_468d0849-2bcf-4f6b-8851-ef7a73431b80_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_468d0849-2bcf-4f6b-8851-ef7a73431b80" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_468d0849-2bcf-4f6b-8851-ef7a73431b80_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a5ebfc4-3e3e-4854-b8f0-62875422dda5" 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_468d0849-2bcf-4f6b-8851-ef7a73431b80" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a5ebfc4-3e3e-4854-b8f0-62875422dda5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_HoustonInterestsLLCMember_4668fdb3-e954-4ac8-a601-3ca3159e11e0" xlink:href="mtrx-20201231.xsd#mtrx_HoustonInterestsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a5ebfc4-3e3e-4854-b8f0-62875422dda5" xlink:to="loc_mtrx_HoustonInterestsLLCMember_4668fdb3-e954-4ac8-a601-3ca3159e11e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_a969bc0d-0354-4330-b462-a890f343105e" 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_20d53850-774b-4d25-83fe-771a33f26b39" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_a969bc0d-0354-4330-b462-a890f343105e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_a969bc0d-0354-4330-b462-a890f343105e_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_a969bc0d-0354-4330-b462-a890f343105e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_a969bc0d-0354-4330-b462-a890f343105e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e65439bb-8c84-4383-b906-cfe18814d79a" 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_a969bc0d-0354-4330-b462-a890f343105e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntellectualPropertyMember_3e6ebdd4-e358-4d13-88b6-d6a6fb4e7f78" 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_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:to="loc_us-gaap_IntellectualPropertyMember_3e6ebdd4-e358-4d13-88b6-d6a6fb4e7f78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_c7911ad3-8ae8-4197-a887-a1a35d2fafd9" 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_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:to="loc_us-gaap_CustomerRelationshipsMember_c7911ad3-8ae8-4197-a887-a1a35d2fafd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_f3b8773c-6b65-4013-a6b4-4c37902cb6e8" 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_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_f3b8773c-6b65-4013-a6b4-4c37902cb6e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_8c93f22a-74d6-4026-aa35-a0a5f4b287d1" 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_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:to="loc_us-gaap_TradeNamesMember_8c93f22a-74d6-4026-aa35-a0a5f4b287d1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_IronandSteelCustomerRelationshipMember_1538df02-eb4c-4fc4-9903-368bcc8031f4" xlink:href="mtrx-20201231.xsd#mtrx_IronandSteelCustomerRelationshipMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e65439bb-8c84-4383-b906-cfe18814d79a" xlink:to="loc_mtrx_IronandSteelCustomerRelationshipMember_1538df02-eb4c-4fc4-9903-368bcc8031f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_c70257bc-ebf2-4f54-a573-09fe2308f063" 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_20d53850-774b-4d25-83fe-771a33f26b39" xlink:to="loc_srt_RangeAxis_c70257bc-ebf2-4f54-a573-09fe2308f063" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c70257bc-ebf2-4f54-a573-09fe2308f063_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_c70257bc-ebf2-4f54-a573-09fe2308f063" xlink:to="loc_srt_RangeMember_c70257bc-ebf2-4f54-a573-09fe2308f063_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fdc33f38-10ee-4dfe-a504-02f61a8d1dee" 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_c70257bc-ebf2-4f54-a573-09fe2308f063" xlink:to="loc_srt_RangeMember_fdc33f38-10ee-4dfe-a504-02f61a8d1dee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_07e74f58-5337-44bf-8d66-03bf2442a382" 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_fdc33f38-10ee-4dfe-a504-02f61a8d1dee" xlink:to="loc_srt_MinimumMember_07e74f58-5337-44bf-8d66-03bf2442a382" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_1282b507-dc2a-4d19-a5d5-3634594b2d4b" 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_fdc33f38-10ee-4dfe-a504-02f61a8d1dee" xlink:to="loc_srt_MaximumMember_1282b507-dc2a-4d19-a5d5-3634594b2d4b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="extended" id="i21fdf378a4b94ccc816cf8281f7bd8c9_IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_56bcb2bd-179b-45dc-b051-9bac0b916f3c" 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_AmortizationOfIntangibleAssets_08947b3a-3ac4-4c5b-bb15-4ce2a88377de" 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_56bcb2bd-179b-45dc-b051-9bac0b916f3c" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_08947b3a-3ac4-4c5b-bb15-4ce2a88377de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_403a4a6b-2398-4994-b919-fb92ef7392c3" 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_56bcb2bd-179b-45dc-b051-9bac0b916f3c" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_403a4a6b-2398-4994-b919-fb92ef7392c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_40753618-53cb-488d-877b-596fa787b72d" 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_403a4a6b-2398-4994-b919-fb92ef7392c3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_40753618-53cb-488d-877b-596fa787b72d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_40753618-53cb-488d-877b-596fa787b72d_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_40753618-53cb-488d-877b-596fa787b72d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_40753618-53cb-488d-877b-596fa787b72d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b5a3fe11-e81f-410b-bd50-bc833a6a3f90" 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_40753618-53cb-488d-877b-596fa787b72d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b5a3fe11-e81f-410b-bd50-bc833a6a3f90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_26083781-7600-4bc8-9148-417695b29137" 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_403a4a6b-2398-4994-b919-fb92ef7392c3" xlink:to="loc_srt_ConsolidationItemsAxis_26083781-7600-4bc8-9148-417695b29137" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_26083781-7600-4bc8-9148-417695b29137_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_26083781-7600-4bc8-9148-417695b29137" xlink:to="loc_srt_ConsolidationItemsDomain_26083781-7600-4bc8-9148-417695b29137_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_bb302350-4be6-4144-b6ad-d4539e396381" 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_26083781-7600-4bc8-9148-417695b29137" xlink:to="loc_srt_ConsolidationItemsDomain_bb302350-4be6-4144-b6ad-d4539e396381" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_46d528b3-16db-4f4c-8257-0ec5e8149c10" 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_403a4a6b-2398-4994-b919-fb92ef7392c3" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_46d528b3-16db-4f4c-8257-0ec5e8149c10" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_46d528b3-16db-4f4c-8257-0ec5e8149c10_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_46d528b3-16db-4f4c-8257-0ec5e8149c10" xlink:to="loc_us-gaap_SegmentDomain_46d528b3-16db-4f4c-8257-0ec5e8149c10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_917a11d7-6a1d-4ac2-94b6-a120410da04a" 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_46d528b3-16db-4f4c-8257-0ec5e8149c10" xlink:to="loc_us-gaap_SegmentDomain_917a11d7-6a1d-4ac2-94b6-a120410da04a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_f465d040-b54b-4c99-a79b-2b51f004b9e9" 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_403a4a6b-2398-4994-b919-fb92ef7392c3" xlink:to="loc_srt_RangeAxis_f465d040-b54b-4c99-a79b-2b51f004b9e9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f465d040-b54b-4c99-a79b-2b51f004b9e9_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_f465d040-b54b-4c99-a79b-2b51f004b9e9" xlink:to="loc_srt_RangeMember_f465d040-b54b-4c99-a79b-2b51f004b9e9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a9b87c5e-88ca-401f-8996-6942b1b9cbf1" 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_f465d040-b54b-4c99-a79b-2b51f004b9e9" xlink:to="loc_srt_RangeMember_a9b87c5e-88ca-401f-8996-6942b1b9cbf1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#DebtNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="extended" id="i9a3ae605c8194622890ac935ba87dcf9_DebtNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#DebtTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="extended" id="id1111e9781724eb0a7d8f2e65f707fc1_DebtTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="simple" xlink:href="mtrx-20201231.xsd#DebtAdditionalInformationDetail"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="extended" id="i36b76338ebee40d2a887eb57dcc70439_DebtAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" 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_847cc681-cdf1-4e43-bebd-f4348b5b7d97" xlink:href="mtrx-20201231.xsd#mtrx_MtrxLineOfCreditFacilityMaximumBorrowingCapacityNewAgreementAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_MtrxLineOfCreditFacilityMaximumBorrowingCapacityNewAgreementAmount_847cc681-cdf1-4e43-bebd-f4348b5b7d97" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CreditAgreementTerm_bc69d100-c24c-4b25-bd20-74bc7dd84835" xlink:href="mtrx-20201231.xsd#mtrx_CreditAgreementTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_CreditAgreementTerm_bc69d100-c24c-4b25-bd20-74bc7dd84835" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_d792dc20-576e-4305-b901-b37c84d83d82" 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_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_d792dc20-576e-4305-b901-b37c84d83d82" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_25467ea5-9d21-4bb8-b422-751f5b931ff8" xlink:href="mtrx-20201231.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_25467ea5-9d21-4bb8-b422-751f5b931ff8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_319ab387-cdbd-4c93-ab13-b94ee80f7734" xlink:href="mtrx-20201231.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_319ab387-cdbd-4c93-ab13-b94ee80f7734" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility_c64b9d0b-cc2b-48a3-9b49-188fb6c4dea2" xlink:href="mtrx-20201231.xsd#mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_MtrxSublimitonlettersofcreditunderthecreditfacility_c64b9d0b-cc2b-48a3-9b49-188fb6c4dea2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_51f29beb-5a07-4e91-91e6-e5d32e78edfd" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_51f29beb-5a07-4e91-91e6-e5d32e78edfd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_4caabe6e-f14c-4024-8e0e-add3921c2099" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_4caabe6e-f14c-4024-8e0e-add3921c2099" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_7f576d89-c794-4c5c-92e0-bf2cd4655f62" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_7f576d89-c794-4c5c-92e0-bf2cd4655f62" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_fc66db84-a279-4b38-8b18-dc66a57ae825" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_fc66db84-a279-4b38-8b18-dc66a57ae825" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_093b918a-f7b5-42bb-8c7e-14770dd124f2" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_093b918a-f7b5-42bb-8c7e-14770dd124f2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_68641545-fe47-4833-85b6-189ff2b47ab0" xlink:href="mtrx-20201231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_68641545-fe47-4833-85b6-189ff2b47ab0" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_cdfdfc64-dafa-42e1-beb3-bd05a7f1b0bb" 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_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_cdfdfc64-dafa-42e1-beb3-bd05a7f1b0bb" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SeniorLeverageRatioMax_431d867e-bd99-4f7f-b390-f124eddecf22" xlink:href="mtrx-20201231.xsd#mtrx_SeniorLeverageRatioMax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_SeniorLeverageRatioMax_431d867e-bd99-4f7f-b390-f124eddecf22" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_SeniorLeverageRatioMin_8a7d87fb-2ce1-4fea-b177-f925eb9642fd" xlink:href="mtrx-20201231.xsd#mtrx_SeniorLeverageRatioMin"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_SeniorLeverageRatioMin_8a7d87fb-2ce1-4fea-b177-f925eb9642fd" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_d84a81f3-a94e-4dac-b63b-71777941a61f" xlink:href="mtrx-20201231.xsd#mtrx_FixedChargeCoverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_d84a81f3-a94e-4dac-b63b-71777941a61f" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_093a88b4-97aa-4e2e-9f7a-62e7d039df17" xlink:href="mtrx-20201231.xsd#mtrx_FixedChargeCoverageRatioMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_093a88b4-97aa-4e2e-9f7a-62e7d039df17" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion_55593935-0697-42f3-b739-c2a76448f4e1" xlink:href="mtrx-20201231.xsd#mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_MtrxFixedChargeCoverageRatioShareRepurchaseExclusion_55593935-0697-42f3-b739-c2a76448f4e1" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_f17dc0e2-78b7-40c7-9a4d-9877468a218f" xlink:href="mtrx-20201231.xsd#mtrx_AmountOfLimitOnAssetDispositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_f17dc0e2-78b7-40c7-9a4d-9877468a218f" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_302fbbe2-ec68-450e-8500-d87bd11f8f64" 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_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_302fbbe2-ec68-450e-8500-d87bd11f8f64" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_17adb99b-8c52-4672-a7c1-c088c3b07ed5" 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_da2f5971-f13b-4b22-9aae-e349dfa480ea" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_17adb99b-8c52-4672-a7c1-c088c3b07ed5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_613ec885-9f0c-4074-9469-2f37c910284f" 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_17adb99b-8c52-4672-a7c1-c088c3b07ed5" xlink:to="loc_us-gaap_VariableRateAxis_613ec885-9f0c-4074-9469-2f37c910284f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_613ec885-9f0c-4074-9469-2f37c910284f_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_613ec885-9f0c-4074-9469-2f37c910284f" xlink:to="loc_us-gaap_VariableRateDomain_613ec885-9f0c-4074-9469-2f37c910284f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_6204fd7e-de02-4e04-bec6-686b9f2af5b4" 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_613ec885-9f0c-4074-9469-2f37c910284f" xlink:to="loc_us-gaap_VariableRateDomain_6204fd7e-de02-4e04-bec6-686b9f2af5b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CdorRateMember_188e7e62-5af1-4136-8809-6fb84da44cb9" xlink:href="mtrx-20201231.xsd#mtrx_CdorRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6204fd7e-de02-4e04-bec6-686b9f2af5b4" xlink:to="loc_mtrx_CdorRateMember_188e7e62-5af1-4136-8809-6fb84da44cb9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_CanadianPrimeRateMember_08c1b74e-e4c2-43b1-b470-bd716ba84743" xlink:href="mtrx-20201231.xsd#mtrx_CanadianPrimeRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6204fd7e-de02-4e04-bec6-686b9f2af5b4" xlink:to="loc_mtrx_CanadianPrimeRateMember_08c1b74e-e4c2-43b1-b470-bd716ba84743" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_DebtAmendmentMember_bd64ce63-2c1a-42a6-bc81-99ccfa825023" xlink:href="mtrx-20201231.xsd#mtrx_DebtAmendmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6204fd7e-de02-4e04-bec6-686b9f2af5b4" xlink:to="loc_mtrx_DebtAmendmentMember_bd64ce63-2c1a-42a6-bc81-99ccfa825023" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_f3887894-bebc-4e89-8536-56565ee2ce55" 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_17adb99b-8c52-4672-a7c1-c088c3b07ed5" xlink:to="loc_srt_RangeAxis_f3887894-bebc-4e89-8536-56565ee2ce55" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f3887894-bebc-4e89-8536-56565ee2ce55_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_f3887894-bebc-4e89-8536-56565ee2ce55" xlink:to="loc_srt_RangeMember_f3887894-bebc-4e89-8536-56565ee2ce55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1beb5322-e23a-4288-a061-dc095723fbe3" 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_f3887894-bebc-4e89-8536-56565ee2ce55" xlink:to="loc_srt_RangeMember_1beb5322-e23a-4288-a061-dc095723fbe3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_a72d41d2-6869-4a7e-8df1-c914d2b6ebba" 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_1beb5322-e23a-4288-a061-dc095723fbe3" xlink:to="loc_srt_MinimumMember_a72d41d2-6869-4a7e-8df1-c914d2b6ebba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_816427fe-e1a7-4389-bea6-449e132d27ba" 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_1beb5322-e23a-4288-a061-dc095723fbe3" xlink:to="loc_srt_MaximumMember_816427fe-e1a7-4389-bea6-449e132d27ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_d5900b96-1fb9-4ee7-85a2-0c14c3db9bbf" 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_df501c90-9b92-4773-8062-969541601b0b" 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_d5900b96-1fb9-4ee7-85a2-0c14c3db9bbf" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_df501c90-9b92-4773-8062-969541601b0b" 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-20201231.xsd#DebtAvailabilityUnderTheSeniorCreditFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderTheSeniorCreditFacilityDetails" xlink:type="extended" id="ib82d595486454b56acee8295ed3e7ac4_DebtAvailabilityUnderTheSeniorCreditFacilityDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IncomeTaxes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:type="extended" id="i4d59922dd67e408d9f7b62c0e7569f6a_IncomeTaxes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CoronavirusAidReliefandEconomicSecurityActDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CoronavirusAidReliefandEconomicSecurityActDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CoronavirusAidReliefandEconomicSecurityActDetails" xlink:type="extended" id="ib096965e60e14e9a88d9799c1ad7cdfb_CoronavirusAidReliefandEconomicSecurityActDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#IncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:type="extended" id="i19066ac0b02849ee8d61f58e93e35d26_IncomeTaxesDetails"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CommitmentsandContingenciesNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesNotes" xlink:type="extended" id="i33dcf08c452841bf942f273b5fafc824_CommitmentsandContingenciesNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesAdditionalInformationDetail" xlink:type="simple" xlink:href="mtrx-20201231.xsd#CommitmentsandContingenciesAdditionalInformationDetail"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsandContingenciesAdditionalInformationDetail" xlink:type="extended" id="ib8c3f385e5cf42ffa786417f23e5d827_CommitmentsandContingenciesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_4c4a7e08-989f-4af9-8b45-a3974817dd1b" xlink:href="mtrx-20201231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnapprovedChangeOrdersAmount_93679c74-45e3-4715-82d1-c4cd8cc72cf3" 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_4c4a7e08-989f-4af9-8b45-a3974817dd1b" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_93679c74-45e3-4715-82d1-c4cd8cc72cf3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_909ff426-5105-4852-8858-f3026c5a8f39" xlink:href="mtrx-20201231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_4c4a7e08-989f-4af9-8b45-a3974817dd1b" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_909ff426-5105-4852-8858-f3026c5a8f39" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectAxis_a45a9f62-c753-46f3-8f95-9225089698b1" xlink:href="mtrx-20201231.xsd#mtrx_PowerGenerationProjectAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_909ff426-5105-4852-8858-f3026c5a8f39" xlink:to="loc_mtrx_PowerGenerationProjectAxis_a45a9f62-c753-46f3-8f95-9225089698b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectDomain_a45a9f62-c753-46f3-8f95-9225089698b1_default" xlink:href="mtrx-20201231.xsd#mtrx_PowerGenerationProjectDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_a45a9f62-c753-46f3-8f95-9225089698b1" xlink:to="loc_mtrx_PowerGenerationProjectDomain_a45a9f62-c753-46f3-8f95-9225089698b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_PowerGenerationProjectDomain_ec4df583-bae0-441d-9086-c3e5c4262cba" xlink:href="mtrx-20201231.xsd#mtrx_PowerGenerationProjectDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_a45a9f62-c753-46f3-8f95-9225089698b1" xlink:to="loc_mtrx_PowerGenerationProjectDomain_ec4df583-bae0-441d-9086-c3e5c4262cba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_96ccf2ec-fb59-4c6a-aeae-04b27e0c4850" xlink:href="mtrx-20201231.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_ec4df583-bae0-441d-9086-c3e5c4262cba" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_96ccf2ec-fb59-4c6a-aeae-04b27e0c4850" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_a5fbb4d0-1b53-426e-b7d3-18f2af0014d8" xlink:href="mtrx-20201231.xsd#mtrx_ClaimOnPowerGenerationProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_ec4df583-bae0-441d-9086-c3e5c4262cba" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_a5fbb4d0-1b53-426e-b7d3-18f2af0014d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_79532256-d2ed-4086-b043-aba756fb50d5" 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_6da8b326-55d0-4ad3-a244-f870c6e1f35c" 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_79532256-d2ed-4086-b043-aba756fb50d5" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_6da8b326-55d0-4ad3-a244-f870c6e1f35c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_58c8f8b6-e565-4f91-bcb3-02e00f6b1519" 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_79532256-d2ed-4086-b043-aba756fb50d5" xlink:to="loc_us-gaap_LossContingenciesTable_58c8f8b6-e565-4f91-bcb3-02e00f6b1519" 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-20201231.xsd#EarningsperCommonShareNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareNotes" xlink:type="extended" id="if74001f431624cdeace2a9adec3ef6f8_EarningsperCommonShareNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#EarningsperCommonShareTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareTables" xlink:type="extended" id="i82f66d0312a94895b448fc33dd83a35b_EarningsperCommonShareTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails" xlink:type="extended" id="ib5dee5ff50d942049ad53efb2d4f3d7d_EarningsperCommonShareComputationofBasicandDilutedEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_4a94cbed-f0c1-45de-96c3-dc7f025f2ab0" 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_41e979f5-f34a-4dda-a3ab-95d59200b823" 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_4a94cbed-f0c1-45de-96c3-dc7f025f2ab0" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_41e979f5-f34a-4dda-a3ab-95d59200b823" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761" 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_41e979f5-f34a-4dda-a3ab-95d59200b823" xlink:to="loc_us-gaap_StatementClassOfStockAxis_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761_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_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761" xlink:to="loc_us-gaap_ClassOfStockDomain_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_c3b96ae3-0948-4b0e-8001-76a86bff6f81" 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_6dcbc7ad-08ab-41b1-87b4-f4446bcd1761" xlink:to="loc_us-gaap_ClassOfStockDomain_c3b96ae3-0948-4b0e-8001-76a86bff6f81" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails" xlink:type="extended" id="ib8cef1a1ac3845b4a5dcea83dfd78e2e_EarningsperCommonShareAntidilutiveSecuritiesExcludedfromtheCalculationofDilutedEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_069c3961-5015-402f-9036-7bab9c287d80" 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_e28311fe-7757-4a4d-9e8a-27412f86eded" 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_069c3961-5015-402f-9036-7bab9c287d80" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_e28311fe-7757-4a4d-9e8a-27412f86eded" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_49f9e2dd-7102-43c6-8a49-f8a49f0c1268" 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_069c3961-5015-402f-9036-7bab9c287d80" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_49f9e2dd-7102-43c6-8a49-f8a49f0c1268" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_2417acca-da8c-4d3f-a6fb-48739e33a607" 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_49f9e2dd-7102-43c6-8a49-f8a49f0c1268" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_2417acca-da8c-4d3f-a6fb-48739e33a607" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_2417acca-da8c-4d3f-a6fb-48739e33a607_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_2417acca-da8c-4d3f-a6fb-48739e33a607" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_2417acca-da8c-4d3f-a6fb-48739e33a607_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b6999537-19ae-4cfe-81d8-f4a7fcc35220" 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_2417acca-da8c-4d3f-a6fb-48739e33a607" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b6999537-19ae-4cfe-81d8-f4a7fcc35220" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_e4a3db51-bed6-4265-9d42-ab4099ceb36d" 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_b6999537-19ae-4cfe-81d8-f4a7fcc35220" xlink:to="loc_us-gaap_EmployeeStockOptionMember_e4a3db51-bed6-4265-9d42-ab4099ceb36d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_7156c1f5-dc42-48b5-9f46-b91786e09366" xlink:href="mtrx-20201231.xsd#mtrx_NonvestedDeferredSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b6999537-19ae-4cfe-81d8-f4a7fcc35220" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_7156c1f5-dc42-48b5-9f46-b91786e09366" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#SegmentInformationNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="extended" id="i6f97f32f13854a06bcd1e81e11f712f1_SegmentInformationNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#SegmentInformationTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" id="i5f3d89dc04b344b5bb747088290c01a1_SegmentInformationTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#SegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:type="extended" id="i44081023430043faac916e6f48236d69_SegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" 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_626822d6-45c6-4e54-b96b-250c32421bb9" xlink:href="mtrx-20201231.xsd#mtrx_Grossrevenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_mtrx_Grossrevenues_626822d6-45c6-4e54-b96b-250c32421bb9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_183a7938-8ddf-40ee-ab85-50065c2a52f1" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_Revenues_183a7938-8ddf-40ee-ab85-50065c2a52f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_9b532cf3-54f5-4ac6-977c-51b9848e172b" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_GrossProfit_9b532cf3-54f5-4ac6-977c-51b9848e172b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_976d4cd0-6d63-4582-9f34-cadb1c45ebcb" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_976d4cd0-6d63-4582-9f34-cadb1c45ebcb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringSettlementAndImpairmentProvisions_04e969f6-c4be-4273-997d-3c8ebd3f3348" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_RestructuringSettlementAndImpairmentProvisions_04e969f6-c4be-4273-997d-3c8ebd3f3348" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_bb2b463c-5c51-48d7-8c68-c1571bb47ac8" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_OperatingIncomeLoss_bb2b463c-5c51-48d7-8c68-c1571bb47ac8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_07ee7554-bb47-4c11-ba39-09cb227636fc" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_Assets_07ee7554-bb47-4c11-ba39-09cb227636fc" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f68090c-13e3-4787-b8f7-d54aaa8826e7" 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_aecc17d5-0e23-4e07-b8f0-1dbc04dfbbff" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f68090c-13e3-4787-b8f7-d54aaa8826e7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_8551240f-9d0b-43a6-9d5f-414e91e6a799" 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_3f68090c-13e3-4787-b8f7-d54aaa8826e7" xlink:to="loc_srt_ConsolidationItemsAxis_8551240f-9d0b-43a6-9d5f-414e91e6a799" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8551240f-9d0b-43a6-9d5f-414e91e6a799_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_8551240f-9d0b-43a6-9d5f-414e91e6a799" xlink:to="loc_srt_ConsolidationItemsDomain_8551240f-9d0b-43a6-9d5f-414e91e6a799_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_739b68ac-a3da-4c26-b769-7e19a3aebc36" 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_8551240f-9d0b-43a6-9d5f-414e91e6a799" xlink:to="loc_srt_ConsolidationItemsDomain_739b68ac-a3da-4c26-b769-7e19a3aebc36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_6f2fb923-2ced-4691-a1c1-97a3c99ab355" 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_739b68ac-a3da-4c26-b769-7e19a3aebc36" xlink:to="loc_us-gaap_IntersegmentEliminationMember_6f2fb923-2ced-4691-a1c1-97a3c99ab355" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_773e7f63-5c6c-464a-a5b3-c011fc0e2377" 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_3f68090c-13e3-4787-b8f7-d54aaa8826e7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_773e7f63-5c6c-464a-a5b3-c011fc0e2377" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_773e7f63-5c6c-464a-a5b3-c011fc0e2377_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_773e7f63-5c6c-464a-a5b3-c011fc0e2377" xlink:to="loc_us-gaap_SegmentDomain_773e7f63-5c6c-464a-a5b3-c011fc0e2377_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" 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_773e7f63-5c6c-464a-a5b3-c011fc0e2377" xlink:to="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_a086dbec-bc5b-4016-93ea-2ed291890409" xlink:href="mtrx-20201231.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_a086dbec-bc5b-4016-93ea-2ed291890409" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_1e5ffd3c-ab51-417e-b7b1-7fd550a3d665" xlink:href="mtrx-20201231.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_1e5ffd3c-ab51-417e-b7b1-7fd550a3d665" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_04644b83-d186-4aa7-b60c-a40126f299ec" xlink:href="mtrx-20201231.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_04644b83-d186-4aa7-b60c-a40126f299ec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnallocatedCorporateCostsMember_cd1ed77d-2715-4008-8efd-3f26319699d2" xlink:href="mtrx-20201231.xsd#mtrx_UnallocatedCorporateCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f9b18320-4ccd-419f-b3d1-d20db859d2b7" xlink:to="loc_mtrx_UnallocatedCorporateCostsMember_cd1ed77d-2715-4008-8efd-3f26319699d2" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsNotes" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RestructuringCostsNotes"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsNotes" xlink:type="extended" id="id1d71e8fd9fb4ebf9c7e232732f3c2ed_RestructuringCostsNotes"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsTables" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RestructuringCostsTables"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsTables" xlink:type="extended" id="i63430dc0885e4ca98b09b8cd470c1e07_RestructuringCostsTables"/>
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/RestructuringCostsDetails" xlink:type="simple" xlink:href="mtrx-20201231.xsd#RestructuringCostsDetails"/>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/RestructuringCostsDetails" xlink:type="extended" id="ie044ec7fd29449a7bc980e50a086601e_RestructuringCostsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" 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_f47f797c-f717-4229-b9e4-d1590499788e" xlink:href="mtrx-20201231.xsd#mtrx_RestructuringcostsbytypeAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_mtrx_RestructuringcostsbytypeAbstract_f47f797c-f717-4229-b9e4-d1590499788e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeveranceCosts1_e096d3b8-d025-4d81-8c36-68ba21a50f8b" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_SeveranceCosts1_e096d3b8-d025-4d81-8c36-68ba21a50f8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessExitCosts1_6759c260-3c07-4231-94bc-e85a34d068a9" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_BusinessExitCosts1_6759c260-3c07-4231-94bc-e85a34d068a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_b7be304f-d06e-4008-9a46-d3fa953b7d73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_b7be304f-d06e-4008-9a46-d3fa953b7d73" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringCosts_b4b4e5fa-0e8e-4e3f-a180-436f355bc17e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherRestructuringCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_OtherRestructuringCosts_b4b4e5fa-0e8e-4e3f-a180-436f355bc17e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_76aefc0e-1a01-4897-b5d7-df9540397b33" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_RestructuringCharges_76aefc0e-1a01-4897-b5d7-df9540397b33" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1_a0bca77d-e870-4806-8068-36216b8c84aa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1_a0bca77d-e870-4806-8068-36216b8c84aa" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_RestructuringcostsreserveRollForward_4515c2ac-b8dc-4eef-80ce-ad7525948828" xlink:href="mtrx-20201231.xsd#mtrx_RestructuringcostsreserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_mtrx_RestructuringcostsreserveRollForward_4515c2ac-b8dc-4eef-80ce-ad7525948828" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_d19adf22-4b97-4826-aeab-7ec11fa39b75" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_RestructuringReserve_d19adf22-4b97-4826-aeab-7ec11fa39b75" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxUnpaidRestructuringCharges_332c4bed-5651-4aaf-8bc0-cb1e39d8d508" xlink:href="mtrx-20201231.xsd#mtrx_MtrxUnpaidRestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_mtrx_MtrxUnpaidRestructuringCharges_332c4bed-5651-4aaf-8bc0-cb1e39d8d508" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_3c547cf6-7571-4149-85b2-2468a23611ff" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_PaymentsForRestructuring_3c547cf6-7571-4149-85b2-2468a23611ff" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxAdjustmentToRestructuringCostsLiability_706c55af-9cd2-4a8b-a2fb-a2b696e7321b" xlink:href="mtrx-20201231.xsd#mtrx_MtrxAdjustmentToRestructuringCostsLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_mtrx_MtrxAdjustmentToRestructuringCostsLiability_706c55af-9cd2-4a8b-a2fb-a2b696e7321b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringCosts_7b58a661-ad84-4b9c-b535-6b022532aed7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherRestructuringCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_15089294-35e9-4a97-a126-c8e7b3e7b8bf" 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_b3355c55-6606-427c-8ca0-397dec9c3b8b" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_15089294-35e9-4a97-a126-c8e7b3e7b8bf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775" 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_15089294-35e9-4a97-a126-c8e7b3e7b8bf" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775_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_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775" xlink:to="loc_us-gaap_SegmentDomain_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" 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_f67e9d42-a7a8-4b8e-b714-dbf28a3f2775" xlink:to="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UtilityAndPowerInfrastructureMember_4732b4c8-cbb3-4095-a523-d2276fb81e2c" xlink:href="mtrx-20201231.xsd#mtrx_UtilityAndPowerInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_UtilityAndPowerInfrastructureMember_4732b4c8-cbb3-4095-a523-d2276fb81e2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_ProcessAndIndustrialFacilitiesMember_e9021401-6079-4306-8ce8-6cec240a398d" xlink:href="mtrx-20201231.xsd#mtrx_ProcessAndIndustrialFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_ProcessAndIndustrialFacilitiesMember_e9021401-6079-4306-8ce8-6cec240a398d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageAndTerminalSolutionsMember_3223ffe7-86c1-46fe-b81c-8cf31b623cfc" xlink:href="mtrx-20201231.xsd#mtrx_StorageAndTerminalSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_StorageAndTerminalSolutionsMember_3223ffe7-86c1-46fe-b81c-8cf31b623cfc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_UnallocatedCorporateCostsMember_8696154e-f2ce-4549-ba4c-dd39126e38fb" xlink:href="mtrx-20201231.xsd#mtrx_UnallocatedCorporateCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_UnallocatedCorporateCostsMember_8696154e-f2ce-4549-ba4c-dd39126e38fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_OilGasAndChemicalMember_4554562f-2163-4272-a2d5-a1febbe3097f" xlink:href="mtrx-20201231.xsd#mtrx_OilGasAndChemicalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_OilGasAndChemicalMember_4554562f-2163-4272-a2d5-a1febbe3097f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_StorageSolutionsMember_8f888856-b46b-43fb-9420-a0b0de832086" xlink:href="mtrx-20201231.xsd#mtrx_StorageSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5cf84b81-6a1f-4481-bc10-0b92422ef5b4" xlink:to="loc_mtrx_StorageSolutionsMember_8f888856-b46b-43fb-9420-a0b0de832086" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_89d6708c-3803-43cf-87ed-08cbb67f9a94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_15089294-35e9-4a97-a126-c8e7b3e7b8bf" xlink:to="loc_us-gaap_RestructuringPlanAxis_89d6708c-3803-43cf-87ed-08cbb67f9a94" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_89d6708c-3803-43cf-87ed-08cbb67f9a94_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_89d6708c-3803-43cf-87ed-08cbb67f9a94" xlink:to="loc_us-gaap_RestructuringPlanDomain_89d6708c-3803-43cf-87ed-08cbb67f9a94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_19ef1a56-dff0-460a-bcc2-0f8dc9b5bdec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_89d6708c-3803-43cf-87ed-08cbb67f9a94" xlink:to="loc_us-gaap_RestructuringPlanDomain_19ef1a56-dff0-460a-bcc2-0f8dc9b5bdec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxBusinessImprovementPlanMember_4ad16269-bb96-4e77-b460-7ad5b3bf476c" xlink:href="mtrx-20201231.xsd#mtrx_MtrxBusinessImprovementPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_19ef1a56-dff0-460a-bcc2-0f8dc9b5bdec" xlink:to="loc_mtrx_MtrxBusinessImprovementPlanMember_4ad16269-bb96-4e77-b460-7ad5b3bf476c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtrx_MtrxCostReductionPlanMember_35059ae8-2255-4850-b7a7-7c6f4ddb8ef6" xlink:href="mtrx-20201231.xsd#mtrx_MtrxCostReductionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_19ef1a56-dff0-460a-bcc2-0f8dc9b5bdec" xlink:to="loc_mtrx_MtrxCostReductionPlanMember_35059ae8-2255-4850-b7a7-7c6f4ddb8ef6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_924fc780-5526-48bb-b450-22e6df7707f1" 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_ScheduleOfRestructuringAndRelatedCostsTable_15089294-35e9-4a97-a126-c8e7b3e7b8bf" xlink:to="loc_srt_RangeAxis_924fc780-5526-48bb-b450-22e6df7707f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_924fc780-5526-48bb-b450-22e6df7707f1_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_924fc780-5526-48bb-b450-22e6df7707f1" xlink:to="loc_srt_RangeMember_924fc780-5526-48bb-b450-22e6df7707f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_81116d24-a574-4372-ae5e-485ac9bb4c36" 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_924fc780-5526-48bb-b450-22e6df7707f1" xlink:to="loc_srt_RangeMember_81116d24-a574-4372-ae5e-485ac9bb4c36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_46a0a9de-a35b-4940-9457-6f057431c4c4" 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_81116d24-a574-4372-ae5e-485ac9bb4c36" xlink:to="loc_srt_MinimumMember_46a0a9de-a35b-4940-9457-6f057431c4c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ef5740a2-7b6c-48fa-8a59-4c70ca76607b" 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_81116d24-a574-4372-ae5e-485ac9bb4c36" xlink:to="loc_srt_MaximumMember_ef5740a2-7b6c-48fa-8a59-4c70ca76607b" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
