<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://www.matrixservicecompany.com/role/Acquisitions" xlink:href="mtrx-20170630.xsd#Acquisitions" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:href="mtrx-20170630.xsd#AcquisitionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsDetailsTextual" xlink:href="mtrx-20170630.xsd#AcquisitionsDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:href="mtrx-20170630.xsd#AcquisitionsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheets" xlink:href="mtrx-20170630.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="mtrx-20170630.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfComprehensiveIncomeParentheticals" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfComprehensiveIncomeParentheticals" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfIncome" xlink:href="mtrx-20170630.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/Contingencies" xlink:href="mtrx-20170630.xsd#Contingencies" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ContingenciesDetailsTextual" xlink:href="mtrx-20170630.xsd#ContingenciesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/CustomerContracts" xlink:href="mtrx-20170630.xsd#CustomerContracts" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/CustomerContractsDetails" xlink:href="mtrx-20170630.xsd#CustomerContractsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/CustomerContractsDetailsTextual" xlink:href="mtrx-20170630.xsd#CustomerContractsDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/CustomerContractsTables" xlink:href="mtrx-20170630.xsd#CustomerContractsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/Debt" xlink:href="mtrx-20170630.xsd#Debt" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/DebtDetails" xlink:href="mtrx-20170630.xsd#DebtDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/DebtDetailsTextual" xlink:href="mtrx-20170630.xsd#DebtDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:href="mtrx-20170630.xsd#DebtTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:href="mtrx-20170630.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShare" xlink:href="mtrx-20170630.xsd#EarningsPerCommonShare" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareDetails" xlink:href="mtrx-20170630.xsd#EarningsPerCommonShareDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareDetails1" xlink:href="mtrx-20170630.xsd#EarningsPerCommonShareDetails1" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:href="mtrx-20170630.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EmployeeBenefitPlans" xlink:href="mtrx-20170630.xsd#EmployeeBenefitPlans" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansDetails" xlink:href="mtrx-20170630.xsd#EmployeeBenefitPlansDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansDetailsTextual" xlink:href="mtrx-20170630.xsd#EmployeeBenefitPlansDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansTables" xlink:href="mtrx-20170630.xsd#EmployeeBenefitPlansTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="mtrx-20170630.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetails" xlink:href="mtrx-20170630.xsd#GoodwillAndOtherIntangibleAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetails1" xlink:href="mtrx-20170630.xsd#GoodwillAndOtherIntangibleAssetsDetails1" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetailsTextual" xlink:href="mtrx-20170630.xsd#GoodwillAndOtherIntangibleAssetsDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="mtrx-20170630.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:href="mtrx-20170630.xsd#IncomeTaxes" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails1" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetails1" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails2" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetails2" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails3" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetails3" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetails4" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetails4" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesDetailsTextual" xlink:href="mtrx-20170630.xsd#IncomeTaxesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails5" xlink:href="mtrx-20170630.xsd#IncomeTaxesIncomeTaxesDetails5" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails6" xlink:href="mtrx-20170630.xsd#IncomeTaxesIncomeTaxesDetails6" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesTables" xlink:href="mtrx-20170630.xsd#IncomeTaxesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/OperatingLeases" xlink:href="mtrx-20170630.xsd#OperatingLeases" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/OperatingLeasesDetailsTextual" xlink:href="mtrx-20170630.xsd#OperatingLeasesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedDetails" xlink:href="mtrx-20170630.xsd#QuarterlyFinancialDataUnauditedDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedQuarterlyFinancialDataUnaudited" xlink:href="mtrx-20170630.xsd#QuarterlyFinancialDataUnauditedQuarterlyFinancialDataUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedTables" xlink:href="mtrx-20170630.xsd#QuarterlyFinancialDataUnauditedTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformation" xlink:href="mtrx-20170630.xsd#SegmentInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:href="mtrx-20170630.xsd#SegmentInformationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationDetails1" xlink:href="mtrx-20170630.xsd#SegmentInformationDetails1" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationDetailsTextual" xlink:href="mtrx-20170630.xsd#SegmentInformationDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:href="mtrx-20170630.xsd#SegmentInformationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensation" xlink:href="mtrx-20170630.xsd#StockBasedCompensation" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails" xlink:href="mtrx-20170630.xsd#StockBasedCompensationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails1" xlink:href="mtrx-20170630.xsd#StockBasedCompensationDetails1" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails2" xlink:href="mtrx-20170630.xsd#StockBasedCompensationDetails2" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails3" xlink:href="mtrx-20170630.xsd#StockBasedCompensationDetails3" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationDetailsTextual" xlink:href="mtrx-20170630.xsd#StockBasedCompensationDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockBasedCompensationTables" xlink:href="mtrx-20170630.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockholdersEquity" xlink:href="mtrx-20170630.xsd#StockholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/StockholdersEquityDetailsTextual" xlink:href="mtrx-20170630.xsd#StockholdersEquityDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="mtrx-20170630.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesDetailsTextual" xlink:href="mtrx-20170630.xsd#SummaryOfSignificantAccountingPoliciesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="mtrx-20170630.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesImpactOfNewAccountingPronouncementDetails" xlink:href="mtrx-20170630.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesImpactOfNewAccountingPronouncementDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ValuationAndQualifyingAccounts" xlink:href="mtrx-20170630.xsd#ValuationAndQualifyingAccounts" xlink:type="simple" />
  <roleRef roleURI="http://www.matrixservicecompany.com/role/ValuationAndQualifyingAccountsDetails" xlink:href="mtrx-20170630.xsd#ValuationAndQualifyingAccountsDetails" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/Acquisitions" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_02177400BDDBFEABDA3C616CAE12B273" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_02177400BDDBFEABDA3C616CAE12B273" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8C064B558340A787919B616CAE1270AF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_02177400BDDBFEABDA3C616CAE12B273" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8C064B558340A787919B616CAE1270AF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8C064B558340A787919B616CAE1270AF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8C064B558340A787919B616CAE1270AF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_21BACAC2C043430C6BED616CAE123875" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:to="loc_mtrx_HoustonInterestsLLCMember_21BACAC2C043430C6BED616CAE123875" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_E6B558EE44253AF4AD4D616CAE12DF96" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_E6B558EE44253AF4AD4D616CAE12DF96" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_73D135261785FA282753616CAE12140E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:to="loc_mtrx_HDBInc.Member_73D135261785FA282753616CAE12140E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_03D74D99028FF169BC8E616CAE12B9D8" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_03D74D99028FF169BC8E616CAE12B9D8" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_E71B2AF92A6102B80D35616CAE1201CA" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_913795F87330A9BC0509616CAE1202EE" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_E71B2AF92A6102B80D35616CAE1201CA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_A0F64DAC07223583E364616CAE12E829" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_A0F64DAC07223583E364616CAE12E829" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Cashpaidforequityinterest" xlink:label="loc_mtrx_Cashpaidforequityinterest_517BEC4E141022C65678616CAE12228F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_Cashpaidforequityinterest_517BEC4E141022C65678616CAE12228F" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_EBE182D9FF5ADFBBC5CC616CAE12CB5B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_EBE182D9FF5ADFBBC5CC616CAE12CB5B" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Cashconsiderationpaid" xlink:label="loc_mtrx_Cashconsiderationpaid_A88F548BCBCB091F3A21616CAE125C0A" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_Cashconsiderationpaid_A88F548BCBCB091F3A21616CAE125C0A" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Accruedworkingcapitaladjustment" xlink:label="loc_mtrx_Accruedworkingcapitaladjustment_5134B91BD4D14861A52D616CAE12F472" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_Accruedworkingcapitaladjustment_5134B91BD4D14861A52D616CAE12F472" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_6A37C4A424E570BA335661B0A184E12D" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_6A37C4A424E570BA335661B0A184E12D" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts" xlink:label="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_2EEA0E14E56D3FB1048261B5DAD3D685" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_2EEA0E14E56D3FB1048261B5DAD3D685" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_994E466DD5BB83051EBB61B78C65E54B" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_994E466DD5BB83051EBB61B78C65E54B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_B5CB38C12EB2291B2844616CAE12D73F" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_B5CB38C12EB2291B2844616CAE12D73F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_5F11B980ED6FC2D24729616CAE124A0F" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_5F11B980ED6FC2D24729616CAE124A0F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_238652812BC0975A7781616CAE121626" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_Goodwill_238652812BC0975A7781616CAE121626" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_2394CCE5B89B0E34B1A8616CAE12345D" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_2394CCE5B89B0E34B1A8616CAE12345D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_08D9BF4987AB3CD0BF3D616CAE129060" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_08D9BF4987AB3CD0BF3D616CAE129060" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_F21F447E862AF1C77E5D616CAE124CBB" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_F21F447E862AF1C77E5D616CAE124CBB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_07B0C0CFD43B26F7CB54616CAE12381F" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_07B0C0CFD43B26F7CB54616CAE12381F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_D163DDCD0FDFA0064F4C61BED258F958" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_D163DDCD0FDFA0064F4C61BED258F958" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings" xlink:label="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_CBE0BB3DECB5F87C6E6861C04F63B999" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_CBE0BB3DECB5F87C6E6861C04F63B999" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_68F97A35185D4F14BD2B61C166F7B560" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_68F97A35185D4F14BD2B61C166F7B560" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_32067C56DF0F646701BF616CAE129616" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_32067C56DF0F646701BF616CAE129616" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_DAE698366CD431E97A3C616CAE12CF09" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_DAE698366CD431E97A3C616CAE12CF09" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_0ACC73931224173C5256616CAE12D3D2" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_0ACC73931224173C5256616CAE12D3D2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_27B9715EBEAB337F7E84616CAE121478" xlink:type="locator" />
    <definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_27B9715EBEAB337F7E84616CAE121478" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_C63F0413A4AF3F9182F3616CAE12FC8C" xlink:type="locator" />
    <definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_C63F0413A4AF3F9182F3616CAE12FC8C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_C8DA47CCBAA26CABAE2A616CAE127DE3" xlink:type="locator" />
    <definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_C8DA47CCBAA26CABAE2A616CAE127DE3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_A9E393E00099E0DCCC56616CAE12DA85" xlink:type="locator" />
    <definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_A9E393E00099E0DCCC56616CAE12DA85" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationAbstract" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:type="locator" />
    <definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_1DA7A130B7D796272CAB616CAE12897C" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_7C7F0AE5E60FA959477E616CAE122D10" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_7C7F0AE5E60FA959477E616CAE122D10" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_1A6E244B70FF87E1AF5B616CAE12D14D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_1A6E244B70FF87E1AF5B616CAE12D14D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_925DC98B7F3364D7A7E2616CAE124573" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_925DC98B7F3364D7A7E2616CAE124573" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_21239EF270A282DCC053616CAE1202BF" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_21239EF270A282DCC053616CAE1202BF" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Proformaacquisitioncosts" xlink:label="loc_mtrx_Proformaacquisitioncosts_F4CA029A89CF580D0CDD619755AE1EB6" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_mtrx_Proformaacquisitioncosts_F4CA029A89CF580D0CDD619755AE1EB6" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Proformaacquisitioncostsamortizedovertime" xlink:label="loc_mtrx_Proformaacquisitioncostsamortizedovertime_710386CB81AA5AAE66A76197B29CFA61" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_mtrx_Proformaacquisitioncostsamortizedovertime_710386CB81AA5AAE66A76197B29CFA61" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Proformainterestexpense" xlink:label="loc_mtrx_Proformainterestexpense_CF22C79A1D1C38CC27716197FD23C5F7" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_mtrx_Proformainterestexpense_CF22C79A1D1C38CC27716197FD23C5F7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Proformadepreciationandamortizationexpense" xlink:label="loc_mtrx_Proformadepreciationandamortizationexpense_B2AB9B66B7C270EDEDC461984E00D335" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_mtrx_Proformadepreciationandamortizationexpense_B2AB9B66B7C270EDEDC461984E00D335" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Proformaincometaxexpense" xlink:label="loc_mtrx_Proformaincometaxexpense_BD229E291777D1B971D66198B2BBFBEB" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationAbstract_09646636516272A8A86D616CAE12FE5E" xlink:to="loc_mtrx_Proformaincometaxexpense_BD229E291777D1B971D66198B2BBFBEB" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AE30D3A840C6843846762543499A638" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AE30D3A840C6843846762543499A638" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_061CC06EA991581EC9CC62543499557E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AE30D3A840C6843846762543499A638" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_061CC06EA991581EC9CC62543499557E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_32E6FBE26CA7D695655262543499FEE1_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_061CC06EA991581EC9CC62543499557E" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_32E6FBE26CA7D695655262543499FEE1_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_32E6FBE26CA7D695655262543499FEE1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_061CC06EA991581EC9CC62543499557E" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_32E6FBE26CA7D695655262543499FEE1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MXPBPowerPartnersMember" xlink:label="loc_mtrx_MXPBPowerPartnersMember_D3AF0AC8E70C87AE7275625434995B2E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityMethodInvesteeNameDomain_32E6FBE26CA7D695655262543499FEE1" xlink:to="loc_mtrx_MXPBPowerPartnersMember_D3AF0AC8E70C87AE7275625434995B2E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_AF135EA51FC10FF355F26254349988A3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AE30D3A840C6843846762543499A638" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_AF135EA51FC10FF355F26254349988A3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AF135EA51FC10FF355F26254349988A3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_AF135EA51FC10FF355F26254349988A3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_D74DC495587DE7C2A76D62543499B4BA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:to="loc_mtrx_HoustonInterestsLLCMember_D74DC495587DE7C2A76D62543499B4BA" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_9E7813F8365E9906E3FA62543499DD06" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_9E7813F8365E9906E3FA62543499DD06" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_1AB1C6B087E6C57E242962543499EF52" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:to="loc_mtrx_HDBInc.Member_1AB1C6B087E6C57E242962543499EF52" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_99893F18FA77512D9B056254349983E3" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4AA2458C2528195C3B5162543499D49F" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_99893F18FA77512D9B056254349983E3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_02F3F7FA853827E1BAE262543499D4AF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_02F3F7FA853827E1BAE262543499D4AF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" xlink:label="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_E6E5CF19FC6D8AD3FA7C62543499CC41" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_E6E5CF19FC6D8AD3FA7C62543499CC41" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_535114972B0F271ECA00625434998233" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_535114972B0F271ECA00625434998233" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A2CED2DA3CB9371AD9EA625434997733" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A2CED2DA3CB9371AD9EA625434997733" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Economicpurchaseprice" xlink:label="loc_mtrx_Economicpurchaseprice_B28DC0498AE3D79647B4625434998EB4" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_Economicpurchaseprice_B28DC0498AE3D79647B4625434998EB4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_E56D63E93AA25A62E3C462543499446C" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_Goodwill_E56D63E93AA25A62E3C462543499446C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount" xlink:label="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_15D994C7AB680408482362543499C854" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_15D994C7AB680408482362543499C854" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_760F170079C392628920625434996A82" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_760F170079C392628920625434996A82" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Mtrx_JointVentureValue" xlink:label="loc_mtrx_Mtrx_JointVentureValue_054BB3BE31434CAB8E216254349981CC" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_Mtrx_JointVentureValue_054BB3BE31434CAB8E216254349981CC" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Mtrx_ControllingInterestOfJointVentureValue" xlink:label="loc_mtrx_Mtrx_ControllingInterestOfJointVentureValue_6FE9933D1CBDAE91DAD762543499748A" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_Mtrx_ControllingInterestOfJointVentureValue_6FE9933D1CBDAE91DAD762543499748A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestInJointVentures" xlink:label="loc_us-gaap_MinorityInterestInJointVentures_2A50EBFBB785C5AE5953625434997371" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_MinorityInterestInJointVentures_2A50EBFBB785C5AE5953625434997371" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Warrantyreserveworkingcapitalprovision" xlink:label="loc_mtrx_Warrantyreserveworkingcapitalprovision_0B5C3BF6B03D475B0F6562543499F6E4" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_Warrantyreserveworkingcapitalprovision_0B5C3BF6B03D475B0F6562543499F6E4" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Settlementofwarrantyreserve" xlink:label="loc_mtrx_Settlementofwarrantyreserve_09CE7366BD5A7704BA2A62543499A7DC" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_Settlementofwarrantyreserve_09CE7366BD5A7704BA2A62543499A7DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_E5467B2D8F3D97C7CA6D625434996E41" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_E5467B2D8F3D97C7CA6D625434996E41" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_1A084A8B94ADF0ABE7BA62543499E229" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_1A084A8B94ADF0ABE7BA62543499E229" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_0D3306329007C5DC07EC6254349962F7" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_0D3306329007C5DC07EC6254349962F7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BusinessAcquisitionProFormaAmortizationofIntangibleAssets" xlink:label="loc_mtrx_BusinessAcquisitionProFormaAmortizationofIntangibleAssets_0923DDD2358BC09B0BB4625434996403" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_BusinessAcquisitionProFormaAmortizationofIntangibleAssets_0923DDD2358BC09B0BB4625434996403" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BusinessAcquisitionProFormaDepreciationExpense" xlink:label="loc_mtrx_BusinessAcquisitionProFormaDepreciationExpense_FA2A318214275C5BB2D6625434993710" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_BusinessAcquisitionProFormaDepreciationExpense_FA2A318214275C5BB2D6625434993710" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BusinessAcquisitionProFormaIncomefromTaxSettlement" xlink:label="loc_mtrx_BusinessAcquisitionProFormaIncomefromTaxSettlement_087FA8A6AC8D4750441F62543499B0FC" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_257AC8814A7B7CAD87C162543499B89C" xlink:to="loc_mtrx_BusinessAcquisitionProFormaIncomefromTaxSettlement_087FA8A6AC8D4750441F62543499B0FC" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_C0AFF1B2DDFDD44BBFE26254349929D0" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82892F739055E761F81F62543499B452" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C0AFF1B2DDFDD44BBFE26254349929D0" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82892F739055E761F81F62543499B452" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_BC3614F51D2E4B69EC9C625434996422" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82892F739055E761F81F62543499B452" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_BC3614F51D2E4B69EC9C625434996422" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_BC3614F51D2E4B69EC9C625434996422" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_BC3614F51D2E4B69EC9C625434996422" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_25CEE711FB469A2B5A17625434990274" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:to="loc_mtrx_HoustonInterestsLLCMember_25CEE711FB469A2B5A17625434990274" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_3703C41FDA39AA35871162543499B7BE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_3703C41FDA39AA35871162543499B7BE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_A2F68AE22145E5AEF27B62543499C6D5" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:to="loc_mtrx_HDBInc.Member_A2F68AE22145E5AEF27B62543499C6D5" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_F076844C8B925F668BAB625434995019" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_F076844C8B925F668BAB625434995019" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_B06E552B50BF38021B47625434997293" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_570263A7EAB07882D1E962543499EDC9" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_B06E552B50BF38021B47625434997293" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ConsiderationtransferredTableTextBlock" xlink:label="loc_mtrx_ConsiderationtransferredTableTextBlock_989254C626B3FF2D3B3162543499E758" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C0AFF1B2DDFDD44BBFE26254349929D0" xlink:to="loc_mtrx_ConsiderationtransferredTableTextBlock_989254C626B3FF2D3B3162543499E758" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_4FC2C892ADC1E082AB83625434997592" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C0AFF1B2DDFDD44BBFE26254349929D0" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_4FC2C892ADC1E082AB83625434997592" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationTextBlock" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_1DACFF063DB0556DB50D62543499B02A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C0AFF1B2DDFDD44BBFE26254349929D0" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_1DACFF063DB0556DB50D62543499B02A" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_0B796EB98064BA883CAB625434D88ED1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_us-gaap_StatementTable_0B796EB98064BA883CAB625434D88ED1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_7BCAB92979C4AB4F2304625434D8666D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_0B796EB98064BA883CAB625434D88ED1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_7BCAB92979C4AB4F2304625434D8666D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7BCAB92979C4AB4F2304625434D8666D" xlink:to="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7BCAB92979C4AB4F2304625434D8666D" xlink:to="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_1E4EE2A48A2047A6D2DF625434D86099" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_CommonStockMember_1E4EE2A48A2047A6D2DF625434D86099" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_E92D71C03326F165C056625434D86766" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_E92D71C03326F165C056625434D86766" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_BFA7C4FD4AD6574ECBD0625434D81936" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_RetainedEarningsMember_BFA7C4FD4AD6574ECBD0625434D81936" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_300BFF71E30D47B1C57D625434D8722C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_TreasuryStockMember_300BFF71E30D47B1C57D625434D8722C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_B90BDE0EAFC07DB05193625434D850F6" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_B90BDE0EAFC07DB05193625434D850F6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_91A1A2D6F3A9B4B3E820625434D878BC" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7248A1172EDB93C5DE98625434D804F3" xlink:to="loc_us-gaap_NoncontrollingInterestMember_91A1A2D6F3A9B4B3E820625434D878BC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_964E31D71AF3C76C923A625434D81BFA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_964E31D71AF3C76C923A625434D81BFA" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Beginningequitybalancesasadjusted" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_3E4194B8CF74E7C66F1B625434D8E924" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_3E4194B8CF74E7C66F1B625434D8E924" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5C4433EFEEBC97636E47625434D8EF91" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5C4433EFEEBC97636E47625434D8EF91" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_1220006317AFBFA0B3A6625434D88413" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_1220006317AFBFA0B3A6625434D88413" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_69BED311E31241EE7F6A625434D896B3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_ProfitLoss_69BED311E31241EE7F6A625434D896B3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0FB2C8B4591E3502371A625434D8EA36" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0FB2C8B4591E3502371A625434D8EA36" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_BA3DE8A1C1402F16ACEC625434D81C78" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_BA3DE8A1C1402F16ACEC625434D81C78" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_819E656B5F1114D5A3E3625434D85FB2" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_819E656B5F1114D5A3E3625434D85FB2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IssuanceOfDeferredShares" xlink:label="loc_mtrx_IssuanceOfDeferredShares_264FBC848586E99BAD11625434D8D81E" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_mtrx_IssuanceOfDeferredShares_264FBC848586E99BAD11625434D8D81E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_OtherTreasurySharePurchases" xlink:label="loc_mtrx_OtherTreasurySharePurchases_6AC1E551825B795D30C3625434D867E2" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_mtrx_OtherTreasurySharePurchases_6AC1E551825B795D30C3625434D867E2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_9D1F0DD62DEF90137742625434D80DAF" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_9D1F0DD62DEF90137742625434D80DAF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_E758A33C42F0F6B0E3BD625434D80298" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_E758A33C42F0F6B0E3BD625434D80298" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_F0CC5A4CEA9668621959625434D89EA9" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_F0CC5A4CEA9668621959625434D89EA9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireInterestInJointVenture" xlink:label="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_77F2D037E4D098D17691625434D8DFD9" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE2ECC60474EC5D80EA9625434D843DA" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_77F2D037E4D098D17691625434D8DFD9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_BC2F27FDF1F0AFAF129C625434D8B33D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_us-gaap_NetIncomeLoss_BC2F27FDF1F0AFAF129C625434D8B33D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_D602382EEC9694321075625434D82578" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61F9259EFBC60277AD00625434D8F06F" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_D602382EEC9694321075625434D82578" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_EA699AB0530153439767A3079034E27F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_us-gaap_StatementTable_EA699AB0530153439767A3079034E27F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_C0CFCFA8D0945563B73EF72EBE99BB6A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_EA699AB0530153439767A3079034E27F" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_C0CFCFA8D0945563B73EF72EBE99BB6A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_6FC15858F22279B954FEE5FD3E9288BE_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C0CFCFA8D0945563B73EF72EBE99BB6A" xlink:to="loc_us-gaap_EquityComponentDomain_6FC15858F22279B954FEE5FD3E9288BE_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_561AAF6780425DEA85B0BDA2760877D7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C0CFCFA8D0945563B73EF72EBE99BB6A" xlink:to="loc_us-gaap_EquityComponentDomain_561AAF6780425DEA85B0BDA2760877D7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_CD05507A61C15A38BFCEBF03CAA89AEC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_561AAF6780425DEA85B0BDA2760877D7" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_CD05507A61C15A38BFCEBF03CAA89AEC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_330E371B5598579396CBE897630E0537" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_561AAF6780425DEA85B0BDA2760877D7" xlink:to="loc_us-gaap_RetainedEarningsMember_330E371B5598579396CBE897630E0537" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_83F1E1BDD97051A0A833A49491CE92DE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_561AAF6780425DEA85B0BDA2760877D7" xlink:to="loc_us-gaap_TreasuryStockMember_83F1E1BDD97051A0A833A49491CE92DE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_9577DA689290595FAD38F9631AEC8B4F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_9577DA689290595FAD38F9631AEC8B4F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_E2F44F2D20DE525583D3C9DAB25CA075" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_E2F44F2D20DE525583D3C9DAB25CA075" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_8AE82D0F6FCA5CC5940FEF45CF8C4ABC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_8AE82D0F6FCA5CC5940FEF45CF8C4ABC" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_DeferredSharesIssued" xlink:label="loc_mtrx_DeferredSharesIssued_E313BBCA1DCA57ECAAE3E7E1CEFD6471" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_mtrx_DeferredSharesIssued_E313BBCA1DCA57ECAAE3E7E1CEFD6471" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_OtherTreasurySharesAcquired" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_4AABADA4422757968D0EC6819F4F72E1" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_37B1C8BD35195AB6A893BFD2DBD3AACB" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_4AABADA4422757968D0EC6819F4F72E1" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfComprehensiveIncomeParentheticals" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/Contingencies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ContingenciesDetailsTextual" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/CustomerContracts" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/CustomerContractsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/CustomerContractsDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_263F337A12790415A13961431A5EBF65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_263F337A12790415A13961431A5EBF65" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_99D9BFFC18E44683F7E961431A5E9D13" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_263F337A12790415A13961431A5EBF65" xlink:to="loc_us-gaap_MajorCustomersAxis_99D9BFFC18E44683F7E961431A5E9D13" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_9BBAB77AEBA8722939CE61431A5EC3BE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_99D9BFFC18E44683F7E961431A5E9D13" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_9BBAB77AEBA8722939CE61431A5EC3BE_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_9BBAB77AEBA8722939CE61431A5EC3BE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_99D9BFFC18E44683F7E961431A5E9D13" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_9BBAB77AEBA8722939CE61431A5EC3BE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SMElectricCompanyMember" xlink:label="loc_mtrx_SMElectricCompanyMember_2ACEBB3321951F1A5FE461431A5E105B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_9BBAB77AEBA8722939CE61431A5EC3BE" xlink:to="loc_mtrx_SMElectricCompanyMember_2ACEBB3321951F1A5FE461431A5E105B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_23487B4FA31FA102904061431A5ECA00" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_263F337A12790415A13961431A5EBF65" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_23487B4FA31FA102904061431A5ECA00" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_508CC08FBD8B1DD3F82961431A5E6148_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_23487B4FA31FA102904061431A5ECA00" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_508CC08FBD8B1DD3F82961431A5E6148_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_508CC08FBD8B1DD3F82961431A5E6148" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_23487B4FA31FA102904061431A5ECA00" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_508CC08FBD8B1DD3F82961431A5E6148" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SmeMember" xlink:label="loc_mtrx_SmeMember_ACA9825AC839C717A7F561431A5E709A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_508CC08FBD8B1DD3F82961431A5E6148" xlink:to="loc_mtrx_SmeMember_ACA9825AC839C717A7F561431A5E709A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractReceivableRetainageDueOneYearOrLess" xlink:label="loc_us-gaap_ContractReceivableRetainageDueOneYearOrLess_4F5460ADF02FF6BC308261431A5EA8B0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_us-gaap_ContractReceivableRetainageDueOneYearOrLess_4F5460ADF02FF6BC308261431A5EA8B0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractReceivableRetainageDueAfterOneYear" xlink:label="loc_us-gaap_ContractReceivableRetainageDueAfterOneYear_0989DFF06757EDB5743D61431A5ED556" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_us-gaap_ContractReceivableRetainageDueAfterOneYear_0989DFF06757EDB5743D61431A5ED556" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetentionPayable" xlink:label="loc_us-gaap_RetentionPayable_1B9174CD92EF67712F5561431A5E10EB" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_us-gaap_RetentionPayable_1B9174CD92EF67712F5561431A5E10EB" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome" xlink:label="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_AFA45552E861F8A8B3F461431A5E1DA2" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_AFA45552E861F8A8B3F461431A5E1DA2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome" xlink:label="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_34C19309F89712A55B6A61431A5E1559" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_769A8DA682F02DA8876A61431A5E1302" xlink:to="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_34C19309F89712A55B6A61431A5E1559" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/CustomerContractsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/Debt" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_15C2914AD73FF71FCD9F718DBAC4617C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable" xlink:label="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_5D5E271B4A5FC827E785718DBAC4CB63" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_15C2914AD73FF71FCD9F718DBAC4617C" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_5D5E271B4A5FC827E785718DBAC4CB63" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_52628B09487C83D4461E718DBAC4B637" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_5D5E271B4A5FC827E785718DBAC4CB63" xlink:to="loc_us-gaap_VariableRateAxis_52628B09487C83D4461E718DBAC4B637" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_52628B09487C83D4461E718DBAC4B637" xlink:to="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_52628B09487C83D4461E718DBAC4B637" xlink:to="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CdorRateMember" xlink:label="loc_mtrx_CdorRateMember_5539E9C131BB351EDF03718DBAC45E8E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79" xlink:to="loc_mtrx_CdorRateMember_5539E9C131BB351EDF03718DBAC45E8E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CanadianPrimeRateMember" xlink:label="loc_mtrx_CanadianPrimeRateMember_7353824A276440DDAF14718DBAC41E69" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_4780E7182A13D5F78A84718DBAC4AD79" xlink:to="loc_mtrx_CanadianPrimeRateMember_7353824A276440DDAF14718DBAC41E69" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_B9E6F1B1170524488C2A718DBAC40181" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_5D5E271B4A5FC827E785718DBAC4CB63" xlink:to="loc_us-gaap_RangeAxis_B9E6F1B1170524488C2A718DBAC40181" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_B9E6F1B1170524488C2A718DBAC40181" xlink:to="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_B9E6F1B1170524488C2A718DBAC40181" xlink:to="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_C7E6C82B32BC96B083A4718DBAC458AA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906" xlink:to="loc_us-gaap_MinimumMember_C7E6C82B32BC96B083A4718DBAC458AA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_38A63CB4BE199866C41B718DBAC4D9D4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A9EB7BD959363B54BCD8718DBAC42906" xlink:to="loc_us-gaap_MaximumMember_38A63CB4BE199866C41B718DBAC4D9D4" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_DebtTextualAbstract" xlink:label="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_15C2914AD73FF71FCD9F718DBAC4617C" xlink:to="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_AA680361608C677BA7C4718DBAC43F75" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_AA680361608C677BA7C4718DBAC43F75" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityExpirationDate1" xlink:label="loc_us-gaap_LineOfCreditFacilityExpirationDate1_E01F4E9C6C5CA1F1551F718DBAC462E5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_us-gaap_LineOfCreditFacilityExpirationDate1_E01F4E9C6C5CA1F1551F718DBAC462E5" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SeniorLeverageRatioMaximum" xlink:label="loc_mtrx_SeniorLeverageRatioMaximum_4F1479C8DC647F54253A718DBAC4E587" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_SeniorLeverageRatioMaximum_4F1479C8DC647F54253A718DBAC4E587" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SeniorLeverageRatioMinimum" xlink:label="loc_mtrx_SeniorLeverageRatioMinimum_6A16B40F7B33091AB806718DBAC479BC" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_SeniorLeverageRatioMinimum_6A16B40F7B33091AB806718DBAC479BC" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_FixedChargeCoverageRatioMaximum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_20CEC51D90DE8C983A46718DBAC47197" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_20CEC51D90DE8C983A46718DBAC47197" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_FixedChargeCoverageRatioMinimum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_7353AC4DA0BAE7FBE3BA718DBAC48C15" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_7353AC4DA0BAE7FBE3BA718DBAC48C15" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_AmountOfLimitOnAssetDispositions" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_B2B0BA6CDD6365C32C4A718DBAC40751" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_B2B0BA6CDD6365C32C4A718DBAC40751" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_15482324908090FF9C70718DBAC4F643" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_15482324908090FF9C70718DBAC4F643" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Sublimitonlettersofcreditunderthecreditfacility" xlink:label="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_5987BA469CB123FF5988718DBAC47C9A" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_5987BA469CB123FF5988718DBAC47C9A" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_8D23B7460F7D695001A0718DBAC4FAA1" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_8D23B7460F7D695001A0718DBAC4FAA1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_1CA80BBC5D31B68F691D718DBAC4A5BB" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_1CA80BBC5D31B68F691D718DBAC4A5BB" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_77B8EA93CCDEDB3014B2718DBAC4D050" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_77B8EA93CCDEDB3014B2718DBAC4D050" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_4B9BFC73DBBB4FE718B7718DBAC45DCC" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_4B9BFC73DBBB4FE718B7718DBAC45DCC" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_F96651C204A6ACCFE67F718DBACE8CA9" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_F96651C204A6ACCFE67F718DBACE8CA9" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_CA1F125137281A2CABE6718DBACED264" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_CA1F125137281A2CABE6718DBACED264" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_2FED0C3C037EF2BA17A3718DBACE0107" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_2FED0C3C037EF2BA17A3718DBACE0107" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MaximumLimitOfConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_EF7A1DE038C88BC27AA1718DBACE0A65" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_EF7A1DE038C88BC27AA1718DBACE0A65" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement" xlink:label="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_1CB0F8D6C779BA645AFE718DBACE4A9F" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_1CB0F8D6C779BA645AFE718DBACE4A9F" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_ConsolidatedFundedIndebtedness_88D431ACE8BB52675AAA718DBACE420C" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_mtrx_ConsolidatedFundedIndebtedness_88D431ACE8BB52675AAA718DBACE420C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventsAbstract" xlink:label="loc_us-gaap_SubsequentEventsAbstract_261915D4A876EC86F1BA719205E079B1" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_DebtTextualAbstract_A7D71BCCAC9E761995D4718DBAC4294C" xlink:to="loc_us-gaap_SubsequentEventsAbstract_261915D4A876EC86F1BA719205E079B1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventDescription" xlink:label="loc_us-gaap_SubsequentEventDescription_5261711944F34E067BBF71932DC6BE26" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventsAbstract_261915D4A876EC86F1BA719205E079B1" xlink:to="loc_us-gaap_SubsequentEventDescription_5261711944F34E067BBF71932DC6BE26" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:type="extended">
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_B975C2BA46795473B2A168452421C636" xlink:type="locator" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntitiesTable" xlink:label="loc_dei_EntitiesTable_EE3566CFDE7F5A7091EC1BFEC15CFBE3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_B975C2BA46795473B2A168452421C636" xlink:to="loc_dei_EntitiesTable_EE3566CFDE7F5A7091EC1BFEC15CFBE3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_70969F717FB8569EBB3BAF213052CD7D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_EE3566CFDE7F5A7091EC1BFEC15CFBE3" xlink:to="loc_dei_LegalEntityAxis_70969F717FB8569EBB3BAF213052CD7D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_47EA306B6AD4D7B5F4A5A067773D0A6A_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_70969F717FB8569EBB3BAF213052CD7D" xlink:to="loc_dei_EntityDomain_47EA306B6AD4D7B5F4A5A067773D0A6A_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_D9A3CDD9AF4556DAAF9E99611C11C044" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_70969F717FB8569EBB3BAF213052CD7D" xlink:to="loc_dei_EntityDomain_D9A3CDD9AF4556DAAF9E99611C11C044" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShare" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareDetails1" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_13CC0A5E70C1A1A8B8F96252A9D93330" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8097E308ACA81E72BCCE6252A9D9DAF2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_13CC0A5E70C1A1A8B8F96252A9D93330" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8097E308ACA81E72BCCE6252A9D9DAF2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_ACA685909F632CF2C9836252A9D90E83" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8097E308ACA81E72BCCE6252A9D9DAF2" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_ACA685909F632CF2C9836252A9D90E83" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_ACA685909F632CF2C9836252A9D90E83" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_ACA685909F632CF2C9836252A9D90E83" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_0AE9E9880555428173786252A9D9ECC1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834" xlink:to="loc_us-gaap_EmployeeStockOptionMember_0AE9E9880555428173786252A9D9ECC1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_NonvestedDeferredSharesMember" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_0F0E4608E2DF6F5724296252A9D930FF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5D0E784CFA20919AD9036252A9D9C834" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_0F0E4608E2DF6F5724296252A9D930FF" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_AntidilutiveSecuritiesExcludedFromComputationOfDilutedEarningsPerShareAbstract" xlink:label="loc_mtrx_AntidilutiveSecuritiesExcludedFromComputationOfDilutedEarningsPerShareAbstract_B9B8494E95A89B2F1D7B6252A9D92E07" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_13CC0A5E70C1A1A8B8F96252A9D93330" xlink:to="loc_mtrx_AntidilutiveSecuritiesExcludedFromComputationOfDilutedEarningsPerShareAbstract_B9B8494E95A89B2F1D7B6252A9D92E07" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_9513FEBAB1B536F7CEDA6252A9D91710" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_AntidilutiveSecuritiesExcludedFromComputationOfDilutedEarningsPerShareAbstract_B9B8494E95A89B2F1D7B6252A9D92E07" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_9513FEBAB1B536F7CEDA6252A9D91710" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EmployeeBenefitPlans" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansLineItems" xlink:label="loc_us-gaap_MultiemployerPlansLineItems_A256859D2F6E6757210F6254339021CA" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfMultiemployerPlansTable" xlink:label="loc_us-gaap_ScheduleOfMultiemployerPlansTable_F1797968697BC65F045862543390D2CD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_A256859D2F6E6757210F6254339021CA" xlink:to="loc_us-gaap_ScheduleOfMultiemployerPlansTable_F1797968697BC65F045862543390D2CD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlanTypeAxis" xlink:label="loc_us-gaap_MultiemployerPlanTypeAxis_FE43C066C7E0A87BA80762543390DAC1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfMultiemployerPlansTable_F1797968697BC65F045862543390D2CD" xlink:to="loc_us-gaap_MultiemployerPlanTypeAxis_FE43C066C7E0A87BA80762543390DAC1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansTypeDomain" xlink:label="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MultiemployerPlanTypeAxis_FE43C066C7E0A87BA80762543390DAC1" xlink:to="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansTypeDomain" xlink:label="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MultiemployerPlanTypeAxis_FE43C066C7E0A87BA80762543390DAC1" xlink:to="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BoilermakerBlacksmithNationalPensionTrustMember" xlink:label="loc_mtrx_BoilermakerBlacksmithNationalPensionTrustMember_90D1D82B8F09390BB3BE62543390ABE3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_BoilermakerBlacksmithNationalPensionTrustMember_90D1D82B8F09390BB3BE62543390ABE3" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_JointPensionFundLocalUnionOneSixFourIbewMember" xlink:label="loc_mtrx_JointPensionFundLocalUnionOneSixFourIbewMember_C7D9ECD3E78F5803BC1A625433902238" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_JointPensionFundLocalUnionOneSixFourIbewMember_C7D9ECD3E78F5803BC1A625433902238" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_JointPensionFundLocalUnionNumberOneZeroTwoMemberDomain" xlink:label="loc_mtrx_JointPensionFundLocalUnionNumberOneZeroTwoMemberDomain_BB981ED40E5263571BAF62543390AEB8" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_JointPensionFundLocalUnionNumberOneZeroTwoMemberDomain_BB981ED40E5263571BAF62543390AEB8" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IBEWLocalFourFiveSixPensionPlanMemberDomain" xlink:label="loc_mtrx_IBEWLocalFourFiveSixPensionPlanMemberDomain_0BCB2DE2F52A2268CA176254339029FC" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_IBEWLocalFourFiveSixPensionPlanMemberDomain_0BCB2DE2F52A2268CA176254339029FC" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_LocalThreeFiveOneIbewPensionPlanMember" xlink:label="loc_mtrx_LocalThreeFiveOneIbewPensionPlanMember_868E5FDFFC880FBAC7FD62543390F0DA" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_LocalThreeFiveOneIbewPensionPlanMember_868E5FDFFC880FBAC7FD62543390F0DA" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SteamfittersLocalUnionNumberFourTwoZeroPensionPlanMemberDomain" xlink:label="loc_mtrx_SteamfittersLocalUnionNumberFourTwoZeroPensionPlanMemberDomain_FFF092B2C951529A602062543390FB79" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_SteamfittersLocalUnionNumberFourTwoZeroPensionPlanMemberDomain_FFF092B2C951529A602062543390FB79" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IBEWLocalUnionNineEightPensionPlanMember" xlink:label="loc_mtrx_IBEWLocalUnionNineEightPensionPlanMember_1C74A4281FD6A33475576254339076A7" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_IBEWLocalUnionNineEightPensionPlanMember_1C74A4281FD6A33475576254339076A7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IndianaLaborersPensionFundDomain" xlink:label="loc_mtrx_IndianaLaborersPensionFundDomain_7289C75C3AFD3098702A625433903B94" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_IndianaLaborersPensionFundDomain_7289C75C3AFD3098702A625433903B94" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IronworkersMidAmericaPensionPlanMember" xlink:label="loc_mtrx_IronworkersMidAmericaPensionPlanMember_B7459E745A6328EC1A2862543390B6E1" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_IronworkersMidAmericaPensionPlanMember_B7459E745A6328EC1A2862543390B6E1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember" xlink:label="loc_mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember_62444FED702082A6D1A562543390A1BA" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember_62444FED702082A6D1A562543390A1BA" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PipefittersRetirementFundLocalFiveNineSevenMember" xlink:label="loc_mtrx_PipefittersRetirementFundLocalFiveNineSevenMember_2BEE95C17A8DA1413725625433909B84" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_C4D278CAC7F4A3E32C64625433901B07" xlink:to="loc_mtrx_PipefittersRetirementFundLocalFiveNineSevenMember_2BEE95C17A8DA1413725625433909B84" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateDescription" xlink:label="loc_us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateDescription_18BEFEE4388291D94F706254339059F7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_A256859D2F6E6757210F6254339021CA" xlink:to="loc_us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateDescription_18BEFEE4388291D94F706254339059F7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansAbstract" xlink:label="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_A256859D2F6E6757210F6254339021CA" xlink:to="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlansNumber" xlink:label="loc_mtrx_MultiemployerPlansNumber_6149F95E02708918D4D26254339085D1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_mtrx_MultiemployerPlansNumber_6149F95E02708918D4D26254339085D1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlansCertifiedZoneStatusDescription" xlink:label="loc_mtrx_MultiemployerPlansCertifiedZoneStatusDescription_366BB6E5128685F2B34162543390C58A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_mtrx_MultiemployerPlansCertifiedZoneStatusDescription_366BB6E5128685F2B34162543390C58A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansCertifiedZoneStatus" xlink:label="loc_us-gaap_MultiemployerPlansCertifiedZoneStatus_06890DE27F7638ED527962543390E35A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_us-gaap_MultiemployerPlansCertifiedZoneStatus_06890DE27F7638ED527962543390E35A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlan" xlink:label="loc_us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlan_5E9FB65A6A1F44CEF70462543390E184" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlan_5E9FB65A6A1F44CEF70462543390E184" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlanPeriodContributions" xlink:label="loc_us-gaap_MultiemployerPlanPeriodContributions_DD28716642A138353F7B625433907328" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_us-gaap_MultiemployerPlanPeriodContributions_DD28716642A138353F7B625433907328" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlanSurcharge" xlink:label="loc_mtrx_MultiemployerPlanSurcharge_6A7F2E6E731865F8F54262543390F9EF" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_mtrx_MultiemployerPlanSurcharge_6A7F2E6E731865F8F54262543390F9EF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansSurcharge" xlink:label="loc_us-gaap_MultiemployerPlansSurcharge_24DD432A49D43E2693C562543390AE45" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_us-gaap_MultiemployerPlansSurcharge_24DD432A49D43E2693C562543390AE45" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDate" xlink:label="loc_us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDate_3CEBC759AA3D4674E4A2625433909151" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDate_3CEBC759AA3D4674E4A2625433909151" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ContributionsToOtherMultiemployerPlans" xlink:label="loc_mtrx_ContributionsToOtherMultiemployerPlans_6832203740EC8768BC0C625433907CA0" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansAbstract_34E7E6C1EEA62F0CCCAA62543390D7EB" xlink:to="loc_mtrx_ContributionsToOtherMultiemployerPlans_6832203740EC8768BC0C625433907CA0" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansLineItems" xlink:label="loc_us-gaap_MultiemployerPlansLineItems_40F9C4F1B35E5BCCB254647E85395311" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfMultiemployerPlansTable" xlink:label="loc_us-gaap_ScheduleOfMultiemployerPlansTable_0BD98F8D64BC5064891AF8D7C065162E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_40F9C4F1B35E5BCCB254647E85395311" xlink:to="loc_us-gaap_ScheduleOfMultiemployerPlansTable_0BD98F8D64BC5064891AF8D7C065162E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlanTypeAxis" xlink:label="loc_us-gaap_MultiemployerPlanTypeAxis_F1CB2629DF5E5779ABFA11B2CE02411E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfMultiemployerPlansTable_0BD98F8D64BC5064891AF8D7C065162E" xlink:to="loc_us-gaap_MultiemployerPlanTypeAxis_F1CB2629DF5E5779ABFA11B2CE02411E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansTypeDomain" xlink:label="loc_us-gaap_MultiemployerPlansTypeDomain_687322BB5A9D89863CC5E5FF58C9ADE9_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MultiemployerPlanTypeAxis_F1CB2629DF5E5779ABFA11B2CE02411E" xlink:to="loc_us-gaap_MultiemployerPlansTypeDomain_687322BB5A9D89863CC5E5FF58C9ADE9_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MultiemployerPlansTypeDomain" xlink:label="loc_us-gaap_MultiemployerPlansTypeDomain_647C775871D252BBAE06885428A41490" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MultiemployerPlanTypeAxis_F1CB2629DF5E5779ABFA11B2CE02411E" xlink:to="loc_us-gaap_MultiemployerPlansTypeDomain_647C775871D252BBAE06885428A41490" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember" xlink:label="loc_mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember_33CC8DADDB875BAEB910AFFBF32D75C2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansTypeDomain_647C775871D252BBAE06885428A41490" xlink:to="loc_mtrx_PlumbersandPipefittersLocalUnionSevenFourPensionFundMember_33CC8DADDB875BAEB910AFFBF32D75C2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlanZoneByTypeAxis" xlink:label="loc_mtrx_MultiemployerPlanZoneByTypeAxis_64972EB3322050769787D4ACA95E8F2C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfMultiemployerPlansTable_0BD98F8D64BC5064891AF8D7C065162E" xlink:to="loc_mtrx_MultiemployerPlanZoneByTypeAxis_64972EB3322050769787D4ACA95E8F2C" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlanZoneByTypeDomain" xlink:label="loc_mtrx_MultiemployerPlanZoneByTypeDomain_52536A8B58D12268B107E5FF58C988A1_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_MultiemployerPlanZoneByTypeAxis_64972EB3322050769787D4ACA95E8F2C" xlink:to="loc_mtrx_MultiemployerPlanZoneByTypeDomain_52536A8B58D12268B107E5FF58C988A1_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MultiemployerPlanZoneByTypeDomain" xlink:label="loc_mtrx_MultiemployerPlanZoneByTypeDomain_4CAC4E1A8F915C73AF0D936C8C947A85" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_MultiemployerPlanZoneByTypeAxis_64972EB3322050769787D4ACA95E8F2C" xlink:to="loc_mtrx_MultiemployerPlanZoneByTypeDomain_4CAC4E1A8F915C73AF0D936C8C947A85" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ZoneRedMember" xlink:label="loc_mtrx_ZoneRedMember_884FD63519F256A49583C8ED53136F7E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_MultiemployerPlanZoneByTypeDomain_4CAC4E1A8F915C73AF0D936C8C947A85" xlink:to="loc_mtrx_ZoneRedMember_884FD63519F256A49583C8ED53136F7E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ZoneYellowMember" xlink:label="loc_mtrx_ZoneYellowMember_D8D3D2F6B0615C858A5E07565A56D60C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_MultiemployerPlanZoneByTypeDomain_4CAC4E1A8F915C73AF0D936C8C947A85" xlink:to="loc_mtrx_ZoneYellowMember_D8D3D2F6B0615C858A5E07565A56D60C" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ZoneGreenMember" xlink:label="loc_mtrx_ZoneGreenMember_AE23F4DA599F5A7EB6E84D4C35CD3337" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_MultiemployerPlanZoneByTypeDomain_4CAC4E1A8F915C73AF0D936C8C947A85" xlink:to="loc_mtrx_ZoneGreenMember_AE23F4DA599F5A7EB6E84D4C35CD3337" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PercentageOfPlanFunded" xlink:label="loc_mtrx_PercentageOfPlanFunded_3C2AEC4DF5DA5BE2A085F7C671145716" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_40F9C4F1B35E5BCCB254647E85395311" xlink:to="loc_mtrx_PercentageOfPlanFunded_3C2AEC4DF5DA5BE2A085F7C671145716" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_DescriptionOfFundedPortionOfPlan" xlink:label="loc_mtrx_DescriptionOfFundedPortionOfPlan_7545408FB1D755B9A76A6E66DA8EA4AB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MultiemployerPlansLineItems_40F9C4F1B35E5BCCB254647E85395311" xlink:to="loc_mtrx_DescriptionOfFundedPortionOfPlan_7545408FB1D755B9A76A6E66DA8EA4AB" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/EmployeeBenefitPlansTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssets" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_57C97841101E458C1D60619FBFD07E1B" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_634273C579497ADE16DC619FBFD06D24" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_57C97841101E458C1D60619FBFD07E1B" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_634273C579497ADE16DC619FBFD06D24" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3AD481352BC691706903619FBFD07540" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_634273C579497ADE16DC619FBFD06D24" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3AD481352BC691706903619FBFD07540" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3AD481352BC691706903619FBFD07540" xlink:to="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3AD481352BC691706903619FBFD07540" xlink:to="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_4729B013F3CDFC46B9F9619FBFD03A97" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:to="loc_mtrx_ElectricalInfrastructureMember_4729B013F3CDFC46B9F9619FBFD03A97" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_A5921715716FAAC6BD3B619FBFD02C9F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:to="loc_mtrx_OilGasAndChemicalMember_A5921715716FAAC6BD3B619FBFD02C9F" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_78C13F2FB68C4E16D816619FBFD0DCD7" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:to="loc_mtrx_StorageSolutionsMember_78C13F2FB68C4E16D816619FBFD0DCD7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_74F318CF5AFF42D60BE2619FBFD0AD1B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:to="loc_mtrx_IndustrialMember_74F318CF5AFF42D60BE2619FBFD0AD1B" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ReportingUnitMember" xlink:label="loc_mtrx_ReportingUnitMember_89A6F5520BDAA7307CB161D46C70780F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_497F14EDF1243CE3398A619FBFD0ECD5" xlink:to="loc_mtrx_ReportingUnitMember_89A6F5520BDAA7307CB161D46C70780F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_57C97841101E458C1D60619FBFD07E1B" xlink:to="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_9B9EF5F0D8E1901C297B619FBFD03461" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_GoodwillGross_9B9EF5F0D8E1901C297B619FBFD03461" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_26E7803D098AA88FBF42619FBFD0B557" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_26E7803D098AA88FBF42619FBFD0B557" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_9DE036C96A912BBD7674619FBFD05C50" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_Goodwill_9DE036C96A912BBD7674619FBFD05C50" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_94F82D578E3515A582B4619FBFD071DA" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_94F82D578E3515A582B4619FBFD071DA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_06A827BF929EEAAD4EEC619FBFD01DD8" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_06A827BF929EEAAD4EEC619FBFD01DD8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_44F2F318825629938AFF619FBFD03887" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_44F2F318825629938AFF619FBFD03887" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount" xlink:label="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_C35AC71406D984D9DE0461CF371D2F6E" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9843E6D851CBECAF7060619FBFD0B534" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_C35AC71406D984D9DE0461CF371D2F6E" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetails1" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3BF6B74FE8D4FECBD2006254343C6770" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3BF6B74FE8D4FECBD2006254343C6770" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E0C0B171C66F7D8BBB936254343C9437_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3BF6B74FE8D4FECBD2006254343C6770" xlink:to="loc_us-gaap_SegmentDomain_E0C0B171C66F7D8BBB936254343C9437_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E0C0B171C66F7D8BBB936254343C9437" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3BF6B74FE8D4FECBD2006254343C6770" xlink:to="loc_us-gaap_SegmentDomain_E0C0B171C66F7D8BBB936254343C9437" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ReportingUnitMember" xlink:label="loc_mtrx_ReportingUnitMember_6BABF4E05F817C6E4B046254343CD193" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E0C0B171C66F7D8BBB936254343C9437" xlink:to="loc_mtrx_ReportingUnitMember_6BABF4E05F817C6E4B046254343CD193" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_E4B69143123BB0CB36976254343C0764" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_E4B69143123BB0CB36976254343C0764" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E4B69143123BB0CB36976254343C0764" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E4B69143123BB0CB36976254343C0764" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_6178F12D7C1EEA79B18C6254344B94C1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_6178F12D7C1EEA79B18C6254344B94C1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_5C546C4053EAE2FAD4076254344BB3B5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D57BD8062A6596F0E2E96254344B17B6" xlink:to="loc_mtrx_HoustonInterestsLLCMember_5C546C4053EAE2FAD4076254344BB3B5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_029DA7D2CF2CE0C7CE8A6254344BC218" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_029DA7D2CF2CE0C7CE8A6254344BC218" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_029DA7D2CF2CE0C7CE8A6254344BC218" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_029DA7D2CF2CE0C7CE8A6254344BC218" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_SMElectricTradeNameMember" xlink:label="loc_mtrx_SMElectricTradeNameMember_62D289D17019A8D8688E6254344B024E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:to="loc_mtrx_SMElectricTradeNameMember_62D289D17019A8D8688E6254344B024E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntellectualPropertyMember" xlink:label="loc_us-gaap_IntellectualPropertyMember_5273C47CBB7D22126BE06254344BF33E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:to="loc_us-gaap_IntellectualPropertyMember_5273C47CBB7D22126BE06254344BF33E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerBasedMember" xlink:label="loc_mtrx_CustomerBasedMember_BF0296D6E299933B183D6254344B5115" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:to="loc_mtrx_CustomerBasedMember_BF0296D6E299933B183D6254344B5115" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_73FF568379908911AF176254344B3ECE" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_73FF568379908911AF176254344B3ECE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_6E087A33A209662B937C6254344B7DB0" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_063782B86E89D22508F66254344B3A20" xlink:to="loc_us-gaap_TradeNamesMember_6E087A33A209662B937C6254344B7DB0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2816A367AD312B78F0066254344B3AC6" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2816A367AD312B78F0066254344B3AC6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_236FBFD4B6460417D2666254344B49C5_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2816A367AD312B78F0066254344B3AC6" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_236FBFD4B6460417D2666254344B49C5_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_236FBFD4B6460417D2666254344B49C5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2816A367AD312B78F0066254344B3AC6" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_236FBFD4B6460417D2666254344B49C5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_CA198A327C79BBA4B7D76254344B722D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_236FBFD4B6460417D2666254344B49C5" xlink:to="loc_us-gaap_TradeNamesMember_CA198A327C79BBA4B7D76254344B722D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_DCA95341C536F8A7207F6254344B5BC3" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_25FC0B681D74FBCB7FCA6254343C2DD2" xlink:to="loc_us-gaap_RangeAxis_DCA95341C536F8A7207F6254344B5BC3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_DCA95341C536F8A7207F6254344B5BC3" xlink:to="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_DCA95341C536F8A7207F6254344B5BC3" xlink:to="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_381F7A4F11FBA41441C76254344B2BD2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4" xlink:to="loc_us-gaap_MinimumMember_381F7A4F11FBA41441C76254344B2BD2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_4ED0EE1B81D50C0F38806254344BF8A7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_F64644ED0341989464356254344B0FC4" xlink:to="loc_us-gaap_MaximumMember_4ED0EE1B81D50C0F38806254344BF8A7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_BD73AE3E66640DAEA26B6254344B6479" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_BD73AE3E66640DAEA26B6254344B6479" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedTradeNamesGross" xlink:label="loc_us-gaap_FiniteLivedTradeNamesGross_0A8EE9828F5E699159516254344B7BA8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:to="loc_us-gaap_FiniteLivedTradeNamesGross_0A8EE9828F5E699159516254344B7BA8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_15B2A7CAA4747D62DF376254344BC4D6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_15B2A7CAA4747D62DF376254344BC4D6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D76BF817E0CC50CA6BF16254344BED04" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_B3051E4C2EDACDE654A96254344B19F4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_B3051E4C2EDACDE654A96254344B19F4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_AD7E86F84128F6CFCB6C6254344B11F6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_AD7E86F84128F6CFCB6C6254344B11F6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_7DAACE1DBBE3474A16626254344BF6F9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_7DAACE1DBBE3474A16626254344BF6F9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_E6C7BC7CA00DF9D045146254344B34D0" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_E6C7BC7CA00DF9D045146254344B34D0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedTradeNames" xlink:label="loc_us-gaap_IndefiniteLivedTradeNames_B4B7F6C115B82C3F66EF6254344BF50C" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_B4B7F6C115B82C3F66EF6254344BF50C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_762ABD04E9E12514F1156254344B4BAF" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_762ABD04E9E12514F1156254344B4BAF" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IntangibleAssetsAccumulatedAmortizationExcludingGoodwill" xlink:label="loc_mtrx_IntangibleAssetsAccumulatedAmortizationExcludingGoodwill_E7C29E88EBBC107842DF6254344B7DEC" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_mtrx_IntangibleAssetsAccumulatedAmortizationExcludingGoodwill_E7C29E88EBBC107842DF6254344B7DEC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0406EAEF3BFD889E36126254344BD378" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0406EAEF3BFD889E36126254344BD378" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Netbookvalueofintangibleassetatriskofimpairment" xlink:label="loc_mtrx_Netbookvalueofintangibleassetatriskofimpairment_EC8526ED2163C4ED6A1A6254344BADD0" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_FD5F50255420AE3675E46254344BD76E" xlink:to="loc_mtrx_Netbookvalueofintangibleassetatriskofimpairment_EC8526ED2163C4ED6A1A6254344BADD0" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsDetailsTextual" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxes" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails1" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails2" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails3" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetails4" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesDetailsTextual" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails5" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardLineItems" xlink:label="loc_us-gaap_TaxCreditCarryforwardLineItems_5D465613996E5F859A051F550394BE85" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardTable" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_5D465613996E5F859A051F550394BE85" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IncomeTaxAuthorityDescriptionAxis" xlink:label="loc_mtrx_IncomeTaxAuthorityDescriptionAxis_62E3F55F0EB65B65B3A9B195358EF19F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:to="loc_mtrx_IncomeTaxAuthorityDescriptionAxis_62E3F55F0EB65B65B3A9B195358EF19F" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IncomeTaxAuthorityDescriptionDomain" xlink:label="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_3247905E76324CEF61B4E5FF59165628_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_IncomeTaxAuthorityDescriptionAxis_62E3F55F0EB65B65B3A9B195358EF19F" xlink:to="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_3247905E76324CEF61B4E5FF59165628_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IncomeTaxAuthorityDescriptionDomain" xlink:label="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_D62AB3E3DC925F8CB5C5A13AA31B3676" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_IncomeTaxAuthorityDescriptionAxis_62E3F55F0EB65B65B3A9B195358EF19F" xlink:to="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_D62AB3E3DC925F8CB5C5A13AA31B3676" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_StatetaxcreditMember" xlink:label="loc_mtrx_StatetaxcreditMember_1C9734E9970B541CB84246E992B481F6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_D62AB3E3DC925F8CB5C5A13AA31B3676" xlink:to="loc_mtrx_StatetaxcreditMember_1C9734E9970B541CB84246E992B481F6" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_FederaltaxcreditcarryforwardMember" xlink:label="loc_mtrx_FederaltaxcreditcarryforwardMember_A7961C75DB765458AED252175513E250" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_D62AB3E3DC925F8CB5C5A13AA31B3676" xlink:to="loc_mtrx_FederaltaxcreditcarryforwardMember_A7961C75DB765458AED252175513E250" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ForeigntaxcreditcarryforwardMember" xlink:label="loc_mtrx_ForeigntaxcreditcarryforwardMember_AD3369412D2E5329A0058DC567936CE9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_IncomeTaxAuthorityDescriptionDomain_D62AB3E3DC925F8CB5C5A13AA31B3676" xlink:to="loc_mtrx_ForeigntaxcreditcarryforwardMember_AD3369412D2E5329A0058DC567936CE9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardAxis" xlink:label="loc_us-gaap_TaxCreditCarryforwardAxis_422DB914C22853FEB5C5D72C6F0A4200" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:to="loc_us-gaap_TaxCreditCarryforwardAxis_422DB914C22853FEB5C5D72C6F0A4200" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_FA764270EA2E5283C742E5FF5916D053_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_422DB914C22853FEB5C5D72C6F0A4200" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_FA764270EA2E5283C742E5FF5916D053_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_69C55C3318885C959C1C5B69BF88E9A0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_422DB914C22853FEB5C5D72C6F0A4200" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_69C55C3318885C959C1C5B69BF88E9A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_18D7A539FB8657B6BF5417EE38FB8190" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_18D7A539FB8657B6BF5417EE38FB8190" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_59C5E87F42C6966C639CE5FF5916B1FC_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_18D7A539FB8657B6BF5417EE38FB8190" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_59C5E87F42C6966C639CE5FF5916B1FC_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_AD43708245F65AA7BB54ED998804D0C6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_18D7A539FB8657B6BF5417EE38FB8190" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_AD43708245F65AA7BB54ED998804D0C6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_E27437294C495BEAB16C194AAC1F59EB" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_4D95912066775B63B8ECDEF890321AFE" xlink:to="loc_us-gaap_TaxPeriodAxis_E27437294C495BEAB16C194AAC1F59EB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_D9475C02B719CF91B84DE5FF5916375D_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_E27437294C495BEAB16C194AAC1F59EB" xlink:to="loc_us-gaap_TaxPeriodDomain_D9475C02B719CF91B84DE5FF5916375D_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_2950C8D07FC15464AF3BF1B3AE3D31D5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_E27437294C495BEAB16C194AAC1F59EB" xlink:to="loc_us-gaap_TaxPeriodDomain_2950C8D07FC15464AF3BF1B3AE3D31D5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardDescription" xlink:label="loc_us-gaap_TaxCreditCarryforwardDescription_3E4349B344605F5AB9A9050F4ED85242" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_5D465613996E5F859A051F550394BE85" xlink:to="loc_us-gaap_TaxCreditCarryforwardDescription_3E4349B344605F5AB9A9050F4ED85242" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_95EB3330358752CA86825AE10478A7CC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_5D465613996E5F859A051F550394BE85" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_95EB3330358752CA86825AE10478A7CC" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails6" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_BC295638EDFE57F99388916174A00C12" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_86F556F1F5A05029ADD99AC6107E29E4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BC295638EDFE57F99388916174A00C12" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_86F556F1F5A05029ADD99AC6107E29E4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_ECB6741E0CD85C6FA20E77ED99FA9DC5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_86F556F1F5A05029ADD99AC6107E29E4" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_ECB6741E0CD85C6FA20E77ED99FA9DC5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_7882105F10C0224EB6B2D8CF4ECC2DAF_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_ECB6741E0CD85C6FA20E77ED99FA9DC5" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_7882105F10C0224EB6B2D8CF4ECC2DAF_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_437DD5CE6F55537C96E4278330AFB54A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_ECB6741E0CD85C6FA20E77ED99FA9DC5" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_437DD5CE6F55537C96E4278330AFB54A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_A211300DAF2955E6B6D56660937779A5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_437DD5CE6F55537C96E4278330AFB54A" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_A211300DAF2955E6B6D56660937779A5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignCountryMember" xlink:label="loc_us-gaap_ForeignCountryMember_9C924D231C8C59A6B6AA20EE0DC4986F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_437DD5CE6F55537C96E4278330AFB54A" xlink:to="loc_us-gaap_ForeignCountryMember_9C924D231C8C59A6B6AA20EE0DC4986F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_ACB87E21C26051A4888E479E526BDB3A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_86F556F1F5A05029ADD99AC6107E29E4" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_ACB87E21C26051A4888E479E526BDB3A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_D5442520B18240282103D8CF4ECC2A63_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_ACB87E21C26051A4888E479E526BDB3A" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_D5442520B18240282103D8CF4ECC2A63_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_009C009798CE5CD8BD94790F4FD72FA6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_ACB87E21C26051A4888E479E526BDB3A" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_009C009798CE5CD8BD94790F4FD72FA6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_4C348C6078965AC7B969E0C39EAADEAD" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_86F556F1F5A05029ADD99AC6107E29E4" xlink:to="loc_us-gaap_TaxPeriodAxis_4C348C6078965AC7B969E0C39EAADEAD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_D2E2DC0B5786ED89D07FD8CF4ECCD3E1_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_4C348C6078965AC7B969E0C39EAADEAD" xlink:to="loc_us-gaap_TaxPeriodDomain_D2E2DC0B5786ED89D07FD8CF4ECCD3E1_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_364F93CBB8915D1D865EDE0E2B07B156" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_4C348C6078965AC7B969E0C39EAADEAD" xlink:to="loc_us-gaap_TaxPeriodDomain_364F93CBB8915D1D865EDE0E2B07B156" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsLimitationsOnUse" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLimitationsOnUse_6D99A4364EC9568495FC40CF86EF3B44" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BC295638EDFE57F99388916174A00C12" xlink:to="loc_us-gaap_OperatingLossCarryforwardsLimitationsOnUse_6D99A4364EC9568495FC40CF86EF3B44" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_3A6BEE73E04551DE9B2D34CA3E7E39D6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BC295638EDFE57F99388916174A00C12" xlink:to="loc_us-gaap_OperatingLossCarryforwards_3A6BEE73E04551DE9B2D34CA3E7E39D6" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/OperatingLeases" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/OperatingLeasesDetailsTextual" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedQuarterlyFinancialDataUnaudited" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/QuarterlyFinancialDataUnauditedTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_3E0B780E48936D40BCBC62543371EF4C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7F4DB75DF6210A25D1C76254337169E7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3E0B780E48936D40BCBC62543371EF4C" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7F4DB75DF6210A25D1C76254337169E7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_2C6383690EC3E127E20462543371DA45" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7F4DB75DF6210A25D1C76254337169E7" xlink:to="loc_us-gaap_ConsolidationItemsAxis_2C6383690EC3E127E20462543371DA45" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_2C6383690EC3E127E20462543371DA45" xlink:to="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_2C6383690EC3E127E20462543371DA45" xlink:to="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_C6985B5CB993A63B714062543371B5AC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016" xlink:to="loc_us-gaap_OperatingSegmentsMember_C6985B5CB993A63B714062543371B5AC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_CA4394CF3F5386194DE762543371A3EC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_10BBAE3C7E99368AD21F625433713016" xlink:to="loc_us-gaap_IntersegmentEliminationMember_CA4394CF3F5386194DE762543371A3EC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_AA42524F72040E302789625433713704" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_7F4DB75DF6210A25D1C76254337169E7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AA42524F72040E302789625433713704" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AA42524F72040E302789625433713704" xlink:to="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AA42524F72040E302789625433713704" xlink:to="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_2BE6FF9B3A638BFDC7EB62543371B8BE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:to="loc_mtrx_ElectricalInfrastructureMember_2BE6FF9B3A638BFDC7EB62543371B8BE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_0557BF051E7EEAC7940F62543371DA5C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:to="loc_mtrx_OilGasAndChemicalMember_0557BF051E7EEAC7940F62543371DA5C" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_DFDFB9912C8F64111E1062543371ACF4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:to="loc_mtrx_StorageSolutionsMember_DFDFB9912C8F64111E1062543371ACF4" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_21FEEB3FB01D181C6B22625433717961" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:to="loc_mtrx_IndustrialMember_21FEEB3FB01D181C6B22625433717961" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllOtherSegmentsMember" xlink:label="loc_us-gaap_AllOtherSegmentsMember_13D97BB22172C8E4C7156254337120FB" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E743DEB0DF1C5E07402062543371F5D4" xlink:to="loc_us-gaap_AllOtherSegmentsMember_13D97BB22172C8E4C7156254337120FB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationProfitLossAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3E0B780E48936D40BCBC62543371EF4C" xlink:to="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Grossrevenues" xlink:label="loc_mtrx_Grossrevenues_5F5E0315F57747F6B8DE62AEB91EFF80" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_mtrx_Grossrevenues_5F5E0315F57747F6B8DE62AEB91EFF80" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_BBEEE066BBF0EDCF2764625433717689" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_Revenues_BBEEE066BBF0EDCF2764625433717689" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_13A9845C276CDB65D53E62543371785B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_GrossProfit_13A9845C276CDB65D53E62543371785B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_2BD687F43AB67449BA0A62543371A095" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_OperatingIncomeLoss_2BD687F43AB67449BA0A62543371A095" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_BEC0E572AB4CF658FB2A6254337189C2" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_Assets_BEC0E572AB4CF658FB2A6254337189C2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8122ACF362308891DB21625433719D01" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8122ACF362308891DB21625433719D01" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_63F2BC290ACE9FE8462162543371D243" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_B30738DC1250271C5D5A625433716BB8" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_63F2BC290ACE9FE8462162543371D243" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationDetails1" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_D3D01A7E17255CEEABF6B7EC774FBCA2" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DFBBD50A92B75B379E42F10B5C7CE674" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_D3D01A7E17255CEEABF6B7EC774FBCA2" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DFBBD50A92B75B379E42F10B5C7CE674" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_8B4A324FE8EB5E718312342C21D8BC65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DFBBD50A92B75B379E42F10B5C7CE674" xlink:to="loc_us-gaap_StatementGeographicalAxis_8B4A324FE8EB5E718312342C21D8BC65" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_DDA21289C0B8A96F8254DCB20E8E26B5_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_8B4A324FE8EB5E718312342C21D8BC65" xlink:to="loc_us-gaap_SegmentGeographicalDomain_DDA21289C0B8A96F8254DCB20E8E26B5_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_CE6669D9A8E553048BE734CAC31C075C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_8B4A324FE8EB5E718312342C21D8BC65" xlink:to="loc_us-gaap_SegmentGeographicalDomain_CE6669D9A8E553048BE734CAC31C075C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_US" xlink:label="loc_country_US_AF14346F59025492A64714FFF38427EE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_CE6669D9A8E553048BE734CAC31C075C" xlink:to="loc_country_US_AF14346F59025492A64714FFF38427EE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_CA" xlink:label="loc_country_CA_09F1DB26DBEB545CBDEB11DB98296E97" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_CE6669D9A8E553048BE734CAC31C075C" xlink:to="loc_country_CA_09F1DB26DBEB545CBDEB11DB98296E97" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_InternationalMember" xlink:label="loc_mtrx_InternationalMember_F8D63EA2BAFD537FAC6CC2C892E1E526" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_CE6669D9A8E553048BE734CAC31C075C" xlink:to="loc_mtrx_InternationalMember_F8D63EA2BAFD537FAC6CC2C892E1E526" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ScheduleOfSegmentReportingInformationByGeographicAreasAbstract" xlink:label="loc_mtrx_ScheduleOfSegmentReportingInformationByGeographicAreasAbstract_EBC9C745DEF45BBA83099D7F70BB9539" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_D3D01A7E17255CEEABF6B7EC774FBCA2" xlink:to="loc_mtrx_ScheduleOfSegmentReportingInformationByGeographicAreasAbstract_EBC9C745DEF45BBA83099D7F70BB9539" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueServicesNet" xlink:label="loc_us-gaap_SalesRevenueServicesNet_137C127CB67D531299B11380294EFEC0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfSegmentReportingInformationByGeographicAreasAbstract_EBC9C745DEF45BBA83099D7F70BB9539" xlink:to="loc_us-gaap_SalesRevenueServicesNet_137C127CB67D531299B11380294EFEC0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncurrentAssets" xlink:label="loc_us-gaap_NoncurrentAssets_E3796AB863C3524B8A91625F580DB9C5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfSegmentReportingInformationByGeographicAreasAbstract_EBC9C745DEF45BBA83099D7F70BB9539" xlink:to="loc_us-gaap_NoncurrentAssets_E3796AB863C3524B8A91625F580DB9C5" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_FC18342FA120A8E87520625433528207" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_DAB295A0CE3F2A21878C62543352324B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_FC18342FA120A8E87520625433528207" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_DAB295A0CE3F2A21878C62543352324B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6FE1CC0507E921471344625433524C43" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_DAB295A0CE3F2A21878C62543352324B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6FE1CC0507E921471344625433524C43" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6FE1CC0507E921471344625433524C43" xlink:to="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6FE1CC0507E921471344625433524C43" xlink:to="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_565EC61A3AF33A865FD6625433525916" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:to="loc_mtrx_ElectricalInfrastructureMember_565EC61A3AF33A865FD6625433525916" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_CC910B1E870448AF741B625433525B28" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:to="loc_mtrx_OilGasAndChemicalMember_CC910B1E870448AF741B625433525B28" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_0556AE36E12E2EAE1279625433521364" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:to="loc_mtrx_StorageSolutionsMember_0556AE36E12E2EAE1279625433521364" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_C9CE2C37DDF4E44F0519625433521560" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_76350537270C6D31A9EF62543352D424" xlink:to="loc_mtrx_IndustrialMember_C9CE2C37DDF4E44F0519625433521560" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_D4DF89450CA8429B1159625433520C09" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_DAB295A0CE3F2A21878C62543352324B" xlink:to="loc_us-gaap_MajorCustomersAxis_D4DF89450CA8429B1159625433520C09" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_D4DF89450CA8429B1159625433520C09" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_D4DF89450CA8429B1159625433520C09" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerOneMember" xlink:label="loc_mtrx_CustomerOneMember_13C6912CA13F4CB06BCC62543352B96E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerOneMember_13C6912CA13F4CB06BCC62543352B96E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerTwoMember" xlink:label="loc_mtrx_CustomerTwoMember_C41D4406E755ACB8198C6254335247FA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerTwoMember_C41D4406E755ACB8198C6254335247FA" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerThreeMember" xlink:label="loc_mtrx_CustomerThreeMember_F6EA9C936CDBEBFB8A4C62543352025B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerThreeMember_F6EA9C936CDBEBFB8A4C62543352025B" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerFourMember" xlink:label="loc_mtrx_CustomerFourMember_628D4C31B3D20F0E0B65625433527028" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerFourMember_628D4C31B3D20F0E0B65625433527028" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerFiveMemberMember" xlink:label="loc_mtrx_CustomerFiveMemberMember_EADE9EC4E0B3933893B0625433522CD1" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerFiveMemberMember_EADE9EC4E0B3933893B0625433522CD1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerSixMember" xlink:label="loc_mtrx_CustomerSixMember_B02BBBE3C88F3BA2CFE26254335271BD" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerSixMember_B02BBBE3C88F3BA2CFE26254335271BD" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerSevenMember" xlink:label="loc_mtrx_CustomerSevenMember_247C8C76F8F20045AAE36254335202A7" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerSevenMember_247C8C76F8F20045AAE36254335202A7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerEightMember" xlink:label="loc_mtrx_CustomerEightMember_B96F205EFA48A066FD2D62543352488E" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerEightMember_B96F205EFA48A066FD2D62543352488E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerNineMember" xlink:label="loc_mtrx_CustomerNineMember_32763388EA492EA41F9F625433522643" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerNineMember_32763388EA492EA41F9F625433522643" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerTenMember" xlink:label="loc_mtrx_CustomerTenMember_9B718FF4879EDF0068DD625433520BD5" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerTenMember_9B718FF4879EDF0068DD625433520BD5" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_CustomerElevenMember" xlink:label="loc_mtrx_CustomerElevenMember_59521B682A36ACAB9B55626A43F315AD" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_CustomerElevenMember_59521B682A36ACAB9B55626A43F315AD" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_AnotherCustomerMember" xlink:label="loc_mtrx_AnotherCustomerMember_D178FC8BBBBD122C4BD0625433522C97" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_D9D536664AB1B70204AF62543352B9C7" xlink:to="loc_mtrx_AnotherCustomerMember_D178FC8BBBBD122C4BD0625433522C97" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_BADF01BA914BF00F306362543352DA85" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_FC18342FA120A8E87520625433528207" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_BADF01BA914BF00F306362543352DA85" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails1" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails2" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_054347CDD865C77B59D151FDF887FD0F" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_A8261916392B886C2C3E51FDF88787F4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_054347CDD865C77B59D151FDF887FD0F" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_A8261916392B886C2C3E51FDF88787F4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_F498B1D13C26B7DAC0BF51FDF887DB75" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_A8261916392B886C2C3E51FDF88787F4" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_F498B1D13C26B7DAC0BF51FDF887DB75" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_F498B1D13C26B7DAC0BF51FDF887DB75" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_F498B1D13C26B7DAC0BF51FDF887DB75" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_RangeThreeMember" xlink:label="loc_mtrx_RangeThreeMember_89C076C8A8E43F3E808C51FDF887511E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2" xlink:to="loc_mtrx_RangeThreeMember_89C076C8A8E43F3E808C51FDF887511E" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_RangeOneMember" xlink:label="loc_mtrx_RangeOneMember_469970D2A737127F8D1751FDF887BE10" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2" xlink:to="loc_mtrx_RangeOneMember_469970D2A737127F8D1751FDF887BE10" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_RangeTwoMember" xlink:label="loc_mtrx_RangeTwoMember_0D8FF5B1A78A1F29636E51FDF88774B2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_5906987885CCB9D029A151FDF88710E2" xlink:to="loc_mtrx_RangeTwoMember_0D8FF5B1A78A1F29636E51FDF88774B2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract" xlink:label="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_054347CDD865C77B59D151FDF887FD0F" xlink:to="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_E7F6649BFD35287D96B651FDF8874526" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_E7F6649BFD35287D96B651FDF8874526" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_BE487E11BA6B384A9A2751FDF8881128" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_BE487E11BA6B384A9A2751FDF8881128" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_F6344A2C717A8923812C51FDF8883038" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_F6344A2C717A8923812C51FDF8883038" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1" xlink:label="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_3C5BB0BB21E0330DA95351FDF888D591" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_3C5BB0BB21E0330DA95351FDF888D591" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_9AFBC76F5B5B38D73C6B51FDF888E832" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_9AFBC76F5B5B38D73C6B51FDF888E832" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_8F5685D71F8FC4A0D0A551FDF888B9C1" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_8F5685D71F8FC4A0D0A551FDF888B9C1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_09D3FE56D868AC12688451FDF888ED7C" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_09D3FE56D868AC12688451FDF888ED7C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_3C34BB50E417918B14A751FDF888699F" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAbstract_11C014191B3F1930C95451FDF8878257" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_3C34BB50E417918B14A751FDF888699F" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationDetails3" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_34F3C35430BFDD38B4D8623F027EE91E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:to="loc_us-gaap_PlanNameAxis_34F3C35430BFDD38B4D8623F027EE91E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_34F3C35430BFDD38B4D8623F027EE91E" xlink:to="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_34F3C35430BFDD38B4D8623F027EE91E" xlink:to="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MatrixServiceCompanys2004StockandIncentiveCompensationPlanMember" xlink:label="loc_mtrx_MatrixServiceCompanys2004StockandIncentiveCompensationPlanMember_D29A27C4C06BC8888BB1623F027ECD15" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212" xlink:to="loc_mtrx_MatrixServiceCompanys2004StockandIncentiveCompensationPlanMember_D29A27C4C06BC8888BB1623F027ECD15" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MatrixServiceCompanys2012StockandIncentiveCompensationPlanMember" xlink:label="loc_mtrx_MatrixServiceCompanys2012StockandIncentiveCompensationPlanMember_EE349DFF043392807DCD623F027E309A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212" xlink:to="loc_mtrx_MatrixServiceCompanys2012StockandIncentiveCompensationPlanMember_EE349DFF043392807DCD623F027E309A" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MatrixServiceCompany2016StockandIncentiveCompensationPlanMember" xlink:label="loc_mtrx_MatrixServiceCompany2016StockandIncentiveCompensationPlanMember_59BCAE94F532C17CF6F5623F027E3674" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_6FA833424835EB1E378B623F027E1212" xlink:to="loc_mtrx_MatrixServiceCompany2016StockandIncentiveCompensationPlanMember_59BCAE94F532C17CF6F5623F027E3674" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_CAC6A9D765BC04AD053C623F027E7B3D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:to="loc_us-gaap_AwardTypeAxis_CAC6A9D765BC04AD053C623F027E7B3D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_CAC6A9D765BC04AD053C623F027E7B3D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_CAC6A9D765BC04AD053C623F027E7B3D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MarketBasedAwardsMember" xlink:label="loc_mtrx_MarketBasedAwardsMember_61377EE28A74E81D5D10623F027EF586" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_MarketBasedAwardsMember_61377EE28A74E81D5D10623F027EF586" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Vestin2016Member" xlink:label="loc_mtrx_Vestin2016Member_7F2B699EDD27EDFE6F14623F027EF7EB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_Vestin2016Member_7F2B699EDD27EDFE6F14623F027EF7EB" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Vestin2017Member" xlink:label="loc_mtrx_Vestin2017Member_1E8747B68094FD90A400623F027EBCD2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_Vestin2017Member_1E8747B68094FD90A400623F027EBCD2" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Vestin2018Member" xlink:label="loc_mtrx_Vestin2018Member_6A090A10C2211832D4EF623F027E004C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_Vestin2018Member_6A090A10C2211832D4EF623F027E004C" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Vestin2019Member" xlink:label="loc_mtrx_Vestin2019Member_8CB356B5EDA98F03ECFB624C875C9D16" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_Vestin2019Member_8CB356B5EDA98F03ECFB624C875C9D16" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Vestin2020Member" xlink:label="loc_mtrx_Vestin2020Member_3991A4C160A76646ED2F624D01F8C2D8" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ED583508D5CDDE206115623F027EFC65" xlink:to="loc_mtrx_Vestin2020Member_3991A4C160A76646ED2F624D01F8C2D8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_7C3A53B7FB116A261D93623F027E444F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_7C3A53B7FB116A261D93623F027E444F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_8ECB640E032C73281BF6623F027ECA27_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_7C3A53B7FB116A261D93623F027E444F" xlink:to="loc_us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_8ECB640E032C73281BF6623F027ECA27_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_8ECB640E032C73281BF6623F027ECA27" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_7C3A53B7FB116A261D93623F027E444F" xlink:to="loc_us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_8ECB640E032C73281BF6623F027ECA27" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_EmployeeAwardMember" xlink:label="loc_mtrx_EmployeeAwardMember_BF9828A8D08745881C81623F027EF2E1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_8ECB640E032C73281BF6623F027ECA27" xlink:to="loc_mtrx_EmployeeAwardMember_BF9828A8D08745881C81623F027EF2E1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_3B912F3CCCF28B54BFF5623F027E85BD" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0A1492CA7F639CF129A2623F027E8532" xlink:to="loc_us-gaap_RangeAxis_3B912F3CCCF28B54BFF5623F027E85BD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_3B912F3CCCF28B54BFF5623F027E85BD" xlink:to="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_3B912F3CCCF28B54BFF5623F027E85BD" xlink:to="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_2DA0A0DC22B9FA1C7EAB623F027E9F8F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6" xlink:to="loc_us-gaap_MinimumMember_2DA0A0DC22B9FA1C7EAB623F027E9F8F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_356E1BA24C5BF133EA1A623F027E7B78" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_4C5A0885DE7050CD7E1C623F027E6AE6" xlink:to="loc_us-gaap_MaximumMember_356E1BA24C5BF133EA1A623F027E7B78" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_40F5BD90E7CB82423303623F027E14CE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensation_40F5BD90E7CB82423303623F027E14CE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_A320513A1C22D304364E623F027E53CC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_A320513A1C22D304364E623F027E53CC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_E16461224EE87864FB55623F027E80B5" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_E16461224EE87864FB55623F027E80B5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_72A73FA7C78D0B9E06E9623F027EC03E" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_72A73FA7C78D0B9E06E9623F027EC03E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_C46FA95225F0F9B6FC20623F027E247F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_C46FA95225F0F9B6FC20623F027E247F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_35AEC93FE437B623849A623F027E9F7B" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_35AEC93FE437B623849A623F027E9F7B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_1DFDB16156F0900642D8623F027EE339" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_1DFDB16156F0900642D8623F027EE339" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_7DD74C70D0131FFF04CD623F027E283C" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_7DD74C70D0131FFF04CD623F027E283C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6F52F0B72890EBA03C9B623F027E2AF7" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6F52F0B72890EBA03C9B623F027E2AF7" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardInstallmentPeriodForVesting" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardInstallmentPeriodForVesting_E80A093E348960CD90AC623F027EE48B" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardInstallmentPeriodForVesting_E80A093E348960CD90AC623F027EE48B" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriodOfDirectorAwards" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriodOfDirectorAwards_3A272BFBE797AD8E4166623F027E15FE" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriodOfDirectorAwards_3A272BFBE797AD8E4166623F027E15FE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardDescriptionofVestingPeriodofDirectorAwards" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardDescriptionofVestingPeriodofDirectorAwards_CA603545AC417FA581D0623F027EFA4B" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardDescriptionofVestingPeriodofDirectorAwards_CA603545AC417FA581D0623F027EFA4B" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PayoutAsPercentageOfOriginalAwardMinimum" xlink:label="loc_mtrx_PayoutAsPercentageOfOriginalAwardMinimum_60D634B995D7F6B01291623F027EBE44" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_PayoutAsPercentageOfOriginalAwardMinimum_60D634B995D7F6B01291623F027EBE44" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_PayoutAsPercentageOfOriginalAwardMaximum" xlink:label="loc_mtrx_PayoutAsPercentageOfOriginalAwardMaximum_7FD93688D58518014457623F027EF710" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_PayoutAsPercentageOfOriginalAwardMaximum_7FD93688D58518014457623F027EF710" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_MinimumThresholdSharesScheduledToVestForPerformanceBasedShares" xlink:label="loc_mtrx_MinimumThresholdSharesScheduledToVestForPerformanceBasedShares_CF2F3FB8ABD89E324F3E623F027EB691" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_MinimumThresholdSharesScheduledToVestForPerformanceBasedShares_CF2F3FB8ABD89E324F3E623F027EB691" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredGrantsInPeriod" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredGrantsInPeriod_41CDB32EB519A79E4D0F623F027EEC92" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredGrantsInPeriod_41CDB32EB519A79E4D0F623F027EEC92" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredWeightedAverageGrantDateFairValue" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredWeightedAverageGrantDateFairValue_7991AA1F1B2641F1CED3623F027ED559" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredWeightedAverageGrantDateFairValue_7991AA1F1B2641F1CED3623F027ED559" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleased" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleased_C5F3087A7FCBCFCD8CF4623F027ED8BE" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleased_C5F3087A7FCBCFCD8CF4623F027ED8BE" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleasedWeightedAverageGrantDateFairValue" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleasedWeightedAverageGrantDateFairValue_C8CE636A564A6571FC29623F027E3E24" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardDeferredSharesVestedAndReleasedWeightedAverageGrantDateFairValue_C8CE636A564A6571FC29623F027E3E24" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed_50D254E013DE46296425623F027EF4D6" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed_50D254E013DE46296425623F027EF4D6" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueMethodNumberofSimulationsUsed" xlink:label="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueMethodNumberofSimulationsUsed_97CE1D320948985F35CF623F027E5E76" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_D3D96B55731E57B54C48623F027EFE1E" xlink:to="loc_mtrx_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueMethodNumberofSimulationsUsed_97CE1D320948985F35CF623F027E5E76" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockholdersEquity" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/StockholdersEquityDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8C00DB7B0FE39CF757736207268FA013" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_94ACF6EB10F439236FA56207268F1552" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8C00DB7B0FE39CF757736207268FA013" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_94ACF6EB10F439236FA56207268F1552" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_2C12E3A1E2826A4389AC6207268F32C5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_94ACF6EB10F439236FA56207268F1552" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2C12E3A1E2826A4389AC6207268F32C5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_0082DAB99427B3DD58D86207268FFA04_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2C12E3A1E2826A4389AC6207268F32C5" xlink:to="loc_us-gaap_ClassOfStockDomain_0082DAB99427B3DD58D86207268FFA04_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_0082DAB99427B3DD58D86207268FFA04" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2C12E3A1E2826A4389AC6207268F32C5" xlink:to="loc_us-gaap_ClassOfStockDomain_0082DAB99427B3DD58D86207268FFA04" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_B72B0356D8FA59C79DF66207268FC395" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_94ACF6EB10F439236FA56207268F1552" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_B72B0356D8FA59C79DF66207268FC395" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_01E79875A36CEC21D86D6207268F6626_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_B72B0356D8FA59C79DF66207268FC395" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_01E79875A36CEC21D86D6207268F6626_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_01E79875A36CEC21D86D6207268F6626" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_B72B0356D8FA59C79DF66207268FC395" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_01E79875A36CEC21D86D6207268F6626" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockRepurchaseProgramExpirationDate" xlink:label="loc_us-gaap_StockRepurchaseProgramExpirationDate_BD6431751A095A24E6E46207268FD192" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8C00DB7B0FE39CF757736207268FA013" xlink:to="loc_us-gaap_StockRepurchaseProgramExpirationDate_BD6431751A095A24E6E46207268FD192" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5F9C90E36B108C921D58625434B9CE5B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5F9C90E36B108C921D58625434B9CE5B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_872EA0916D90D453F06A625434B916CE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5F9C90E36B108C921D58625434B9CE5B" xlink:to="loc_us-gaap_StatementGeographicalAxis_872EA0916D90D453F06A625434B916CE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_D6EFD672212FAAC6AE4B625434B94D4A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_872EA0916D90D453F06A625434B916CE" xlink:to="loc_us-gaap_SegmentGeographicalDomain_D6EFD672212FAAC6AE4B625434B94D4A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_D6EFD672212FAAC6AE4B625434B94D4A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_872EA0916D90D453F06A625434B916CE" xlink:to="loc_us-gaap_SegmentGeographicalDomain_D6EFD672212FAAC6AE4B625434B94D4A" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_InternationalMember" xlink:label="loc_mtrx_InternationalMember_539DC9BF5C34FF81B73F625434B9BAD1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_D6EFD672212FAAC6AE4B625434B94D4A" xlink:to="loc_mtrx_InternationalMember_539DC9BF5C34FF81B73F625434B9BAD1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7002B28CF629BE5C35DE625434B9FD2A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5F9C90E36B108C921D58625434B9CE5B" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7002B28CF629BE5C35DE625434B9FD2A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7002B28CF629BE5C35DE625434B9FD2A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7002B28CF629BE5C35DE625434B9FD2A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_FF79DA3F74F31A13B5C5625434B97F07" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:to="loc_us-gaap_BuildingMember_FF79DA3F74F31A13B5C5625434B97F07" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_C45F2F280C5F72A139C0625434B967D2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:to="loc_us-gaap_EquipmentMember_C45F2F280C5F72A139C0625434B967D2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TransportationEquipmentMember" xlink:label="loc_us-gaap_TransportationEquipmentMember_A7153E3BB1B50644A9A8625434B914B2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:to="loc_us-gaap_TransportationEquipmentMember_A7153E3BB1B50644A9A8625434B914B2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_4C6C81B222C49C505F11625434B9311C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DEDF198F0956D354F3D6625434B967FB" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_4C6C81B222C49C505F11625434B9311C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_2D26AF3BB485DE76260C625434B9195C" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_5F9C90E36B108C921D58625434B9CE5B" xlink:to="loc_us-gaap_RangeAxis_2D26AF3BB485DE76260C625434B9195C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_2D26AF3BB485DE76260C625434B9195C" xlink:to="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_2D26AF3BB485DE76260C625434B9195C" xlink:to="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_413CDA7A77D504677433625434B9ABE6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409" xlink:to="loc_us-gaap_MinimumMember_413CDA7A77D504677433625434B9ABE6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_CA3F469AB3670B3C377F625434B92517" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_9E046B5BDD873DC94ACC625434B9F409" xlink:to="loc_us-gaap_MaximumMember_CA3F469AB3670B3C377F625434B92517" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_1FB4D5DCCC057535F6B0625434B9159C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_1FB4D5DCCC057535F6B0625434B9159C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_9D26A3D78F233B838404625434B9BFD2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_9D26A3D78F233B838404625434B9BFD2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_736F8EEAB4830402A45462A68851A27C" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_736F8EEAB4830402A45462A68851A27C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Cash" xlink:label="loc_us-gaap_Cash_F2CC313838DC55A6573562A688515D71" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0D92401F0D227183E5D7625434B9C8F3" xlink:to="loc_us-gaap_Cash_F2CC313838DC55A6573562A688515D71" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesImpactOfNewAccountingPronouncementDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8257F015F13D7E8A372C5F208CCB9DCE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8257F015F13D7E8A372C5F208CCB9DCE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_84C9A56899F943D68C5E5F208CCB1984" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8257F015F13D7E8A372C5F208CCB9DCE" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_84C9A56899F943D68C5E5F208CCB1984" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_84C9A56899F943D68C5E5F208CCB1984" xlink:to="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_84C9A56899F943D68C5E5F208CCB1984" xlink:to="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_DeferredTaxAssetImpactMember" xlink:label="loc_mtrx_DeferredTaxAssetImpactMember_55FA7E3EC56558E509885F208CCB9013" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D" xlink:to="loc_mtrx_DeferredTaxAssetImpactMember_55FA7E3EC56558E509885F208CCB9013" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_DeferredTaxesImpactLiabilitiesMember" xlink:label="loc_mtrx_DeferredTaxesImpactLiabilitiesMember_5A38AB75F05D75CBB1AF5F208CCBB5B8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_6252CAC03D22B4754D1C5F208CCB800D" xlink:to="loc_mtrx_DeferredTaxesImpactLiabilitiesMember_5A38AB75F05D75CBB1AF5F208CCBB5B8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_A4D277192D62A79AD68B5F208CCB17A9" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8257F015F13D7E8A372C5F208CCB9DCE" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_A4D277192D62A79AD68B5F208CCB17A9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_D77FB0611CC2D831A6CA5F208CCB9222_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_A4D277192D62A79AD68B5F208CCB17A9" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_D77FB0611CC2D831A6CA5F208CCB9222_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_D77FB0611CC2D831A6CA5F208CCB9222" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_A4D277192D62A79AD68B5F208CCB17A9" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_D77FB0611CC2D831A6CA5F208CCB9222" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_201B8E983261DE7FEA4A5F208CCB37B1" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8257F015F13D7E8A372C5F208CCB9DCE" xlink:to="loc_us-gaap_StatementScenarioAxis_201B8E983261DE7FEA4A5F208CCB37B1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A6E07395EAD7BB9619225F208CCB8A19_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_201B8E983261DE7FEA4A5F208CCB37B1" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A6E07395EAD7BB9619225F208CCB8A19_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A6E07395EAD7BB9619225F208CCB8A19" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_201B8E983261DE7FEA4A5F208CCB37B1" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A6E07395EAD7BB9619225F208CCB8A19" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" xlink:label="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification_5B46DE3F71441339AD525F208CCBEBB1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification_5B46DE3F71441339AD525F208CCBEBB1" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_Effectofnewaccountingstandardcomparedtooldstandard" xlink:label="loc_mtrx_Effectofnewaccountingstandardcomparedtooldstandard_6B6388EFCB4E6E1930F45F6C365EA1A8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_mtrx_Effectofnewaccountingstandardcomparedtooldstandard_6B6388EFCB4E6E1930F45F6C365EA1A8" xlink:type="arc" />
    <loc xlink:href="mtrx-20170630.xsd#mtrx_EffectofadoptionofnewaccountingstandardcomparedtooldstandardEPS" xlink:label="loc_mtrx_EffectofadoptionofnewaccountingstandardcomparedtooldstandardEPS_D52362594D2B967585645F6C4156389F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_mtrx_EffectofadoptionofnewaccountingstandardcomparedtooldstandardEPS_D52362594D2B967585645F6C4156389F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleDescriptionOfPriorperiodInformationRetrospectivelyAdjusted" xlink:label="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleDescriptionOfPriorperiodInformationRetrospectivelyAdjusted_4E0E0821E2178131F4245F6C7438D3EC" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleDescriptionOfPriorperiodInformationRetrospectivelyAdjusted_4E0E0821E2178131F4245F6C7438D3EC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAdditionalCapital" xlink:label="loc_us-gaap_OtherAdditionalCapital_6A946862245EB872782F5F208CCBC89D" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_8FE9E360914A7CCD76605F208CCB94CC" xlink:to="loc_us-gaap_OtherAdditionalCapital_6A946862245EB872782F5F208CCBC89D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ValuationAndQualifyingAccounts" xlink:type="extended" />
  <definitionLink xlink:role="http://www.matrixservicecompany.com/role/ValuationAndQualifyingAccountsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_5703EBF446205622BA1FCF788D1E557C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureTable" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_B062807EE1575D9DA1C46EF80C36F5B2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_5703EBF446205622BA1FCF788D1E557C" xlink:to="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_B062807EE1575D9DA1C46EF80C36F5B2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_E2BF497AE31E5B86B8DA8851E72C23D9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_B062807EE1575D9DA1C46EF80C36F5B2" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_E2BF497AE31E5B86B8DA8851E72C23D9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_EDB2C3BC1C9BBE0D02D5A06777530845_3114AC604BD650C9BF91149C38078CE0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_E2BF497AE31E5B86B8DA8851E72C23D9" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_EDB2C3BC1C9BBE0D02D5A06777530845_3114AC604BD650C9BF91149C38078CE0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_4B35E2D73DBB5C08992A1D6F6837350E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_E2BF497AE31E5B86B8DA8851E72C23D9" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_4B35E2D73DBB5C08992A1D6F6837350E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsMember" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsMember_750E3CBC50425E4992D65C089E2C6774" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_4B35E2D73DBB5C08992A1D6F6837350E" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsMember_750E3CBC50425E4992D65C089E2C6774" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember" xlink:label="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_585C9C1A60B157AAA6A10D9C20E1568A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_4B35E2D73DBB5C08992A1D6F6837350E" xlink:to="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_585C9C1A60B157AAA6A10D9C20E1568A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_5703EBF446205622BA1FCF788D1E557C" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesBalance" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_BF05ECEA99155242B4F6183A17EE4B2D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_BF05ECEA99155242B4F6183A17EE4B2D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_DA371BE3D8315AA38D5F4EE6F8ADB1B5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_DA371BE3D8315AA38D5F4EE6F8ADB1B5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts_9F192DE22C7055AAAA4475C85253CC0D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts_9F192DE22C7055AAAA4475C85253CC0D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDeductions" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDeductions_64A7CB464E145DDC8EB1FB7D4CEF3D4D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_2AC70461C1245481BDF4996E0BA48720" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDeductions_64A7CB464E145DDC8EB1FB7D4CEF3D4D" xlink:type="arc" />
  </definitionLink>
</linkbase>
