<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:href="mtrx-20171231.xsd#AcquisitionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsNarrativeDetails" xlink:href="mtrx-20171231.xsd#AcquisitionsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsNotes" xlink:href="mtrx-20171231.xsd#AcquisitionsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsProFormaDetails" xlink:href="mtrx-20171231.xsd#AcquisitionsProFormaDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsProFormaNarrativeDetails" xlink:href="mtrx-20171231.xsd#AcquisitionsProFormaNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:href="mtrx-20171231.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:href="mtrx-20171231.xsd#BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:href="mtrx-20171231.xsd#BasisOfPresentationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="mtrx-20171231.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:href="mtrx-20171231.xsd#CommitmentsAndContingenciesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:href="mtrx-20171231.xsd#CondensedConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:href="mtrx-20171231.xsd#DebtAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:href="mtrx-20171231.xsd#DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtNotes" xlink:href="mtrx-20171231.xsd#DebtNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DebtTables" xlink:href="mtrx-20171231.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:href="mtrx-20171231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:href="mtrx-20171231.xsd#EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:href="mtrx-20171231.xsd#EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:href="mtrx-20171231.xsd#EarningsPerCommonShareNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:href="mtrx-20171231.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:href="mtrx-20171231.xsd#IncomeTaxesIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:href="mtrx-20171231.xsd#IncomeTaxesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:href="mtrx-20171231.xsd#IntangibleAssetsIncludingGoodwillTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:href="mtrx-20171231.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:href="mtrx-20171231.xsd#SegmentInformationResultsOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:href="mtrx-20171231.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsAdditionalInformationDetail" xlink:href="mtrx-20171231.xsd#UncompletedContractsAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:href="mtrx-20171231.xsd#UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsNotes" xlink:href="mtrx-20171231.xsd#UncompletedContractsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.matrixservicecompany.com/role/UncompletedContractsTables" xlink:href="mtrx-20171231.xsd#UncompletedContractsTables" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsDetails" xlink:type="extended">
    <link: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_5F3BFA5BE0C65528AED15090E1D438CE" xlink:type="locator" />
    <link: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_D5E956DFE0EC5A60A554D7D3F2E5EF10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_D5E956DFE0EC5A60A554D7D3F2E5EF10" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_34ED1A43B9675EC6BA9956CAD9E6B4AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_D5E956DFE0EC5A60A554D7D3F2E5EF10" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_34ED1A43B9675EC6BA9956CAD9E6B4AF" xlink:type="arc" />
    <link: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_9E3C6F102DD2C7E25F949629BCE5BFE5_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_34ED1A43B9675EC6BA9956CAD9E6B4AF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9E3C6F102DD2C7E25F949629BCE5BFE5_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_23D3A1250E6F5E2593052F4795CCBC55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_34ED1A43B9675EC6BA9956CAD9E6B4AF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_23D3A1250E6F5E2593052F4795CCBC55" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_CEE5B8CFBEB55E94BAA8EFE66CEF06C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_23D3A1250E6F5E2593052F4795CCBC55" xlink:to="loc_mtrx_HoustonInterestsLLCMember_CEE5B8CFBEB55E94BAA8EFE66CEF06C6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_57C06E54FA8654438686E9022DFF161C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_23D3A1250E6F5E2593052F4795CCBC55" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_57C06E54FA8654438686E9022DFF161C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_444271C4B0AA5AB8946F9589985BE062" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_23D3A1250E6F5E2593052F4795CCBC55" xlink:to="loc_mtrx_HDBInc.Member_444271C4B0AA5AB8946F9589985BE062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_380FDA6AF8555D319D49E4FF10DA4E0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_380FDA6AF8555D319D49E4FF10DA4E0C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Cashpaidforequityinterest" xlink:label="loc_mtrx_Cashpaidforequityinterest_721CA6740AA85B0A8EB5529482190860" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_Cashpaidforequityinterest_721CA6740AA85B0A8EB5529482190860" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement" xlink:label="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_9663C805C5D4555988F4FDC5A963E646" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement_9663C805C5D4555988F4FDC5A963E646" xlink:type="arc" />
    <link: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_BF9580ACB7A253FFBD56833988E62E79" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_BF9580ACB7A253FFBD56833988E62E79" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts" xlink:label="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_5E161DA1B6255778BA738E01F84E978D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_Costsandestimatedearningsinexcessofbillingsonuncompletedcontracts_5E161DA1B6255778BA738E01F84E978D" xlink:type="arc" />
    <link: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_1416915A65635FAC892C7B724C050B3C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_1416915A65635FAC892C7B724C050B3C" xlink:type="arc" />
    <link: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_B478E1172E735519AE16E67A774D8696" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_B478E1172E735519AE16E67A774D8696" xlink:type="arc" />
    <link: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_33980C9F18D35C88B953830FAB909FBE" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_33980C9F18D35C88B953830FAB909FBE" xlink:type="arc" />
    <link: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_2B90567BC55B5883953EB4887FAE6FB6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_2B90567BC55B5883953EB4887FAE6FB6" xlink:type="arc" />
    <link: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_AC2C56975185500796A3D764912E2C85" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_Goodwill_AC2C56975185500796A3D764912E2C85" xlink:type="arc" />
    <link: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_EFE9D10DA2BB546F9B5AAF9B9F309501" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount_EFE9D10DA2BB546F9B5AAF9B9F309501" xlink:type="arc" />
    <link: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_01303C0750465188A00529C9DB7EE8B8" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_01303C0750465188A00529C9DB7EE8B8" xlink:type="arc" />
    <link: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_DB3224AF52575504B8B68A64B0B4A1FE" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_DB3224AF52575504B8B68A64B0B4A1FE" xlink:type="arc" />
    <link: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_E05CBF65E8DE558DA7657AD8874FA9EB" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_E05CBF65E8DE558DA7657AD8874FA9EB" xlink:type="arc" />
    <link: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_37B90B2105BD5168925AEDF07A451652" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_37B90B2105BD5168925AEDF07A451652" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings" xlink:label="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_620705007412521EA390E2368A5FF3DD" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_Billingsonuncompletedcontractsinexcessofcostsandestimatedearnings_620705007412521EA390E2368A5FF3DD" xlink:type="arc" />
    <link: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_A32194BCBC8D53D784343BB3978616EB" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_A32194BCBC8D53D784343BB3978616EB" xlink:type="arc" />
    <link: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_22E5672C19665B8AAD5C05D938D32FB3" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_22E5672C19665B8AAD5C05D938D32FB3" xlink:type="arc" />
    <link: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_A19BC189EB7C5D6AAF88D3C1296FCFEC" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_A19BC189EB7C5D6AAF88D3C1296FCFEC" xlink:type="arc" />
    <link: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_1E693DB346D6591E889561DFF362C90F" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_1E693DB346D6591E889561DFF362C90F" xlink:type="arc" />
    <link: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_62E75B9D74CA5AC2B714ED66125E5133" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_62E75B9D74CA5AC2B714ED66125E5133" xlink:type="arc" />
    <link: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_38FC6BFF2FB45CC39BD3F240F89D1B95" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_38FC6BFF2FB45CC39BD3F240F89D1B95" xlink:type="arc" />
    <link: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_EFAF2A8BBEB852DFAB5EEA607B3CFF93" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_EFAF2A8BBEB852DFAB5EEA607B3CFF93" xlink:type="arc" />
    <link: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_14EFAA2125575DDF842255D4856FF1C4" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_14EFAA2125575DDF842255D4856FF1C4" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Warrantyreserveworkingcapitalprovision" xlink:label="loc_mtrx_Warrantyreserveworkingcapitalprovision_2A6B3D36C4BA52BA8DFD3E73A6526826" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_Warrantyreserveworkingcapitalprovision_2A6B3D36C4BA52BA8DFD3E73A6526826" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Settlementofwarrantyreserve" xlink:label="loc_mtrx_Settlementofwarrantyreserve_83F7D5D660655C4AA6A1A084D9BBE06F" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5F3BFA5BE0C65528AED15090E1D438CE" xlink:to="loc_mtrx_Settlementofwarrantyreserve_83F7D5D660655C4AA6A1A084D9BBE06F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsNarrativeDetails" xlink:type="extended">
    <link: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_F1D39DEE013D4C46FFEF762362C0485B" xlink:type="locator" />
    <link: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_F0E7CB563CD663D6AB27762362BA1090" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F0E7CB563CD663D6AB27762362BA1090" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_45120A347FD09D1B5A59762362BA8340" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F0E7CB563CD663D6AB27762362BA1090" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_45120A347FD09D1B5A59762362BA8340" xlink:type="arc" />
    <link: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_7C47ED7ADA65DE5E22B8762362BAA360_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_45120A347FD09D1B5A59762362BA8340" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C47ED7ADA65DE5E22B8762362BAA360_default" xlink:type="arc" />
    <link: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_7C47ED7ADA65DE5E22B8762362BAA360" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_45120A347FD09D1B5A59762362BA8340" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C47ED7ADA65DE5E22B8762362BAA360" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_E373788C0E6743C6D20A762362BBC972" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C47ED7ADA65DE5E22B8762362BAA360" xlink:to="loc_mtrx_HoustonInterestsLLCMember_E373788C0E6743C6D20A762362BBC972" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_F996555E838AE04EC215762362C07413" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C47ED7ADA65DE5E22B8762362BAA360" xlink:to="loc_mtrx_HDBInc.Member_F996555E838AE04EC215762362C07413" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_036DDB33118A3CB787CE762362C05A08" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C47ED7ADA65DE5E22B8762362BAA360" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_036DDB33118A3CB787CE762362C05A08" xlink:type="arc" />
    <link: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_8EC6112126789CAC8AE1762362C0C6F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1_8EC6112126789CAC8AE1762362C0C6F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionNameOfAcquiredEntity" xlink:label="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_D6BD518E0CF573943304762362C02477" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_us-gaap_BusinessAcquisitionNameOfAcquiredEntity_D6BD518E0CF573943304762362C02477" xlink:type="arc" />
    <link: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_0B6AF193466AA934149B762362C0AE92" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_0B6AF193466AA934149B762362C0AE92" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Workingcapitalpaymentmadeinperiodnotpresented" xlink:label="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_C19FD31BECF98D24CD97762362C16E70" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_mtrx_Workingcapitalpaymentmadeinperiodnotpresented_C19FD31BECF98D24CD97762362C16E70" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Economicpurchaseprice" xlink:label="loc_mtrx_Economicpurchaseprice_9B78A166F6589260E49F762362C1803F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_mtrx_Economicpurchaseprice_9B78A166F6589260E49F762362C1803F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_880698216A54EE255B07762362C1D8C0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_F1D39DEE013D4C46FFEF762362C0485B" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_880698216A54EE255B07762362C1D8C0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsProFormaDetails" xlink:type="extended">
    <link: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_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:type="locator" />
    <link: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_F44EE8BECC9459EA8A6E1EF856D4C100" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F44EE8BECC9459EA8A6E1EF856D4C100" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_186AE0D07CDD523EB8B7ECAC04424194" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F44EE8BECC9459EA8A6E1EF856D4C100" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_186AE0D07CDD523EB8B7ECAC04424194" xlink:type="arc" />
    <link: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_C613C200B4DAA9D9221F1E23ABB13A68_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_186AE0D07CDD523EB8B7ECAC04424194" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C613C200B4DAA9D9221F1E23ABB13A68_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="arc" />
    <link: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_32640578B43257589A5C2C4C3B008D33" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_186AE0D07CDD523EB8B7ECAC04424194" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_32640578B43257589A5C2C4C3B008D33" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_B2BE720ACAE05078B261023D9A6AB847" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_32640578B43257589A5C2C4C3B008D33" xlink:to="loc_mtrx_HoustonInterestsLLCMember_B2BE720ACAE05078B261023D9A6AB847" xlink:type="arc" />
    <link: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_C1706048FCF6560392CD537CCAFA7A75" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_C1706048FCF6560392CD537CCAFA7A75" xlink:type="arc" />
    <link: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_6A0FD070FFBC596195DB6811AE682666" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_6A0FD070FFBC596195DB6811AE682666" xlink:type="arc" />
    <link: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_CEE59155E8A55AC1AE90E3C85A1327F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic_CEE59155E8A55AC1AE90E3C85A1327F4" xlink:type="arc" />
    <link: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_186E41EFF1DB54F99CAAC03E67356FBB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ECAFC00F4B795AD3A7F19FF95F9DA307" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted_186E41EFF1DB54F99CAAC03E67356FBB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsProFormaNarrativeDetails" xlink:type="extended">
    <link: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_75D15AADC808046D80017049020AF293" xlink:type="locator" />
    <link: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_4AD00DB4E61F7126E9867049020A808A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AD00DB4E61F7126E9867049020A808A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_FFA620539112331BC0D37049020A253E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4AD00DB4E61F7126E9867049020A808A" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_FFA620539112331BC0D37049020A253E" xlink:type="arc" />
    <link: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_02B1A4D57574EACC42927049020A5B1C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FFA620539112331BC0D37049020A253E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_02B1A4D57574EACC42927049020A5B1C_default" xlink:type="arc" />
    <link: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_02B1A4D57574EACC42927049020A5B1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FFA620539112331BC0D37049020A253E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_02B1A4D57574EACC42927049020A5B1C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_91A88F90FF121FD770267049020A8C20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_02B1A4D57574EACC42927049020A5B1C" xlink:to="loc_mtrx_HoustonInterestsLLCMember_91A88F90FF121FD770267049020A8C20" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Proformaacquisitioncosts" xlink:label="loc_mtrx_Proformaacquisitioncosts_6449D38EBA87E9C87C157049020AF462" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_mtrx_Proformaacquisitioncosts_6449D38EBA87E9C87C157049020AF462" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Proformaacquisitioncostsamortizedovertime" xlink:label="loc_mtrx_Proformaacquisitioncostsamortizedovertime_02FD6971CEEE5CA1AAE67049020AE717" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_mtrx_Proformaacquisitioncostsamortizedovertime_02FD6971CEEE5CA1AAE67049020AE717" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Proformainterestexpense" xlink:label="loc_mtrx_Proformainterestexpense_A37D392F960FF05350977049020A1D20" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_mtrx_Proformainterestexpense_A37D392F960FF05350977049020A1D20" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Proformadepreciationandamortizationexpense" xlink:label="loc_mtrx_Proformadepreciationandamortizationexpense_00C4E81B13BC58E0CA5E7049020BFE99" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_mtrx_Proformadepreciationandamortizationexpense_00C4E81B13BC58E0CA5E7049020BFE99" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Proformaincometaxexpense" xlink:label="loc_mtrx_Proformaincometaxexpense_7E42BEE907057F2B282F7049020B95CB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75D15AADC808046D80017049020AF293" xlink:to="loc_mtrx_Proformaincometaxexpense_7E42BEE907057F2B282F7049020B95CB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/AcquisitionsTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_EAEF7B07815C5C64A3F3753BAF10AD37" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_684B9D6CC60F5035B13248F7036793CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_EAEF7B07815C5C64A3F3753BAF10AD37" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_684B9D6CC60F5035B13248F7036793CF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_623AFA165666506D90E9D16599B68625" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_684B9D6CC60F5035B13248F7036793CF" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_623AFA165666506D90E9D16599B68625" xlink:type="arc" />
    <link: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_1E4B380AB38C515BBB6D2395DB4A8B5C_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_623AFA165666506D90E9D16599B68625" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1E4B380AB38C515BBB6D2395DB4A8B5C_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="arc" />
    <link: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_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_623AFA165666506D90E9D16599B68625" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HDBInc.Member" xlink:label="loc_mtrx_HDBInc.Member_C9F8BB3BF8E05878A5BFECDBD9E26A0A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:to="loc_mtrx_HDBInc.Member_C9F8BB3BF8E05878A5BFECDBD9E26A0A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_EE1084A632815C3290E48D5B3395D766" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_EE1084A632815C3290E48D5B3395D766" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PelichemIndustrialCleaningServicesLlcMember" xlink:label="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_8F798316812B5966BB8A78B3B5AD8526" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:to="loc_mtrx_PelichemIndustrialCleaningServicesLlcMember_8F798316812B5966BB8A78B3B5AD8526" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_BEF019B4DF7153FD8AF3FF348EEFF926" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:to="loc_mtrx_HoustonInterestsLLCMember_BEF019B4DF7153FD8AF3FF348EEFF926" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_97CF8BCE5FB652CD87D3638C6D0E91DE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F8B33BCE179B5A54A2E407DEE7AA3EA7" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_97CF8BCE5FB652CD87D3638C6D0E91DE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ConsiderationtransferredTableTextBlock" xlink:label="loc_mtrx_ConsiderationtransferredTableTextBlock_69B76EB836835C66A78C51E6AEEC5968" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_EAEF7B07815C5C64A3F3753BAF10AD37" xlink:to="loc_mtrx_ConsiderationtransferredTableTextBlock_69B76EB836835C66A78C51E6AEEC5968" xlink:type="arc" />
    <link: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_F51BE67342D75EA5A24626C8C016C107" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_EAEF7B07815C5C64A3F3753BAF10AD37" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_F51BE67342D75EA5A24626C8C016C107" xlink:type="arc" />
    <link: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_AEB1B6BB8F4B5725957186EB9297D833" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_EAEF7B07815C5C64A3F3753BAF10AD37" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationTextBlock_AEB1B6BB8F4B5725957186EB9297D833" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisOfPresentationBasisOfPresentationNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/BasisOfPresentationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_03F467383D3E1DCBF16C762967558063" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable" xlink:label="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_00CFB364BE876766F413762967543158" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_03F467383D3E1DCBF16C762967558063" xlink:to="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_00CFB364BE876766F413762967543158" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PowerGenerationProjectAxis" xlink:label="loc_mtrx_PowerGenerationProjectAxis_48E9CB5CF2031EAC7437762967544FD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsTable_00CFB364BE876766F413762967543158" xlink:to="loc_mtrx_PowerGenerationProjectAxis_48E9CB5CF2031EAC7437762967544FD7" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtrx_PowerGenerationProjectAxis_48E9CB5CF2031EAC7437762967544FD7" xlink:to="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78_default" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_PowerGenerationProjectDomain" xlink:label="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtrx_PowerGenerationProjectAxis_48E9CB5CF2031EAC7437762967544FD7" xlink:to="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember" xlink:label="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_8C5D100967DA5E39D6507629675554D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78" xlink:to="loc_mtrx_UnapprovedChangeOrdersOnPowerGenerationProjectMember_8C5D100967DA5E39D6507629675554D1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ClaimOnPowerGenerationProjectMember" xlink:label="loc_mtrx_ClaimOnPowerGenerationProjectMember_2BA0CA868DE51EEF766C76296755E15F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectDomain_0D7EC48F644117385DDB762967540D78" xlink:to="loc_mtrx_ClaimOnPowerGenerationProjectMember_2BA0CA868DE51EEF766C76296755E15F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnapprovedChangeOrdersAmount" xlink:label="loc_us-gaap_UnapprovedChangeOrdersAmount_30811C5BF5863DAEC93E76296755C790" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_PowerGenerationProjectUnapprovedChangeOrdersandClaimsLineItems_03F467383D3E1DCBF16C762967558063" xlink:to="loc_us-gaap_UnapprovedChangeOrdersAmount_30811C5BF5863DAEC93E76296755C790" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CommitmentsAndContingenciesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_3BD78C9645DC5B35BCA94EE1D0CA796A" xlink:type="locator" />
    <link: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_89620E2170C250C197BDE079D72CA4D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3BD78C9645DC5B35BCA94EE1D0CA796A" xlink:to="loc_us-gaap_StatementTable_89620E2170C250C197BDE079D72CA4D6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_AA8A389FFC0557B698CA8E6C85C71C0A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_89620E2170C250C197BDE079D72CA4D6" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_AA8A389FFC0557B698CA8E6C85C71C0A" xlink:type="arc" />
    <link: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_B2A08995F7B098AD9CD896D5D06AE4C9_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_AA8A389FFC0557B698CA8E6C85C71C0A" xlink:to="loc_us-gaap_EquityComponentDomain_B2A08995F7B098AD9CD896D5D06AE4C9_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_6146734043E95073B7320D929761F8F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_AA8A389FFC0557B698CA8E6C85C71C0A" xlink:to="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:type="arc" />
    <link: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_C16F6FDC16B556559C1542D1D80150F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_CommonStockMember_C16F6FDC16B556559C1542D1D80150F3" xlink:type="arc" />
    <link: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_6E9CCFA41B41574BA7C6D5092B512435" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_6E9CCFA41B41574BA7C6D5092B512435" xlink:type="arc" />
    <link: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_9ED1C985A74C5415BF17383356B4D3BA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_RetainedEarningsMember_9ED1C985A74C5415BF17383356B4D3BA" xlink:type="arc" />
    <link: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_4905A0A344F55E6CA6B8B6684DEFFDAC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_TreasuryStockMember_4905A0A344F55E6CA6B8B6684DEFFDAC" xlink:type="arc" />
    <link: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_A62096E6840055129937BDF233B4E3A5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_A62096E6840055129937BDF233B4E3A5" xlink:type="arc" />
    <link: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_B9B7E2413B725F678A1FDB7A2A3877F3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6146734043E95073B7320D929761F8F9" xlink:to="loc_us-gaap_NoncontrollingInterestMember_B9B7E2413B725F678A1FDB7A2A3877F3" xlink:type="arc" />
    <link: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_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3BD78C9645DC5B35BCA94EE1D0CA796A" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:type="arc" />
    <link: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_6B45C70FF135538E84C885547EF2F4BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_6B45C70FF135538E84C885547EF2F4BD" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Beginningequitybalancesasadjusted" xlink:label="loc_mtrx_Beginningequitybalancesasadjusted_ECAF966691F55360944B9606F6558E9C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_mtrx_Beginningequitybalancesasadjusted_ECAF966691F55360944B9606F6558E9C" xlink:type="arc" />
    <link: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_0FE9E3E7D8C25F31BEB2D47FC8C3955C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_0FE9E3E7D8C25F31BEB2D47FC8C3955C" xlink:type="arc" />
    <link: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_61F3CF611B955ED4B7D356159D58BAAE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_61F3CF611B955ED4B7D356159D58BAAE" xlink:type="arc" />
    <link: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_B223B79E01805D8799DC6D7BF9BD9928" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_ProfitLoss_B223B79E01805D8799DC6D7BF9BD9928" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1EA02DFDB4725BDC9F2DEB61CAEC1FAA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1EA02DFDB4725BDC9F2DEB61CAEC1FAA" xlink:type="arc" />
    <link: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_4007707E83A35495A39EAD4B7CB534FD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_4007707E83A35495A39EAD4B7CB534FD" xlink:type="arc" />
    <link: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_E1BD2E82CF6657F5BACA5A09A7C6980E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_E1BD2E82CF6657F5BACA5A09A7C6980E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_11AAF7F4590E5024A362E50D388B8F0D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalOther_11AAF7F4590E5024A362E50D388B8F0D" xlink:type="arc" />
    <link: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_6C00817CB47B510582E5F064369D287B" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInJointVenture_6C00817CB47B510582E5F064369D287B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_B1D02A3B620B50CF82A89BDEE6023981" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_B1D02A3B620B50CF82A89BDEE6023981" xlink:type="arc" />
    <link: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_561AD35096635058B15EAD507E8C123B" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_561AD35096635058B15EAD507E8C123B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_OtherTreasurySharePurchases" xlink:label="loc_mtrx_OtherTreasurySharePurchases_F44AE39856765A9E9A506F7203F7D0E1" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_mtrx_OtherTreasurySharePurchases_F44AE39856765A9E9A506F7203F7D0E1" xlink:type="arc" />
    <link: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_3C95C5CEF01B5592A08007C1DAA1F4BF" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_3C95C5CEF01B5592A08007C1DAA1F4BF" xlink:type="arc" />
    <link: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_0B7FF1C72A5758A384DC7496504249F3" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_29A6AFCEDC175B3FA31EBA6E72A35A6D" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_0B7FF1C72A5758A384DC7496504249F3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:type="locator" />
    <link: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_3C534182275653AEA62EE455C9F3F4B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_us-gaap_StatementTable_3C534182275653AEA62EE455C9F3F4B9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_DAD898357D4451C1A4106D3074EB7BA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3C534182275653AEA62EE455C9F3F4B9" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_DAD898357D4451C1A4106D3074EB7BA7" xlink:type="arc" />
    <link: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_14B4DE82758F94B7C9A66D03FB6DD43F_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_DAD898357D4451C1A4106D3074EB7BA7" xlink:to="loc_us-gaap_EquityComponentDomain_14B4DE82758F94B7C9A66D03FB6DD43F_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_F19CA1C495A65A37A23827C5BC622CC7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_DAD898357D4451C1A4106D3074EB7BA7" xlink:to="loc_us-gaap_EquityComponentDomain_F19CA1C495A65A37A23827C5BC622CC7" xlink:type="arc" />
    <link: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_77ED977A62C65C36A164912265B3803A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_F19CA1C495A65A37A23827C5BC622CC7" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_77ED977A62C65C36A164912265B3803A" xlink:type="arc" />
    <link: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_BD56D9E18B845A72AFD716D06101EDEF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_F19CA1C495A65A37A23827C5BC622CC7" xlink:to="loc_us-gaap_TreasuryStockMember_BD56D9E18B845A72AFD716D06101EDEF" xlink:type="arc" />
    <link: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_572988BAC3FE5494AEA7C472D6F531D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_572988BAC3FE5494AEA7C472D6F531D6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_DeferredSharesIssued" xlink:label="loc_mtrx_DeferredSharesIssued_7CEA4249DD4150F89DDAD8879297AA34" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_mtrx_DeferredSharesIssued_7CEA4249DD4150F89DDAD8879297AA34" xlink:type="arc" />
    <link: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_1BDA29DE52F45C92B2D701287D9B5133" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_1BDA29DE52F45C92B2D701287D9B5133" xlink:type="arc" />
    <link: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_550C6EE75FB6575FB444398BC13FDB2C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_550C6EE75FB6575FB444398BC13FDB2C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_OtherTreasurySharesAcquired" xlink:label="loc_mtrx_OtherTreasurySharesAcquired_0A5680B732315E85AD9944F620197960" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6C56AFF821E854DA98176BF798DAC0FC" xlink:to="loc_mtrx_OtherTreasurySharesAcquired_0A5680B732315E85AD9944F620197960" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/CondensedConsolidatedStatementsOfIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:type="locator" />
    <link: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_39C7A8B929EE548E95461C9218C05BC8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_39C7A8B929EE548E95461C9218C05BC8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_FCABB612EBD75F8C91CCCF34201AB986" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_39C7A8B929EE548E95461C9218C05BC8" xlink:to="loc_us-gaap_VariableRateAxis_FCABB612EBD75F8C91CCCF34201AB986" xlink:type="arc" />
    <link: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_FF2D7BE8A4A21C8C1345964DE5764EE2_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_FCABB612EBD75F8C91CCCF34201AB986" xlink:to="loc_us-gaap_VariableRateDomain_FF2D7BE8A4A21C8C1345964DE5764EE2_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_C65C7D12DE055EDB9912D25AF1226FBC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_FCABB612EBD75F8C91CCCF34201AB986" xlink:to="loc_us-gaap_VariableRateDomain_C65C7D12DE055EDB9912D25AF1226FBC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_CdorRateMember" xlink:label="loc_mtrx_CdorRateMember_D11239D2DE395064A1249EF9BB7E0ACC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_C65C7D12DE055EDB9912D25AF1226FBC" xlink:to="loc_mtrx_CdorRateMember_D11239D2DE395064A1249EF9BB7E0ACC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_CanadianPrimeRateMember" xlink:label="loc_mtrx_CanadianPrimeRateMember_6BF511C3780354CAAE1B483BE3927C62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_C65C7D12DE055EDB9912D25AF1226FBC" xlink:to="loc_mtrx_CanadianPrimeRateMember_6BF511C3780354CAAE1B483BE3927C62" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_DebtAmendmentMember" xlink:label="loc_mtrx_DebtAmendmentMember_CEF943F3B0395698857B12E44469CDF3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_C65C7D12DE055EDB9912D25AF1226FBC" xlink:to="loc_mtrx_DebtAmendmentMember_CEF943F3B0395698857B12E44469CDF3" xlink:type="arc" />
    <link: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_2CC01653EF8C5B9FB8625B09F2E52BCB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredIndefiniteLivedIntangibleAssetsByMajorClassTable_39C7A8B929EE548E95461C9218C05BC8" xlink:to="loc_us-gaap_RangeAxis_2CC01653EF8C5B9FB8625B09F2E52BCB" xlink:type="arc" />
    <link: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_F0D5A24C54453A623C36964DE5767DDD_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_2CC01653EF8C5B9FB8625B09F2E52BCB" xlink:to="loc_us-gaap_RangeMember_F0D5A24C54453A623C36964DE5767DDD_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_3BC85D35E4415DBE8819F922A8CF2B9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_2CC01653EF8C5B9FB8625B09F2E52BCB" xlink:to="loc_us-gaap_RangeMember_3BC85D35E4415DBE8819F922A8CF2B9A" xlink:type="arc" />
    <link: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_F44667A4002F5354A909E045C9B1EBCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_3BC85D35E4415DBE8819F922A8CF2B9A" xlink:to="loc_us-gaap_MinimumMember_F44667A4002F5354A909E045C9B1EBCF" xlink:type="arc" />
    <link: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_A0CE6A3C7D41533EA1971ACE892A9979" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_3BC85D35E4415DBE8819F922A8CF2B9A" xlink:to="loc_us-gaap_MaximumMember_A0CE6A3C7D41533EA1971ACE892A9979" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_CreditAgreementTerm" xlink:label="loc_mtrx_CreditAgreementTerm_65CD91F51F955CBF855826A9484B4C48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_CreditAgreementTerm_65CD91F51F955CBF855826A9484B4C48" xlink:type="arc" />
    <link: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_1B271FF5799756329680E9B0CCC4A64A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_1B271FF5799756329680E9B0CCC4A64A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_MtrxLineofcreditfacilityexpirationdate" xlink:label="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_EF8E8B3073E35040ADB2312571A588D5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_MtrxLineofcreditfacilityexpirationdate_EF8E8B3073E35040ADB2312571A588D5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_89C71EA41B34593B8FFEEFC04B6AED68" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMaximum_89C71EA41B34593B8FFEEFC04B6AED68" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum" xlink:label="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_9B2494F4EA985365A652376F5D4089F3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_SeniorLeverageRatioAcquisitionPeriodMinimum_9B2494F4EA985365A652376F5D4089F3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SeniorLeverageRatioMax" xlink:label="loc_mtrx_SeniorLeverageRatioMax_FD807118E8DF5B72BA50FE131A63E1B0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_SeniorLeverageRatioMax_FD807118E8DF5B72BA50FE131A63E1B0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SeniorLeverageRatioMin" xlink:label="loc_mtrx_SeniorLeverageRatioMin_D88883476F2F5906A2A2A615A0A292C5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_SeniorLeverageRatioMin_D88883476F2F5906A2A2A615A0A292C5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_FixedChargeCoverageRatioMaximum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMaximum_77C582EEE19D50288A82643A62CC25F0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_FixedChargeCoverageRatioMaximum_77C582EEE19D50288A82643A62CC25F0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_FixedChargeCoverageRatioMinimum" xlink:label="loc_mtrx_FixedChargeCoverageRatioMinimum_DF99DC98D0D953CF8851160E7827E480" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_FixedChargeCoverageRatioMinimum_DF99DC98D0D953CF8851160E7827E480" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_AmountOfLimitOnAssetDispositions" xlink:label="loc_mtrx_AmountOfLimitOnAssetDispositions_CD42B6B18927583CB60F48075FE1C2D0" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_AmountOfLimitOnAssetDispositions_CD42B6B18927583CB60F48075FE1C2D0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_ECC4DAD1D8E5556FA1CDF8B19C19EDE6" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum_ECC4DAD1D8E5556FA1CDF8B19C19EDE6" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_947B0519C59E52438E3E1F328192419E" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum_947B0519C59E52438E3E1F328192419E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_EF82EC0277A85ED9ACBC939326A23B97" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMinimum_EF82EC0277A85ED9ACBC939326A23B97" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_17945D3EF8DA5A0D8FCA49F0799F7274" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnLondonInterbankOfferedRateMaximum_17945D3EF8DA5A0D8FCA49F0799F7274" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling" xlink:label="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_87142E8EE94B55FC844D873ED6000B8A" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_SublimitonAustralianDollarCanadianDollarEuroandPoundsSterling_87142E8EE94B55FC844D873ED6000B8A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Sublimitonlettersofcreditunderthecreditfacility" xlink:label="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_35EEF6A0F7C15AE19CA89C12E14DFC71" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_Sublimitonlettersofcreditunderthecreditfacility_35EEF6A0F7C15AE19CA89C12E14DFC71" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_01DADE9E108F5D738933E5C4A4A9D112" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMinimum_01DADE9E108F5D738933E5C4A4A9D112" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_7812D94F92E458CF9AF5856D373041E1" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnAdjustedLIBOEURIBOandCDORMaximum_7812D94F92E458CF9AF5856D373041E1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_2673048535415EDCA74B3C9B1DE34A6B" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMinimum_2673048535415EDCA74B3C9B1DE34A6B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum" xlink:label="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_A035D1B43B845138A020A98E3407A8DC" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditBasisSpreadOnCanadianPrimeRateMaximum_A035D1B43B845138A020A98E3407A8DC" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_A3A7A9058AF85FD789076CD9A0CF5521" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianDepositOfferedRateDescription_A3A7A9058AF85FD789076CD9A0CF5521" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentDescriptionOfVariableRateBasis" xlink:label="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_D9C1ED5576B95DE18CA3B20286528B68" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_D9C1ED5576B95DE18CA3B20286528B68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_BE0DFFF245555D0E9F67F16C258AB979" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_BE0DFFF245555D0E9F67F16C258AB979" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LineOfCreditFacilityCanadianPrimeRateDescription" xlink:label="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_1396776EEA375AB39B23AEE86A9AE1A5" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LineOfCreditFacilityCanadianPrimeRateDescription_1396776EEA375AB39B23AEE86A9AE1A5" xlink:type="arc" />
    <link: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_18008A77BD0C539ABC6B16DA43EEDB35" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_18008A77BD0C539ABC6B16DA43EEDB35" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_MaximumLimitOfConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_275CFDAD5A77585088A426CD1322308A" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_MaximumLimitOfConsolidatedFundedIndebtedness_275CFDAD5A77585088A426CD1322308A" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement" xlink:label="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_3A396EA54A7157B891A792994CF63228" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_ConsolidatedEarningsBeforeInterestTaxesDepreciationAndAmortizationPerCreditAgreement_3A396EA54A7157B891A792994CF63228" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ConsolidatedFundedIndebtedness" xlink:label="loc_mtrx_ConsolidatedFundedIndebtedness_02EB023C76DC5EDBA12F39DB2AFD5EA9" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_ConsolidatedFundedIndebtedness_02EB023C76DC5EDBA12F39DB2AFD5EA9" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_MinimumConsolidatedEBITDARequired" xlink:label="loc_mtrx_MinimumConsolidatedEBITDARequired_EDF8409FB760512189E66B6452E54054" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_MinimumConsolidatedEBITDARequired_EDF8409FB760512189E66B6452E54054" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_RestrictedPaymentsUnderCreditAmendment" xlink:label="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_2B47BF03F20B5ABF94D98E1986D980C2" xlink:type="locator" />
    <link:definitionArc order="30" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_RestrictedPaymentsUnderCreditAmendment_2B47BF03F20B5ABF94D98E1986D980C2" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_126A233BF4095CFBA7292FADBA34F63D" xlink:type="locator" />
    <link:definitionArc order="31" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMaximum_126A233BF4095CFBA7292FADBA34F63D" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum" xlink:label="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_355F9BA6E5EB5D71B6F873337EBAE347" xlink:type="locator" />
    <link:definitionArc order="32" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_LeverageRatioAllowedforRestrictedPaymentsMinimum_355F9BA6E5EB5D71B6F873337EBAE347" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_DividendRestrictionUnderCreditAgreement" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreement_6D6F21C925465D1097A902D42415FBF5" xlink:type="locator" />
    <link:definitionArc order="33" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreement_6D6F21C925465D1097A902D42415FBF5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_DividendRestrictionUnderCreditAgreementAmount" xlink:label="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_E04F0AD6D81250E1A100793380F4D72D" xlink:type="locator" />
    <link:definitionArc order="34" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredIndefiniteLivedIntangibleAssetsLineItems_0A0F889C15FB54DC8F2FFF93E255CA05" xlink:to="loc_mtrx_DividendRestrictionUnderCreditAgreementAmount_E04F0AD6D81250E1A100793380F4D72D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_28413FEE00F15801A2D353A061F61FC6" xlink:type="locator" />
    <link: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_EE7A47B482DC5941AE58116A721C8E81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_28413FEE00F15801A2D353A061F61FC6" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_EE7A47B482DC5941AE58116A721C8E81" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_F7A440F897035FB998F0E690472D2F83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_EE7A47B482DC5941AE58116A721C8E81" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_F7A440F897035FB998F0E690472D2F83" xlink:type="arc" />
    <link: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_DECF9D3095CB0A5236256D03FC164E99_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_F7A440F897035FB998F0E690472D2F83" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_DECF9D3095CB0A5236256D03FC164E99_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_1BF6BEC3163E508A81ED75D7671B2746" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_F7A440F897035FB998F0E690472D2F83" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1BF6BEC3163E508A81ED75D7671B2746" xlink:type="arc" />
    <link: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_8EC7F11228EB52A09A70D45D0F25B329" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1BF6BEC3163E508A81ED75D7671B2746" xlink:to="loc_us-gaap_EmployeeStockOptionMember_8EC7F11228EB52A09A70D45D0F25B329" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_NonvestedDeferredSharesMember" xlink:label="loc_mtrx_NonvestedDeferredSharesMember_A58D33BB1810596992EC702F31729AB4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1BF6BEC3163E508A81ED75D7671B2746" xlink:to="loc_mtrx_NonvestedDeferredSharesMember_A58D33BB1810596992EC702F31729AB4" xlink:type="arc" />
    <link: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_793CD1CEAAEA58388553E8D05853EBFB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_28413FEE00F15801A2D353A061F61FC6" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_793CD1CEAAEA58388553E8D05853EBFB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/EarningsPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesIncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IncomeTaxesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:type="locator" />
    <link: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_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_82D223FE010B84A48A1F775A0C2B6EF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_82D223FE010B84A48A1F775A0C2B6EF9" xlink:type="arc" />
    <link: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_7C3E4BB54147D3FEFC6F775A0C2BD0ED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_82D223FE010B84A48A1F775A0C2B6EF9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C3E4BB54147D3FEFC6F775A0C2BD0ED_default" xlink:type="arc" />
    <link: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_7C3E4BB54147D3FEFC6F775A0C2BD0ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_82D223FE010B84A48A1F775A0C2B6EF9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C3E4BB54147D3FEFC6F775A0C2BD0ED" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_FD839A9466E2C913B729775A0C2B2F55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C3E4BB54147D3FEFC6F775A0C2BD0ED" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_FD839A9466E2C913B729775A0C2B2F55" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_2568688A2B2B21AC5CB9775A0C2B8259" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7C3E4BB54147D3FEFC6F775A0C2BD0ED" xlink:to="loc_mtrx_HoustonInterestsLLCMember_2568688A2B2B21AC5CB9775A0C2B8259" xlink:type="arc" />
    <link: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_273051CEDD0C9F8BB367775A0C2B01B5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_273051CEDD0C9F8BB367775A0C2B01B5" xlink:type="arc" />
    <link: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_173853FE39F986EAF674775A0C2BFE30_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_273051CEDD0C9F8BB367775A0C2B01B5" xlink:to="loc_us-gaap_SegmentDomain_173853FE39F986EAF674775A0C2BFE30_default" xlink:type="arc" />
    <link: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_173853FE39F986EAF674775A0C2BFE30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_273051CEDD0C9F8BB367775A0C2B01B5" xlink:to="loc_us-gaap_SegmentDomain_173853FE39F986EAF674775A0C2BFE30" xlink:type="arc" />
    <link: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_65C7B246C8D95079AC6A775A0C2B380D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:to="loc_us-gaap_RangeAxis_65C7B246C8D95079AC6A775A0C2B380D" xlink:type="arc" />
    <link: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_CD3E37D5F00EA4C6DC41775A0C2C14E6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_65C7B246C8D95079AC6A775A0C2B380D" xlink:to="loc_us-gaap_RangeMember_CD3E37D5F00EA4C6DC41775A0C2C14E6_default" xlink:type="arc" />
    <link: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_CD3E37D5F00EA4C6DC41775A0C2C14E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_65C7B246C8D95079AC6A775A0C2B380D" xlink:to="loc_us-gaap_RangeMember_CD3E37D5F00EA4C6DC41775A0C2C14E6" xlink:type="arc" />
    <link: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_87554791C169A9BD5FA6775A0C2CE442" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_CD3E37D5F00EA4C6DC41775A0C2C14E6" xlink:to="loc_us-gaap_MinimumMember_87554791C169A9BD5FA6775A0C2CE442" xlink:type="arc" />
    <link: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_F33B67090686C968D08D775A0C2C0F87" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_CD3E37D5F00EA4C6DC41775A0C2C14E6" xlink:to="loc_us-gaap_MaximumMember_F33B67090686C968D08D775A0C2C0F87" xlink:type="arc" />
    <link: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_E7F064FEA2C8111233B3775A0C2C6448" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3D3C2F5DD3FC1AD5D404775A0C2B6CCD" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E7F064FEA2C8111233B3775A0C2C6448" xlink:type="arc" />
    <link: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_683DB20CDC8CFEBC8283775A0C2CC5BC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E7F064FEA2C8111233B3775A0C2C6448" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC_default" xlink:type="arc" />
    <link: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_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_E7F064FEA2C8111233B3775A0C2C6448" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:type="arc" />
    <link: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_39109837AB60CD1C461D775A0C2C4204" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_us-gaap_IntellectualPropertyMember_39109837AB60CD1C461D775A0C2C4204" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_A10C22BAAACFE1B9B60C775A0C2CA86E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_us-gaap_CustomerRelationshipsMember_A10C22BAAACFE1B9B60C775A0C2CA86E" xlink:type="arc" />
    <link: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_65E73022300902DC4694775A0C2C6A81" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_65E73022300902DC4694775A0C2C6A81" xlink:type="arc" />
    <link: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_7559782F7F49BE16085B775A0C2CBBFB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_us-gaap_TradeNamesMember_7559782F7F49BE16085B775A0C2CBBFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_EF954E875CDA1C1FDAD8775A0C2C86EA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_EF954E875CDA1C1FDAD8775A0C2C86EA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SMElectricTradeNameMember" xlink:label="loc_mtrx_SMElectricTradeNameMember_2C554A5E5BBFC343C78E775A0C2C62B6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_683DB20CDC8CFEBC8283775A0C2CC5BC" xlink:to="loc_mtrx_SMElectricTradeNameMember_2C554A5E5BBFC343C78E775A0C2C62B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue_0BB6FAAE1EF04176C184775A0C2C55C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetResidualValue_0BB6FAAE1EF04176C184775A0C2C55C7" xlink:type="arc" />
    <link: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_3486308F92E7F01E6001775A0C2CDFE4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3486308F92E7F01E6001775A0C2CDFE4" xlink:type="arc" />
    <link: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_E9A784F2E92B6975DC5E775A0C2D86F9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_E9A784F2E92B6975DC5E775A0C2D86F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_0074785512F544E27070775A0C2D6FBC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_0074785512F544E27070775A0C2D6FBC" xlink:type="arc" />
    <link: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_4C5B076FDB95BA96F5C3775A0C2D9955" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_926A250DE21301F5AFEF775A0C2CF23E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFairValueDisclosure_4C5B076FDB95BA96F5C3775A0C2D9955" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:type="locator" />
    <link: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_C6D79B39114C58219D9F8EC0CB73F7DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_C6D79B39114C58219D9F8EC0CB73F7DA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_661A52AEEC005E3DB66C383B44261C81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C6D79B39114C58219D9F8EC0CB73F7DA" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_661A52AEEC005E3DB66C383B44261C81" xlink:type="arc" />
    <link: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_15561FB3C25E2264767196E0884573C8_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_661A52AEEC005E3DB66C383B44261C81" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_15561FB3C25E2264767196E0884573C8_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_C94D7B649E9E5C1392B6C37DACFBD5C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_661A52AEEC005E3DB66C383B44261C81" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C94D7B649E9E5C1392B6C37DACFBD5C0" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_BaillieTankEquipmentLtd.Member" xlink:label="loc_mtrx_BaillieTankEquipmentLtd.Member_A8A5455702DB576882EA2EFF87D3ADDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C94D7B649E9E5C1392B6C37DACFBD5C0" xlink:to="loc_mtrx_BaillieTankEquipmentLtd.Member_A8A5455702DB576882EA2EFF87D3ADDF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_A458E34992965EB1B0D05CA2276A67FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_C94D7B649E9E5C1392B6C37DACFBD5C0" xlink:to="loc_mtrx_HoustonInterestsLLCMember_A458E34992965EB1B0D05CA2276A67FE" xlink:type="arc" />
    <link: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_544769F48C5054F3BFD220D8B7F88749" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_C6D79B39114C58219D9F8EC0CB73F7DA" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_544769F48C5054F3BFD220D8B7F88749" xlink:type="arc" />
    <link: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_ABCEA7B97B51D2E0B0FB96E08845D80A_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_544769F48C5054F3BFD220D8B7F88749" xlink:to="loc_us-gaap_SegmentDomain_ABCEA7B97B51D2E0B0FB96E08845D80A_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_4A932C49079B5CF19CC3769C5B1D770E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_544769F48C5054F3BFD220D8B7F88749" xlink:to="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_4422B072BD4A51708028E6E3E26C36CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_mtrx_ElectricalInfrastructureMember_4422B072BD4A51708028E6E3E26C36CA" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_BCB359AD48265373BBE20BFA804CA11C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_mtrx_OilGasAndChemicalMember_BCB359AD48265373BBE20BFA804CA11C" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_B9DD6FD3BFC85DF09D10DFF07404B2E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_mtrx_StorageSolutionsMember_B9DD6FD3BFC85DF09D10DFF07404B2E5" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_4D4DF1483698525683EC722E86DDD65A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_mtrx_IndustrialMember_4D4DF1483698525683EC722E86DDD65A" xlink:type="arc" />
    <link: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_232B7E7BF71659529A107C60B3D20108" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_us-gaap_AllOtherSegmentsMember_232B7E7BF71659529A107C60B3D20108" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ReportingUnitMember" xlink:label="loc_mtrx_ReportingUnitMember_5DAAA89A1CE15212AF7372E1A377E006" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4A932C49079B5CF19CC3769C5B1D770E" xlink:to="loc_mtrx_ReportingUnitMember_5DAAA89A1CE15212AF7372E1A377E006" xlink:type="arc" />
    <link: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_90DECA22A52755CF9E44F6C12CC31C15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_GoodwillGross_90DECA22A52755CF9E44F6C12CC31C15" xlink:type="arc" />
    <link: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_B60EF947D46D5759B6643125FA8CEEA4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_B60EF947D46D5759B6643125FA8CEEA4" xlink:type="arc" />
    <link: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_46A33F22FE475791A86F842303D0B5BD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_Goodwill_46A33F22FE475791A86F842303D0B5BD" xlink:type="arc" />
    <link: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_C4F907464E9151088D688F6E60E9DEB9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_C4F907464E9151088D688F6E60E9DEB9" xlink:type="arc" />
    <link: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_F00C6C4E6A095F708DFE40E5EBB32557" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2851FB3BF9225E41B494ACD746FAA6B0" xlink:to="loc_us-gaap_GoodwillRollForward_F00C6C4E6A095F708DFE40E5EBB32557" xlink:type="arc" />
    <link: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_9E0FE352D5425776A5874B0CF45ACB0D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_F00C6C4E6A095F708DFE40E5EBB32557" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_9E0FE352D5425776A5874B0CF45ACB0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_496D12D93FCE532EABECD018C7011FD2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_F00C6C4E6A095F708DFE40E5EBB32557" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_496D12D93FCE532EABECD018C7011FD2" xlink:type="arc" />
    <link: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_DFE6835C1EE65B1DB229B617F8EB6B2A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_F00C6C4E6A095F708DFE40E5EBB32557" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_DFE6835C1EE65B1DB229B617F8EB6B2A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:type="locator" />
    <link: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_3AA951B3EF2C5040B3C3915D9EDF9D4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3AA951B3EF2C5040B3C3915D9EDF9D4D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_3BC76CCAECA15758A1199D302D57D7FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3AA951B3EF2C5040B3C3915D9EDF9D4D" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3BC76CCAECA15758A1199D302D57D7FF" xlink:type="arc" />
    <link: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_91517F07851BEA6962192395D9FEF2B1_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3BC76CCAECA15758A1199D302D57D7FF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_91517F07851BEA6962192395D9FEF2B1_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="arc" />
    <link: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_3F06E6D0D44C56F99CD80A9434A6EEE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3BC76CCAECA15758A1199D302D57D7FF" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3F06E6D0D44C56F99CD80A9434A6EEE1" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_HoustonInterestsLLCMember" xlink:label="loc_mtrx_HoustonInterestsLLCMember_6C55EE6643905066B68FDFC5B1519A9E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3F06E6D0D44C56F99CD80A9434A6EEE1" xlink:to="loc_mtrx_HoustonInterestsLLCMember_6C55EE6643905066B68FDFC5B1519A9E" xlink:type="arc" />
    <link: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_69D8AC1BE2E85F119C50CE43041D38F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3AA951B3EF2C5040B3C3915D9EDF9D4D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_69D8AC1BE2E85F119C50CE43041D38F5" xlink:type="arc" />
    <link: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_AA152B481453E310A0012395D9FECA1E_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_69D8AC1BE2E85F119C50CE43041D38F5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_AA152B481453E310A0012395D9FECA1E_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="arc" />
    <link: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_27841E15DE7A52E4990A93BE68880EE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_69D8AC1BE2E85F119C50CE43041D38F5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_27841E15DE7A52E4990A93BE68880EE0" xlink:type="arc" />
    <link: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_AEC3BF5E87565901BA19DE4BFFD41961" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_27841E15DE7A52E4990A93BE68880EE0" xlink:to="loc_us-gaap_IntellectualPropertyMember_AEC3BF5E87565901BA19DE4BFFD41961" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1FE516E7228D594B8710D74600598962" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_27841E15DE7A52E4990A93BE68880EE0" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1FE516E7228D594B8710D74600598962" xlink:type="arc" />
    <link: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_7A1701F61A5A52B9981A735C24CBCB74" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_27841E15DE7A52E4990A93BE68880EE0" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_7A1701F61A5A52B9981A735C24CBCB74" xlink:type="arc" />
    <link: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_3754C26437B955A1964D5D05F82B7103" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_27841E15DE7A52E4990A93BE68880EE0" xlink:to="loc_us-gaap_TradeNamesMember_3754C26437B955A1964D5D05F82B7103" xlink:type="arc" />
    <link: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_53D78D25248B506F919A30698799A1EB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_3AA951B3EF2C5040B3C3915D9EDF9D4D" xlink:to="loc_us-gaap_RangeAxis_53D78D25248B506F919A30698799A1EB" xlink:type="arc" />
    <link: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_E36B60115F57BA9EB1462395D9FE4103_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_53D78D25248B506F919A30698799A1EB" xlink:to="loc_us-gaap_RangeMember_E36B60115F57BA9EB1462395D9FE4103_313B46ECB58C5FD184AAB265F55A04E1" xlink:type="arc" />
    <link: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_80D9E3EB867458A3B760F1EAFD54F888" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_53D78D25248B506F919A30698799A1EB" xlink:to="loc_us-gaap_RangeMember_80D9E3EB867458A3B760F1EAFD54F888" xlink:type="arc" />
    <link: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_385A6555F7905075B59C56A56AA5D158" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_80D9E3EB867458A3B760F1EAFD54F888" xlink:to="loc_us-gaap_MinimumMember_385A6555F7905075B59C56A56AA5D158" xlink:type="arc" />
    <link: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_A6FFD3E9629D5667B7A58C8C5BB70226" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_80D9E3EB867458A3B760F1EAFD54F888" xlink:to="loc_us-gaap_MaximumMember_A6FFD3E9629D5667B7A58C8C5BB70226" xlink:type="arc" />
    <link: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_BFB2251606DA57DDBEA8BB62E5CC46F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_BFB2251606DA57DDBEA8BB62E5CC46F8" xlink:type="arc" />
    <link: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_17B9A51A9D6F5CDC9EB199E186392249" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_17B9A51A9D6F5CDC9EB199E186392249" xlink:type="arc" />
    <link: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_8AABA8D881BC51EFA1FEE39E97202B8F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8AABA8D881BC51EFA1FEE39E97202B8F" xlink:type="arc" />
    <link: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_7B511C2FF3B05048AD73210CF784940E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_7B511C2FF3B05048AD73210CF784940E" xlink:type="arc" />
    <link: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_013C4795455A51509CE73C2471251013" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_IndefiniteLivedTradeNames_013C4795455A51509CE73C2471251013" xlink:type="arc" />
    <link: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_6CD7BCF099BF56F384750CB6888505DD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_6CD7BCF099BF56F384750CB6888505DD" xlink:type="arc" />
    <link: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_45ACD21165AD587B88BE303CA7F12DBA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_A9248C4FC95851329D9E03D107D130B6" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_45ACD21165AD587B88BE303CA7F12DBA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillFutureExpectedAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FB8FC13E54505A9BA0579B2DF023F844" xlink:type="locator" />
    <link: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_26967E067A8753FFAA0FE45D62C44920" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FB8FC13E54505A9BA0579B2DF023F844" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_26967E067A8753FFAA0FE45D62C44920" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_9D8697ECEFD95E928243BB8FE9484138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_26967E067A8753FFAA0FE45D62C44920" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9D8697ECEFD95E928243BB8FE9484138" xlink:type="arc" />
    <link: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_0B9D858E902FD1B3FEFB97726EDF422E_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9D8697ECEFD95E928243BB8FE9484138" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0B9D858E902FD1B3FEFB97726EDF422E_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_C27F05292E725E8AB9B2BE2C940F5E3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9D8697ECEFD95E928243BB8FE9484138" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_C27F05292E725E8AB9B2BE2C940F5E3A" xlink:type="arc" />
    <link: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_F3DD4F6FACF55204B0823061C0563888" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_26967E067A8753FFAA0FE45D62C44920" xlink:to="loc_us-gaap_ConsolidationItemsAxis_F3DD4F6FACF55204B0823061C0563888" xlink:type="arc" />
    <link: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_4BF8185B9C3CA15D8A2997726EDF843A_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_F3DD4F6FACF55204B0823061C0563888" xlink:to="loc_us-gaap_ConsolidationItemsDomain_4BF8185B9C3CA15D8A2997726EDF843A_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_EA54C907F1A35D7EB145C3FA14F08E3F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_F3DD4F6FACF55204B0823061C0563888" xlink:to="loc_us-gaap_ConsolidationItemsDomain_EA54C907F1A35D7EB145C3FA14F08E3F" xlink:type="arc" />
    <link: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_DCA20000B3595118BF423DFF6D1A6A85" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_26967E067A8753FFAA0FE45D62C44920" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_DCA20000B3595118BF423DFF6D1A6A85" xlink:type="arc" />
    <link: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_2FD54383E934E065B99E97726EDF99EA_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DCA20000B3595118BF423DFF6D1A6A85" xlink:to="loc_us-gaap_SegmentDomain_2FD54383E934E065B99E97726EDF99EA_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_EDE423EC957659CEA988FD46A52D928E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DCA20000B3595118BF423DFF6D1A6A85" xlink:to="loc_us-gaap_SegmentDomain_EDE423EC957659CEA988FD46A52D928E" xlink:type="arc" />
    <link: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_A23E29DFCC8F5D0DA35E1D8BAD3D4683" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_26967E067A8753FFAA0FE45D62C44920" xlink:to="loc_us-gaap_RangeAxis_A23E29DFCC8F5D0DA35E1D8BAD3D4683" xlink:type="arc" />
    <link: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_103A05B516C637FBC8CB97726EDF01CC_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_A23E29DFCC8F5D0DA35E1D8BAD3D4683" xlink:to="loc_us-gaap_RangeMember_103A05B516C637FBC8CB97726EDF01CC_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_B664A1D6F2A555E193B8FD8185426D07" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_A23E29DFCC8F5D0DA35E1D8BAD3D4683" xlink:to="loc_us-gaap_RangeMember_B664A1D6F2A555E193B8FD8185426D07" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/IntangibleAssetsIncludingGoodwillTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_52933703EF605E49B3492D0FF15631BE" xlink:type="locator" />
    <link: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_50C207E6EA065798A757361156B51C43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_52933703EF605E49B3492D0FF15631BE" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_50C207E6EA065798A757361156B51C43" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_F2B5EB2049EE5A41BABF9E77D24F0FC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_50C207E6EA065798A757361156B51C43" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F2B5EB2049EE5A41BABF9E77D24F0FC1" xlink:type="arc" />
    <link: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_124310764A66C7DF715D6D03FB78AE1A_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F2B5EB2049EE5A41BABF9E77D24F0FC1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_124310764A66C7DF715D6D03FB78AE1A_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_E3F8E3700EBC5FBFBAFD83382D87EA3F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F2B5EB2049EE5A41BABF9E77D24F0FC1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E3F8E3700EBC5FBFBAFD83382D87EA3F" xlink:type="arc" />
    <link: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_4CD1C8CD249754999747F2AE64299A14" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_50C207E6EA065798A757361156B51C43" xlink:to="loc_us-gaap_ConsolidationItemsAxis_4CD1C8CD249754999747F2AE64299A14" xlink:type="arc" />
    <link: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_7D755B2901AE8EA16CA96D03FB78397E_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_4CD1C8CD249754999747F2AE64299A14" xlink:to="loc_us-gaap_ConsolidationItemsDomain_7D755B2901AE8EA16CA96D03FB78397E_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_44406ECCDC045A4CB52380E04E84CDB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_4CD1C8CD249754999747F2AE64299A14" xlink:to="loc_us-gaap_ConsolidationItemsDomain_44406ECCDC045A4CB52380E04E84CDB1" xlink:type="arc" />
    <link: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_233B18752B38572EBE6F49F4F59954E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_50C207E6EA065798A757361156B51C43" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_233B18752B38572EBE6F49F4F59954E1" xlink:type="arc" />
    <link: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_76EFC9694F351365AA046D03FB781A21_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_233B18752B38572EBE6F49F4F59954E1" xlink:to="loc_us-gaap_SegmentDomain_76EFC9694F351365AA046D03FB781A21_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_73883A510D3A595B8B1DABE92980888F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_233B18752B38572EBE6F49F4F59954E1" xlink:to="loc_us-gaap_SegmentDomain_73883A510D3A595B8B1DABE92980888F" xlink:type="arc" />
    <link: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_570903C3A27F54428E9847312A7434DE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_50C207E6EA065798A757361156B51C43" xlink:to="loc_us-gaap_RangeAxis_570903C3A27F54428E9847312A7434DE" xlink:type="arc" />
    <link: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_472BF2F6576136DF2F6B6D03FB7860E3_C6063D08CC875053B16F69BD9C1C9797" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_570903C3A27F54428E9847312A7434DE" xlink:to="loc_us-gaap_RangeMember_472BF2F6576136DF2F6B6D03FB7860E3_C6063D08CC875053B16F69BD9C1C9797" xlink:type="arc" />
    <link: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_7D9403EC2AB9574FA6602BB52CCFEB7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_570903C3A27F54428E9847312A7434DE" xlink:to="loc_us-gaap_RangeMember_7D9403EC2AB9574FA6602BB52CCFEB7D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationResultsOfOperationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:type="locator" />
    <link: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_D6B166612E298AE64AE87629A706676C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6B166612E298AE64AE87629A706676C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_C1DAEBC64EA6797508E77629A706358E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6B166612E298AE64AE87629A706676C" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_C1DAEBC64EA6797508E77629A706358E" xlink:type="arc" />
    <link: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_336062C11177AA0793FC7629A706E2F4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C1DAEBC64EA6797508E77629A706358E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_336062C11177AA0793FC7629A706E2F4_default" xlink:type="arc" />
    <link: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_336062C11177AA0793FC7629A706E2F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C1DAEBC64EA6797508E77629A706358E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_336062C11177AA0793FC7629A706E2F4" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_KvaernerNorthAmericanConstructionMember" xlink:label="loc_mtrx_KvaernerNorthAmericanConstructionMember_F593064DD7D3571C58987629A706CF15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_336062C11177AA0793FC7629A706E2F4" xlink:to="loc_mtrx_KvaernerNorthAmericanConstructionMember_F593064DD7D3571C58987629A706CF15" xlink:type="arc" />
    <link: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_22D45573251BCB55ABFC7629A70618AA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6B166612E298AE64AE87629A706676C" xlink:to="loc_us-gaap_ConsolidationItemsAxis_22D45573251BCB55ABFC7629A70618AA" xlink:type="arc" />
    <link: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_BD72BB38DA7310236F2A7629A7062AA6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_22D45573251BCB55ABFC7629A70618AA" xlink:to="loc_us-gaap_ConsolidationItemsDomain_BD72BB38DA7310236F2A7629A7062AA6_default" xlink:type="arc" />
    <link: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_BD72BB38DA7310236F2A7629A7062AA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_22D45573251BCB55ABFC7629A70618AA" xlink:to="loc_us-gaap_ConsolidationItemsDomain_BD72BB38DA7310236F2A7629A7062AA6" xlink:type="arc" />
    <link: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_016373FCEA6991F5D02D7629A7067FDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_BD72BB38DA7310236F2A7629A7062AA6" xlink:to="loc_us-gaap_IntersegmentEliminationMember_016373FCEA6991F5D02D7629A7067FDB" xlink:type="arc" />
    <link: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_53EDEC91760BB4C7EB697629A70615B0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6B166612E298AE64AE87629A706676C" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_53EDEC91760BB4C7EB697629A70615B0" xlink:type="arc" />
    <link: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_F8F1CBDA4FBFD5A8AA5A7629A706966B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_53EDEC91760BB4C7EB697629A70615B0" xlink:to="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B_default" xlink:type="arc" />
    <link: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_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_53EDEC91760BB4C7EB697629A70615B0" xlink:to="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ElectricalInfrastructureMember" xlink:label="loc_mtrx_ElectricalInfrastructureMember_151831D9E98D9B0BA14E7629A706AED3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:to="loc_mtrx_ElectricalInfrastructureMember_151831D9E98D9B0BA14E7629A706AED3" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_OilGasAndChemicalMember" xlink:label="loc_mtrx_OilGasAndChemicalMember_40C707D2A2791729DC6A7629A706FF41" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:to="loc_mtrx_OilGasAndChemicalMember_40C707D2A2791729DC6A7629A706FF41" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_StorageSolutionsMember" xlink:label="loc_mtrx_StorageSolutionsMember_3DE242D0555FE0FDAD0E7629A7062323" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:to="loc_mtrx_StorageSolutionsMember_3DE242D0555FE0FDAD0E7629A7062323" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_IndustrialMember" xlink:label="loc_mtrx_IndustrialMember_379D080B6101546A47287629A707D973" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:to="loc_mtrx_IndustrialMember_379D080B6101546A47287629A707D973" xlink:type="arc" />
    <link: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_0B75FCB6047A149800847629A70710CE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F8F1CBDA4FBFD5A8AA5A7629A706966B" xlink:to="loc_us-gaap_AllOtherSegmentsMember_0B75FCB6047A149800847629A70710CE" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_Grossrevenues" xlink:label="loc_mtrx_Grossrevenues_6C0257E82C763A292FD37629A707AA8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_mtrx_Grossrevenues_6C0257E82C763A292FD37629A707AA8E" xlink:type="arc" />
    <link: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_A0048D6F516443A821A47629A7076485" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_us-gaap_Revenues_A0048D6F516443A821A47629A7076485" xlink:type="arc" />
    <link: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_60120F25F493E13B1D427629A707E9E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_us-gaap_GrossProfit_60120F25F493E13B1D427629A707E9E5" xlink:type="arc" />
    <link: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_AAF5EC8CFF06198889457629A7073B96" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_us-gaap_OperatingIncomeLoss_AAF5EC8CFF06198889457629A7073B96" xlink:type="arc" />
    <link: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_ACE25A0A87E7D6EF51677629A70762D7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_03AFF7388C6EBFEE06CC7629A707869D" xlink:to="loc_us-gaap_Assets_ACE25A0A87E7D6EF51677629A70762D7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_CustomerContractsLineItems" xlink:label="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:type="locator" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_CustomerContractsTable" xlink:label="loc_mtrx_CustomerContractsTable_77723D2E95245C75808160AA36FE77E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_mtrx_CustomerContractsTable_77723D2E95245C75808160AA36FE77E9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link: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_536B13C5A50355CBB1D11D1002AF28D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_mtrx_CustomerContractsTable_77723D2E95245C75808160AA36FE77E9" xlink:to="loc_us-gaap_MajorCustomersAxis_536B13C5A50355CBB1D11D1002AF28D0" xlink:type="arc" />
    <link: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_44CFFD61ACD5BFE23FB3963EF7368C57_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_536B13C5A50355CBB1D11D1002AF28D0" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_44CFFD61ACD5BFE23FB3963EF7368C57_9C51F092858E59DC9A4DF030B45A0A05" xlink:type="arc" />
    <link: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_F54FD1F8C736523CADE26920079527DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_536B13C5A50355CBB1D11D1002AF28D0" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_F54FD1F8C736523CADE26920079527DF" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_SMElectricCompanyMember" xlink:label="loc_mtrx_SMElectricCompanyMember_BC87A68EB53C549C8078F87950B5C0A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_F54FD1F8C736523CADE26920079527DF" xlink:to="loc_mtrx_SMElectricCompanyMember_BC87A68EB53C549C8078F87950B5C0A8" xlink:type="arc" />
    <link: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_91DD9D8EE0B95A9F8F92CCFB8EEEF316" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_us-gaap_ContractReceivableRetainageDueOneYearOrLess_91DD9D8EE0B95A9F8F92CCFB8EEEF316" xlink:type="arc" />
    <link: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_9B3B35C3F3A65167A443F1A5D4CB3FBA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_us-gaap_ContractReceivableRetainageDueAfterOneYear_9B3B35C3F3A65167A443F1A5D4CB3FBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractsReceivableClaimsAndUncertainAmounts" xlink:label="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_7C5450963B4D50AE9BCCF5C4D08D6705" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_us-gaap_ContractsReceivableClaimsAndUncertainAmounts_7C5450963B4D50AE9BCCF5C4D08D6705" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms" xlink:label="loc_us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms_8A6C9C0CE1685A908F3469EF91E3CC13" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_us-gaap_AccountsReceivableBilledForLongTermContractsOrPrograms_8A6C9C0CE1685A908F3469EF91E3CC13" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome" xlink:label="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_B11E030F71115FED8A4CF5C303341A95" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_mtrx_ChangeInAccountingEstimateFinancialEffectOperatingIncome_B11E030F71115FED8A4CF5C303341A95" xlink:type="arc" />
    <link:loc xlink:href="mtrx-20171231.xsd#mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome" xlink:label="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_91D5411B856757EFAC1CD87F671A387D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtrx_CustomerContractsLineItems_EEC9C9D50DFE57898C142F716F4104BE" xlink:to="loc_mtrx_ChangeinAccountingEstimateFinancialEffectNetIncome_91D5411B856757EFAC1CD87F671A387D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.matrixservicecompany.com/role/UncompletedContractsTables" xlink:type="extended" />
</link:linkbase>
