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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e8838-6368-78ad-a2b1-76cbb7a8a5a9,g:aaf8f411-fe3d-4985-80b6-ded706f2d4cb-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="erii-20260630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e8838-6850-7c74-ac03-21e912058c4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e8838-6850-78a0-8dc0-3cb46e5cefad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e8838-6850-7c74-ac03-21e912058c4b" xlink:to="loc_us-gaap_StatementTable_019e8838-6850-78a0-8dc0-3cb46e5cefad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019e8838-6850-7c05-9a49-3e6e658ea290" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e8838-6850-78a0-8dc0-3cb46e5cefad" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019e8838-6850-7c05-9a49-3e6e658ea290" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e8838-6850-7c05-9a49-3e6e658ea290_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e8838-6850-7c05-9a49-3e6e658ea290" xlink:to="loc_us-gaap_EquityComponentDomain_019e8838-6850-7c05-9a49-3e6e658ea290_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e8838-6850-7c05-9a49-3e6e658ea290" xlink:to="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019e8838-6850-7725-8c94-ac50a062aee2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:to="loc_us-gaap_CommonStockMember_019e8838-6850-7725-8c94-ac50a062aee2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019e8838-6850-74a4-aea6-8aea164b24ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019e8838-6850-74a4-aea6-8aea164b24ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e8838-6850-7850-b28a-ee3cd6cb7bd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e8838-6850-7850-b28a-ee3cd6cb7bd6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_019e8838-6850-7b52-99f6-c79a209b1359" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:to="loc_us-gaap_TreasuryStockCommonMember_019e8838-6850-7b52-99f6-c79a209b1359" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019e8838-6850-7475-8c90-06fabbe720d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8838-6850-7e44-a09e-290e6e51bbee" xlink:to="loc_us-gaap_RetainedEarningsMember_019e8838-6850-7475-8c90-06fabbe720d4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8838-6850-7c74-ac03-21e912058c4b" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8838-6850-7a39-84b6-b9cc274f63f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_StockholdersEquity_019e8838-6850-7a39-84b6-b9cc274f63f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_019e8838-6850-7af8-8756-e15050d858fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_019e8838-6850-7af8-8756-e15050d858fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_019e8838-6850-74c5-b56d-48e09d1deac4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_019e8838-6850-74c5-b56d-48e09d1deac4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e8838-6850-7674-a1d4-b9c091aa1c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e8838-6850-7674-a1d4-b9c091aa1c5b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019e8838-6850-746a-b2a7-71a68646adfa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019e8838-6850-746a-b2a7-71a68646adfa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019e8838-6850-7b67-9c78-88d1e751b1ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019e8838-6850-7b67-9c78-88d1e751b1ff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-6850-7d21-83db-2e686643f9ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-6850-7d21-83db-2e686643f9ad" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e8838-6850-752b-acf7-4fa86c5b606b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_NetIncomeLoss_019e8838-6850-752b-acf7-4fa86c5b606b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e8838-6850-7924-af5e-3d7d86139762" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e8838-6850-7924-af5e-3d7d86139762" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8838-6850-787c-b55e-ded7fdf13e9f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019e8838-6850-7e8d-9410-cfea67beb7f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_CommonStockSharesIssued_019e8838-6850-7e8d-9410-cfea67beb7f4" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_019e8838-6850-744d-905d-7793c0ef5157" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_TreasuryStockCommonShares_019e8838-6850-744d-905d-7793c0ef5157" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e8838-6850-7f27-b9ee-ea29b6a01bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e8838-6850-7f27-b9ee-ea29b6a01bbf" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_019e8838-6850-7f6b-bcc1-cbf0dabf0822" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_019e8838-6850-7f6b-bcc1-cbf0dabf0822" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-6850-7ffe-b826-72358f057880" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-6850-7ffe-b826-72358f057880" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_TreasureStockSharesAcquiredCommonStockAdjustment_019e8838-6850-7da9-a575-06b7975636d3" xlink:href="erii-20260630.xsd#erii_TreasureStockSharesAcquiredCommonStockAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8838-6850-78ba-a3a7-14393306763a" xlink:to="loc_erii_TreasureStockSharesAcquiredCommonStockAdjustment_019e8838-6850-7da9-a575-06b7975636d3" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019e8838-6850-78bf-b8f6-40022cf60e9d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_019e8838-6850-71da-82df-719fd059ce1e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e8838-6850-7f1c-838a-a5f23f042bfc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_019eff22-a9ad-702f-987b-a1433858832a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8838-6850-7c74-ac03-21e912058c4b" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_019eff22-a9ad-702f-987b-a1433858832a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#RevenueScheduleofDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/RevenueScheduleofDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019e8838-6850-7686-b3f6-c754ffea70ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e8838-6850-7686-b3f6-c754ffea70ce" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e8838-6850-714f-b504-95d4ebbe61cd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:to="loc_srt_StatementGeographicalAxis_019e8838-6850-714f-b504-95d4ebbe61cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-6850-714f-b504-95d4ebbe61cd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-6850-714f-b504-95d4ebbe61cd" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-6850-714f-b504-95d4ebbe61cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-6850-7a82-9d5f-5afd4e0b0706" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-6850-714f-b504-95d4ebbe61cd" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-6850-7a82-9d5f-5afd4e0b0706" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MiddleEastMember_019e8838-6850-723f-964b-524eefb60f37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MiddleEastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-6850-7a82-9d5f-5afd4e0b0706" xlink:to="loc_us-gaap_MiddleEastMember_019e8838-6850-723f-964b-524eefb60f37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AfricaMember_019e8838-6850-7692-bd3e-505571f6d94d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_AfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-6850-7a82-9d5f-5afd4e0b0706" xlink:to="loc_srt_AfricaMember_019e8838-6850-7692-bd3e-505571f6d94d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OtherMember_019e8838-6850-7dbc-927f-51138483240c" xlink:href="erii-20260630.xsd#erii_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-6850-7a82-9d5f-5afd4e0b0706" xlink:to="loc_erii_OtherMember_019e8838-6850-7dbc-927f-51138483240c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_019e8838-6850-7070-a749-46cfa1e53b0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_019e8838-6850-7070-a749-46cfa1e53b0b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-7070-a749-46cfa1e53b0b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_019e8838-6850-7070-a749-46cfa1e53b0b" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-7070-a749-46cfa1e53b0b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-763b-9eca-b9afcdca9734" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_019e8838-6850-7070-a749-46cfa1e53b0b" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-763b-9eca-b9afcdca9734" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OriginalEquipmentManufacturerMember_019e8838-6850-7cc8-9fd4-f4defcd2e3db" xlink:href="erii-20260630.xsd#erii_OriginalEquipmentManufacturerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-763b-9eca-b9afcdca9734" xlink:to="loc_erii_OriginalEquipmentManufacturerMember_019e8838-6850-7cc8-9fd4-f4defcd2e3db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_AftermarketMember_019e8838-6850-71e0-9f16-b446bce4b9a4" xlink:href="erii-20260630.xsd#erii_AftermarketMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-763b-9eca-b9afcdca9734" xlink:to="loc_erii_AftermarketMember_019e8838-6850-71e0-9f16-b446bce4b9a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MegaprojectMember_019e8838-6850-74a4-a23e-e6e7e2ef2cf1" xlink:href="erii-20260630.xsd#erii_MegaprojectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_019e8838-6850-763b-9eca-b9afcdca9734" xlink:to="loc_erii_MegaprojectMember_019e8838-6850-74a4-a23e-e6e7e2ef2cf1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-6850-7286-9dcd-25698236b36d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-6850-7286-9dcd-25698236b36d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-6850-7286-9dcd-25698236b36d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-6850-7286-9dcd-25698236b36d" xlink:to="loc_us-gaap_SegmentDomain_019e8838-6850-7286-9dcd-25698236b36d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-6850-7611-8ef4-0621f8c76ed2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-6850-7286-9dcd-25698236b36d" xlink:to="loc_us-gaap_SegmentDomain_019e8838-6850-7611-8ef4-0621f8c76ed2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_DesalinationSegmentMember_019e8838-6850-7112-85a1-e920ad32a1a9" xlink:href="erii-20260630.xsd#erii_DesalinationSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019e8838-6850-7611-8ef4-0621f8c76ed2" xlink:to="loc_erii_DesalinationSegmentMember_019e8838-6850-7112-85a1-e920ad32a1a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WastewaterSegmentMember_019e8838-6850-7087-95da-888a876473ae" xlink:href="erii-20260630.xsd#erii_WastewaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019e8838-6850-7611-8ef4-0621f8c76ed2" xlink:to="loc_erii_WastewaterSegmentMember_019e8838-6850-7087-95da-888a876473ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_019efe3e-8163-7f13-877e-fceeb7e19cc6" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e8838-6850-7610-ac1e-6a73a4cf907f" xlink:to="loc_srt_ConsolidationItemsAxis_019efe3e-8163-7f13-877e-fceeb7e19cc6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019efe3e-8163-7f13-877e-fceeb7e19cc6_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_019efe3e-8163-7f13-877e-fceeb7e19cc6" xlink:to="loc_srt_ConsolidationItemsDomain_019efe3e-8163-7f13-877e-fceeb7e19cc6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019efe3e-8163-7793-921a-64e9df26f72a" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_019efe3e-8163-7f13-877e-fceeb7e19cc6" xlink:to="loc_srt_ConsolidationItemsDomain_019efe3e-8163-7793-921a-64e9df26f72a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_019efe40-6969-7304-a36f-b11f530c4e78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019efe3e-8163-7793-921a-64e9df26f72a" xlink:to="loc_us-gaap_CorporateNonSegmentMember_019efe40-6969-7304-a36f-b11f530c4e78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8838-6850-7225-b11a-09d59f917b02" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e8838-6850-7686-b3f6-c754ffea70ce" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8838-6850-7225-b11a-09d59f917b02" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#RevenueScheduleofRemainingPerformanceObligationDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e8838-6850-799d-b2b7-9677cfa2f23e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e8838-6850-799d-b2b7-9677cfa2f23e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019e8838-6850-7138-bdc6-75f154cc1ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e8838-6850-799d-b2b7-9677cfa2f23e" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019e8838-6850-7138-bdc6-75f154cc1ab7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019e8838-6850-7f02-8df6-4a01b9f87471" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019e8838-6850-7f02-8df6-4a01b9f87471" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e8838-6850-717f-b8aa-285d9a7b6589" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e8838-6850-717f-b8aa-285d9a7b6589" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="erii-20260630.xsd#RevenueScheduleofRemainingPerformanceObligationDetails_1"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e8838-6850-799d-b2b7-9677cfa2f23e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e8838-6850-799d-b2b7-9677cfa2f23e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019e8838-6850-7f02-8df6-4a01b9f87471" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019e8838-6850-7f02-8df6-4a01b9f87471" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e8838-6850-717f-b8aa-285d9a7b6589" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e8838-6850-70c6-8cf1-2abd48e2f1a8" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e8838-6850-717f-b8aa-285d9a7b6589" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/IncomeLossPerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#IncomeLossPerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/IncomeLossPerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_019efe66-8d1d-785b-b375-d45f0088dc0d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_019efe66-8d1d-7ae5-95a6-6f3fe0c569a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_019efe66-8d1d-785b-b375-d45f0088dc0d" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_019efe66-8d1d-7ae5-95a6-6f3fe0c569a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019efe66-8d1d-78cd-b191-979208464ca8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_019efe66-8d1d-7ae5-95a6-6f3fe0c569a3" xlink:to="loc_us-gaap_AwardTypeAxis_019efe66-8d1d-78cd-b191-979208464ca8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-78cd-b191-979208464ca8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019efe66-8d1d-78cd-b191-979208464ca8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-78cd-b191-979208464ca8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-723d-94ab-93555778eccb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019efe66-8d1d-78cd-b191-979208464ca8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-723d-94ab-93555778eccb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019efe66-8d1d-7d29-a79d-9336d6004c9d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-723d-94ab-93555778eccb" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019efe66-8d1d-7d29-a79d-9336d6004c9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019efe66-8d1d-7e8a-8d5e-cca3a3060c66" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019efe66-8d1d-723d-94ab-93555778eccb" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019efe66-8d1d-7e8a-8d5e-cca3a3060c66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAbstract_019e8838-6850-7586-a205-0ee4aad61822" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_019efe66-8d1d-785b-b375-d45f0088dc0d" xlink:to="loc_us-gaap_NetIncomeLossAbstract_019e8838-6850-7586-a205-0ee4aad61822" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e8838-6850-7eea-ae36-fb6eb6fa163c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_019e8838-6850-7586-a205-0ee4aad61822" xlink:to="loc_us-gaap_NetIncomeLoss_019e8838-6850-7eea-ae36-fb6eb6fa163c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_019e8838-6850-72ab-b562-05708a5fc997" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_019efe66-8d1d-785b-b375-d45f0088dc0d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_019e8838-6850-72ab-b562-05708a5fc997" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e8838-6850-742c-a761-6e02c6033cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_019e8838-6850-72ab-b562-05708a5fc997" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e8838-6850-742c-a761-6e02c6033cd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019efe67-900e-7cbd-90c3-4bc1633371d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_019e8838-6850-72ab-b562-05708a5fc997" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019efe67-900e-7cbd-90c3-4bc1633371d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e8838-6850-7a25-b017-decddb4b7fce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_019e8838-6850-72ab-b562-05708a5fc997" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e8838-6850-7a25-b017-decddb4b7fce" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_NumberOfSharesUsedInPerShareCalculations_019e8838-6850-70df-aa37-a7fdb419d83a" xlink:href="erii-20260630.xsd#erii_NumberOfSharesUsedInPerShareCalculations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_019efe66-8d1d-785b-b375-d45f0088dc0d" xlink:to="loc_erii_NumberOfSharesUsedInPerShareCalculations_019e8838-6850-70df-aa37-a7fdb419d83a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_019e8838-6850-7393-8c79-54c0d13880d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_NumberOfSharesUsedInPerShareCalculations_019e8838-6850-70df-aa37-a7fdb419d83a" xlink:to="loc_us-gaap_EarningsPerShareBasic_019e8838-6850-7393-8c79-54c0d13880d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_019e8838-6850-77af-98d4-bc901096a90d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_NumberOfSharesUsedInPerShareCalculations_019e8838-6850-70df-aa37-a7fdb419d83a" xlink:to="loc_us-gaap_EarningsPerShareDiluted_019e8838-6850-77af-98d4-bc901096a90d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/OtherFinancialInformationRestructuringNarrativeDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#OtherFinancialInformationRestructuringNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/OtherFinancialInformationRestructuringNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e8838-6850-7ca9-ae28-9ef34fa4d109" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e8838-6850-7ca9-ae28-9ef34fa4d109" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_019e8838-6850-76b5-9898-498181de3555" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_019e8838-6850-7ca9-ae28-9ef34fa4d109" xlink:to="loc_us-gaap_RestructuringPlanAxis_019e8838-6850-76b5-9898-498181de3555" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-76b5-9898-498181de3555_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e8838-6850-76b5-9898-498181de3555" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-76b5-9898-498181de3555_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-7e28-a809-9bd5ed621724" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_019e8838-6850-76b5-9898-498181de3555" xlink:to="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-7e28-a809-9bd5ed621724" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_A2024RestructuringPlanMember_019e8838-6850-70db-8999-940ff38387e0" xlink:href="erii-20260630.xsd#erii_A2024RestructuringPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-7e28-a809-9bd5ed621724" xlink:to="loc_erii_A2024RestructuringPlanMember_019e8838-6850-70db-8999-940ff38387e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_A2026RestructuringPlanMember_019e8838-6850-7346-9d16-52afa6a4802c" xlink:href="erii-20260630.xsd#erii_A2026RestructuringPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_019e8838-6850-7e28-a809-9bd5ed621724" xlink:to="loc_erii_A2026RestructuringPlanMember_019e8838-6850-7346-9d16-52afa6a4802c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019e8838-6850-7701-b6bf-4ef86d78dc9b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_RestructuringCharges_019e8838-6850-7701-b6bf-4ef86d78dc9b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated_019e8838-6850-7daf-ae77-b91532f2cec5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated_019e8838-6850-7daf-ae77-b91532f2cec5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedPeriodPercent_019e8838-6850-7372-b0c5-4e4aeae5c0a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedPeriodPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedPeriodPercent_019e8838-6850-7372-b0c5-4e4aeae5c0a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWriteDown_019e8838-6850-7b74-a7f2-bea23f63ea4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryWriteDown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_InventoryWriteDown_019e8838-6850-7b74-a7f2-bea23f63ea4e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_019e8838-6850-7311-bf26-b2fdc65117c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_019e8838-6850-71f9-9cc4-c056de305f70" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_019e8838-6850-7311-bf26-b2fdc65117c3" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsNarrativeDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#InvestmentsandFairValueMeasurementsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e8838-6850-78cd-af68-51fea1bf24ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e8838-6850-714d-ac61-2ab65a42290c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e8838-6850-78cd-af68-51fea1bf24ce" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e8838-6850-714d-ac61-2ab65a42290c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8838-6850-73a4-ac69-b57d1c4241da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e8838-6850-714d-ac61-2ab65a42290c" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8838-6850-73a4-ac69-b57d1c4241da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8838-6850-73a4-ac69-b57d1c4241da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8838-6850-73a4-ac69-b57d1c4241da" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8838-6850-73a4-ac69-b57d1c4241da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8838-6850-790e-b875-fad49e31f9a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8838-6850-73a4-ac69-b57d1c4241da" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8838-6850-790e-b875-fad49e31f9a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019e8838-6850-7d3e-9a89-56fdda227652" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8838-6850-790e-b875-fad49e31f9a3" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019e8838-6850-7d3e-9a89-56fdda227652" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_019e8838-6850-7e7e-a59f-02ecdbc260c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialLiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e8838-6850-78cd-af68-51fea1bf24ce" xlink:to="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_019e8838-6850-7e7e-a59f-02ecdbc260c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e8838-6850-774b-82b0-62f05481c060" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e8838-6850-78cd-af68-51fea1bf24ce" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_019e8838-6850-774b-82b0-62f05481c060" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019e8838-6850-7fbb-ba33-0259458d4c74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfFinancialPositionLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:to="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019e8838-6850-7fbb-ba33-0259458d4c74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7a74-b86d-c30c6f084862_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7a74-b86d-c30c6f084862_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019e8838-6850-7863-b55d-92c1dd6f11fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019e8838-6850-7863-b55d-92c1dd6f11fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019e8838-6850-7cbb-a040-0428c8d7221a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019e8838-6850-7cbb-a040-0428c8d7221a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e8838-6850-7368-8f59-90f798bc4b4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e8838-6850-7368-8f59-90f798bc4b4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019e8838-6850-711f-a349-5f5776f765dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019e8838-6850-711f-a349-5f5776f765dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e8838-6850-7c68-a59f-061b235b0003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e8838-6850-7c68-a59f-061b235b0003" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails_1" xlink:type="simple" xlink:href="erii-20260630.xsd#InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails_1"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8838-6850-78d5-bc35-ce64ba03beb3" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7a74-b86d-c30c6f084862_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7a74-b86d-c30c6f084862_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8838-6850-7a74-b86d-c30c6f084862" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019e8838-6850-7863-b55d-92c1dd6f11fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019e8838-6850-7863-b55d-92c1dd6f11fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019e8838-6850-7cbb-a040-0428c8d7221a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019e8838-6850-7cbb-a040-0428c8d7221a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e8838-6850-7368-8f59-90f798bc4b4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8838-6850-7752-9ad0-3ee1c185afba" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e8838-6850-7368-8f59-90f798bc4b4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8838-6850-7e49-9b1a-b8fbc99ee9f4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019e8838-6850-711f-a349-5f5776f765dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019e8838-6850-711f-a349-5f5776f765dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e8838-6850-7c68-a59f-061b235b0003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_019e8838-6850-7896-83b0-37eae280352e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e8838-6850-7c68-a59f-061b235b0003" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/LinesofCreditDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#LinesofCreditDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/LinesofCreditDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_019e8838-691e-7d71-be30-ab0d20a751fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019e8838-691e-7d71-be30-ab0d20a751fa" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e8838-6851-752e-b797-2b230ae463d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e8838-6851-752e-b797-2b230ae463d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e8838-6851-752e-b797-2b230ae463d7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e8838-6851-752e-b797-2b230ae463d7" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e8838-6851-752e-b797-2b230ae463d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e8838-6851-786d-829d-3f12a4da434a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e8838-6851-752e-b797-2b230ae463d7" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e8838-6851-786d-829d-3f12a4da434a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CommittedRevolvingCreditLineMember_019e8838-6851-7094-9a73-c95d8dcdbf01" xlink:href="erii-20260630.xsd#erii_CommittedRevolvingCreditLineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8838-6851-786d-829d-3f12a4da434a" xlink:to="loc_erii_CommittedRevolvingCreditLineMember_019e8838-6851-7094-9a73-c95d8dcdbf01" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_019e8838-6851-7d74-90df-cb0c6fc8820d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_019e8838-6851-7d74-90df-cb0c6fc8820d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_019e8838-6851-7d74-90df-cb0c6fc8820d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_019e8838-6851-7d74-90df-cb0c6fc8820d" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_019e8838-6851-7d74-90df-cb0c6fc8820d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_019e8838-6851-7743-be13-745ebaaac8a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_019e8838-6851-7d74-90df-cb0c6fc8820d" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_019e8838-6851-7743-be13-745ebaaac8a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_JPMorganChaseBankNAMember_019e8838-6851-7966-9617-f030ddcec0fb" xlink:href="erii-20260630.xsd#erii_JPMorganChaseBankNAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_019e8838-6851-7743-be13-745ebaaac8a0" xlink:to="loc_erii_JPMorganChaseBankNAMember_019e8838-6851-7966-9617-f030ddcec0fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e8838-6851-77ff-a2be-f08802e03f2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e8838-6851-77ff-a2be-f08802e03f2d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e8838-6851-77ff-a2be-f08802e03f2d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e8838-6851-77ff-a2be-f08802e03f2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e8838-6851-77ff-a2be-f08802e03f2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e8838-6851-7980-9773-daa676fb3140" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e8838-6851-77ff-a2be-f08802e03f2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e8838-6851-7980-9773-daa676fb3140" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_019e8838-6851-7fa9-a39c-da3524428b88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e8838-6851-7980-9773-daa676fb3140" xlink:to="loc_us-gaap_LineOfCreditMember_019e8838-6851-7fa9-a39c-da3524428b88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019e8838-691e-75b0-82b1-ff76b0c4a78e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019e8838-6851-755d-ab51-c99fcecb29e6" xlink:to="loc_us-gaap_CreditFacilityAxis_019e8838-691e-75b0-82b1-ff76b0c4a78e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019e8838-691e-75b0-82b1-ff76b0c4a78e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019e8838-691e-75b0-82b1-ff76b0c4a78e" xlink:to="loc_us-gaap_CreditFacilityDomain_019e8838-691e-75b0-82b1-ff76b0c4a78e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019e8838-691e-7333-a800-60784cef64c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019e8838-691e-75b0-82b1-ff76b0c4a78e" xlink:to="loc_us-gaap_CreditFacilityDomain_019e8838-691e-7333-a800-60784cef64c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_019e8838-691e-73f5-80b4-d289a63d832b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019e8838-691e-7333-a800-60784cef64c5" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_019e8838-691e-73f5-80b4-d289a63d832b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_019e8838-691e-7342-ae4d-e96e32151c48" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019e8838-691e-7333-a800-60784cef64c5" xlink:to="loc_us-gaap_LetterOfCreditMember_019e8838-691e-7342-ae4d-e96e32151c48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e8838-691e-7e43-bcfb-e3815a583991" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019e8838-691e-7d71-be30-ab0d20a751fa" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e8838-691e-7e43-bcfb-e3815a583991" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e8838-691e-7d75-8fed-6ce58481594e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019e8838-691e-7d71-be30-ab0d20a751fa" xlink:to="loc_us-gaap_LongTermDebt_019e8838-691e-7d75-8fed-6ce58481594e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherSundryLiabilities_019e8838-691e-7372-98b8-ca3c3b92f199" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherSundryLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019e8838-691e-7d71-be30-ab0d20a751fa" xlink:to="loc_us-gaap_OtherSundryLiabilities_019e8838-691e-7372-98b8-ca3c3b92f199" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#CommitmentsandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/CommitmentsandContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_019e8838-691e-753a-b6e4-bcdf6024f600" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_LossContingenciesTable_019e8838-691e-753a-b6e4-bcdf6024f600" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019e8838-691e-74d3-863d-d4ceeb0593b0" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019e8838-691e-753a-b6e4-bcdf6024f600" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019e8838-691e-74d3-863d-d4ceeb0593b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019e8838-691e-74d3-863d-d4ceeb0593b0_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019e8838-691e-74d3-863d-d4ceeb0593b0" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019e8838-691e-74d3-863d-d4ceeb0593b0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019e8838-691e-7be9-b275-6a5f4006e078" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019e8838-691e-74d3-863d-d4ceeb0593b0" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019e8838-691e-7be9-b275-6a5f4006e078" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_SubleaseMember_019e8838-691e-7eff-bea3-86c1c4b9770b" xlink:href="erii-20260630.xsd#erii_SubleaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019e8838-691e-7be9-b275-6a5f4006e078" xlink:to="loc_erii_SubleaseMember_019e8838-691e-7eff-bea3-86c1c4b9770b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e8838-691e-7279-82b2-73a7ce2201a4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_019e8838-691e-753a-b6e4-bcdf6024f600" xlink:to="loc_srt_StatementGeographicalAxis_019e8838-691e-7279-82b2-73a7ce2201a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-691e-7279-82b2-73a7ce2201a4_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-691e-7279-82b2-73a7ce2201a4" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-691e-7279-82b2-73a7ce2201a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-691e-7eef-8984-d722867d0dc7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-691e-7279-82b2-73a7ce2201a4" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-691e-7eef-8984-d722867d0dc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_KatyTexasMember_019e8838-691f-7083-8e07-d5072691c3b6" xlink:href="erii-20260630.xsd#erii_KatyTexasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691e-7eef-8984-d722867d0dc7" xlink:to="loc_erii_KatyTexasMember_019e8838-691f-7083-8e07-d5072691c3b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_019e8838-691f-7111-a935-a63b523c5b88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_019e8838-691f-7111-a935-a63b523c5b88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_019e8838-691f-7e56-8071-c157b754b73a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_019e8838-691f-7e56-8071-c157b754b73a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseImpairmentLoss_019e8838-691f-7d7a-8ff1-60d185ab0bbc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_OperatingLeaseImpairmentLoss_019e8838-691f-7d7a-8ff1-60d185ab0bbc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLeasehold_019e8838-691f-779f-991d-298941ab385f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ImpairmentOfLeasehold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_ImpairmentOfLeasehold_019e8838-691f-779f-991d-298941ab385f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyLossInPeriod_019e8838-691f-72de-a811-6d72478aa681" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyLossInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_019e8838-691f-70c6-93f3-034532c27559" xlink:to="loc_us-gaap_LossContingencyLossInPeriod_019e8838-691f-72de-a811-6d72478aa681" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/SegmentReportingDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#SegmentReportingDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/SegmentReportingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7ab4-b028-a8792f1960f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7ab4-b028-a8792f1960f6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_019e8838-691f-7bf0-86bb-f41626b57067" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7ab4-b028-a8792f1960f6" xlink:to="loc_srt_ConsolidationItemsAxis_019e8838-691f-7bf0-86bb-f41626b57067" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019e8838-691f-7bf0-86bb-f41626b57067_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_019e8838-691f-7bf0-86bb-f41626b57067" xlink:to="loc_srt_ConsolidationItemsDomain_019e8838-691f-7bf0-86bb-f41626b57067_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_019e8838-691f-7c41-9e8c-f6c784543484" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_019e8838-691f-7bf0-86bb-f41626b57067" xlink:to="loc_srt_ConsolidationItemsDomain_019e8838-691f-7c41-9e8c-f6c784543484" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_019e8838-691f-77bb-9126-30e91cae2528" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019e8838-691f-7c41-9e8c-f6c784543484" xlink:to="loc_us-gaap_OperatingSegmentsMember_019e8838-691f-77bb-9126-30e91cae2528" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_019e8838-691f-70b3-bedc-65d075db75fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_019e8838-691f-7c41-9e8c-f6c784543484" xlink:to="loc_us-gaap_CorporateNonSegmentMember_019e8838-691f-70b3-bedc-65d075db75fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-7bb5-b308-4f6fd6fece04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7ab4-b028-a8792f1960f6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-7bb5-b308-4f6fd6fece04" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-691f-7bb5-b308-4f6fd6fece04_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-7bb5-b308-4f6fd6fece04" xlink:to="loc_us-gaap_SegmentDomain_019e8838-691f-7bb5-b308-4f6fd6fece04_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-691f-78d9-8b14-476399a235f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-7bb5-b308-4f6fd6fece04" xlink:to="loc_us-gaap_SegmentDomain_019e8838-691f-78d9-8b14-476399a235f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_DesalinationSegmentMember_019e8838-691f-700b-ba0c-34118c721c4e" xlink:href="erii-20260630.xsd#erii_DesalinationSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019e8838-691f-78d9-8b14-476399a235f4" xlink:to="loc_erii_DesalinationSegmentMember_019e8838-691f-700b-ba0c-34118c721c4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WastewaterSegmentMember_019e8838-691f-7ce2-93cd-f6a8d98364eb" xlink:href="erii-20260630.xsd#erii_WastewaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019e8838-691f-78d9-8b14-476399a235f4" xlink:to="loc_erii_WastewaterSegmentMember_019e8838-691f-7ce2-93cd-f6a8d98364eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8838-691f-7ac7-8f6a-24461f7a9476" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8838-691f-7ac7-8f6a-24461f7a9476" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CostOfRevenueExcludingInventoryWriteDown_019e8838-691f-7d21-ab99-8ea4f8480b91" xlink:href="erii-20260630.xsd#erii_CostOfRevenueExcludingInventoryWriteDown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_erii_CostOfRevenueExcludingInventoryWriteDown_019e8838-691f-7d21-ab99-8ea4f8480b91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWriteDown_019e8838-691f-7d42-8729-c28dd5cf3b7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryWriteDown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_InventoryWriteDown_019e8838-691f-7d42-8729-c28dd5cf3b7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019e8838-691f-7d66-9280-12954b6994be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_GrossProfit_019e8838-691f-7d66-9280-12954b6994be" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019e8838-691f-7932-b4c4-69ef6474245c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019e8838-691f-7932-b4c4-69ef6474245c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_019e8838-691f-72e4-ba24-75682477fbe6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_SellingAndMarketingExpense_019e8838-691f-72e4-ba24-75682477fbe6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019e8838-691f-76d2-9ed0-6d5197ea8723" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019e8838-691f-76d2-9ed0-6d5197ea8723" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019e8838-691f-7ec5-a189-2f2e1cf23cda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_RestructuringCharges_019e8838-691f-7ec5-a189-2f2e1cf23cda" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_019e8838-691f-71a0-a501-d65ef658c9b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_019e8838-691f-71a0-a501-d65ef658c9b0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_019e8838-691f-71fa-8ca9-e82c55376945" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019e8838-691f-7685-b36a-72ec329692c5" xlink:to="loc_us-gaap_OperatingExpenses_019e8838-691f-71fa-8ca9-e82c55376945" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e8838-691f-7d7d-bfdf-809a0ea2ca86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-799c-a047-0553e4bf9eab" xlink:to="loc_us-gaap_OperatingIncomeLoss_019e8838-691f-7d7d-bfdf-809a0ea2ca86" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/ConcentrationsScheduleofRevenuebyGeographicLocationandCountryDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#ConcentrationsScheduleofRevenuebyGeographicLocationandCountryDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/ConcentrationsScheduleofRevenuebyGeographicLocationandCountryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-72be-87cb-392d00b63b2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7f8e-a23a-11af732354ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-72be-87cb-392d00b63b2c" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7f8e-a23a-11af732354ae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e8838-691f-72ca-9656-77f98ddb745f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7f8e-a23a-11af732354ae" xlink:to="loc_srt_StatementGeographicalAxis_019e8838-691f-72ca-9656-77f98ddb745f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-691f-72ca-9656-77f98ddb745f_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-691f-72ca-9656-77f98ddb745f" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-691f-72ca-9656-77f98ddb745f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e8838-691f-72ca-9656-77f98ddb745f" xlink:to="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_EG_019f6479-156b-70b4-9368-3df0147dec98" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_EG"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_country_EG_019f6479-156b-70b4-9368-3df0147dec98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_ES_019efeea-66b5-742c-b268-c4b63f808482" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_ES"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_country_ES_019efeea-66b5-742c-b268-c4b63f808482" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_OM_019efeea-1c0a-7f1c-b52a-f984000c75af" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_OM"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_country_OM_019efeea-1c0a-7f1c-b52a-f984000c75af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_019efee9-cbfd-7fe5-a928-c11af43db5b7" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_country_CN_019efee9-cbfd-7fe5-a928-c11af43db5b7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_SA_019f647b-3599-785e-bfb2-aa947768f111" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_SA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_country_SA_019f647b-3599-785e-bfb2-aa947768f111" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OthersMember_019e8838-691f-76f9-9901-c6da1efbdccd" xlink:href="erii-20260630.xsd#erii_OthersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8838-691f-721b-bea6-bc03698f5dd5" xlink:to="loc_erii_OthersMember_019e8838-691f-76f9-9901-c6da1efbdccd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7896-a367-1c414e74f734" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7f8e-a23a-11af732354ae" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7896-a367-1c414e74f734" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7896-a367-1c414e74f734_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7896-a367-1c414e74f734" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7896-a367-1c414e74f734_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7878-958f-8caa7cc44184" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7896-a367-1c414e74f734" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7878-958f-8caa7cc44184" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_019e8838-691f-74d9-8de7-6252a1cee56f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7878-958f-8caa7cc44184" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_019e8838-691f-74d9-8de7-6252a1cee56f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-76c8-b23f-4683319747d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019e8838-691f-7f8e-a23a-11af732354ae" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-76c8-b23f-4683319747d2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-76c8-b23f-4683319747d2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-76c8-b23f-4683319747d2" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-76c8-b23f-4683319747d2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-77c1-9955-c0ffa1280006" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-76c8-b23f-4683319747d2" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-77c1-9955-c0ffa1280006" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_019e8838-691f-74bf-97e1-a900923b6b14" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-77c1-9955-c0ffa1280006" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_019e8838-691f-74bf-97e1-a900923b6b14" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_019e8838-691f-78e2-bdba-b4a3e5842bf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019e8838-691f-72be-87cb-392d00b63b2c" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_019e8838-691f-78e2-bdba-b4a3e5842bf2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/ConcentrationsScheduleofCustomerRevenueConcentrationDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#ConcentrationsScheduleofCustomerRevenueConcentrationDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/ConcentrationsScheduleofCustomerRevenueConcentrationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_019e8838-691f-7c84-afed-4db6ac53363a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e8838-691f-7c84-afed-4db6ac53363a" xlink:to="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019e8838-691f-7a09-a0c9-cef02c054568" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:to="loc_srt_MajorCustomersAxis_019e8838-691f-7a09-a0c9-cef02c054568" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7a09-a0c9-cef02c054568_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019e8838-691f-7a09-a0c9-cef02c054568" xlink:to="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7a09-a0c9-cef02c054568_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7cd0-abdb-354ae71d20e6" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019e8838-691f-7a09-a0c9-cef02c054568" xlink:to="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7cd0-abdb-354ae71d20e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerAMember_019e8838-691f-7d3f-8ac5-118688596972" xlink:href="erii-20260630.xsd#erii_CustomerAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7cd0-abdb-354ae71d20e6" xlink:to="loc_erii_CustomerAMember_019e8838-691f-7d3f-8ac5-118688596972" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerBMember_019e8838-691f-7f5f-91c2-36ed87545a75" xlink:href="erii-20260630.xsd#erii_CustomerBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7cd0-abdb-354ae71d20e6" xlink:to="loc_erii_CustomerBMember_019e8838-691f-7f5f-91c2-36ed87545a75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerCMember_019f647e-bd07-7f97-8fd3-f2e87683290f" xlink:href="erii-20260630.xsd#erii_CustomerCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019e8838-691f-7cd0-abdb-354ae71d20e6" xlink:to="loc_erii_CustomerCMember_019f647e-bd07-7f97-8fd3-f2e87683290f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7a08-a607-8b2ae0bf44e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7a08-a607-8b2ae0bf44e7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7a08-a607-8b2ae0bf44e7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7a08-a607-8b2ae0bf44e7" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7a08-a607-8b2ae0bf44e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7075-ac7b-f72ad70b319f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e8838-691f-7a08-a607-8b2ae0bf44e7" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7075-ac7b-f72ad70b319f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_019e8838-691f-7dab-a7d1-32df4d25f5da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e8838-691f-7075-ac7b-f72ad70b319f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_019e8838-691f-7dab-a7d1-32df4d25f5da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-72b9-a01d-ec85bac4ebdf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-72b9-a01d-ec85bac4ebdf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-72b9-a01d-ec85bac4ebdf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-72b9-a01d-ec85bac4ebdf" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-72b9-a01d-ec85bac4ebdf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-793d-8c9d-dd99153c0161" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e8838-691f-72b9-a01d-ec85bac4ebdf" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-793d-8c9d-dd99153c0161" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_019e8838-691f-75a9-ae1f-eea4fe9b984f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019e8838-691f-793d-8c9d-dd99153c0161" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_019e8838-691f-75a9-ae1f-eea4fe9b984f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-77a9-813d-4fb8a6eb1fd3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e8838-691f-7129-bcc8-ba58a54e444a" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-77a9-813d-4fb8a6eb1fd3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-691f-77a9-813d-4fb8a6eb1fd3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-77a9-813d-4fb8a6eb1fd3" xlink:to="loc_us-gaap_SegmentDomain_019e8838-691f-77a9-813d-4fb8a6eb1fd3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019e8838-691f-730c-8116-43b71e7b55a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019e8838-691f-77a9-813d-4fb8a6eb1fd3" xlink:to="loc_us-gaap_SegmentDomain_019e8838-691f-730c-8116-43b71e7b55a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_DesalinationSegmentMember_019e8838-691f-737f-a8a0-e8eba757e3bb" xlink:href="erii-20260630.xsd#erii_DesalinationSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019e8838-691f-730c-8116-43b71e7b55a9" xlink:to="loc_erii_DesalinationSegmentMember_019e8838-691f-737f-a8a0-e8eba757e3bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_019e8838-691f-7ba2-9c51-2afb7c69d565" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e8838-691f-7c84-afed-4db6ac53363a" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_019e8838-691f-7ba2-9c51-2afb7c69d565" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockholdersEquityShareRepurchaseProgramNarrativeDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#StockholdersEquityShareRepurchaseProgramNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockholdersEquityShareRepurchaseProgramNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_019e8838-691f-727c-9b73-3955fac05859" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfCapitalizationEquityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationEquityTable_019e8838-691f-7784-ad7c-1820da274113" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfCapitalizationEquityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_019e8838-691f-727c-9b73-3955fac05859" xlink:to="loc_us-gaap_ScheduleOfCapitalizationEquityTable_019e8838-691f-7784-ad7c-1820da274113" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-79be-a569-cc7332af5821" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityTable_019e8838-691f-7784-ad7c-1820da274113" xlink:to="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-79be-a569-cc7332af5821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-79be-a569-cc7332af5821_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-79be-a569-cc7332af5821" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-79be-a569-cc7332af5821_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-79be-a569-cc7332af5821" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ShareRepurchaseProgramMember_019e8838-691f-7528-b0e9-f39aac5deb9b" xlink:href="erii-20260630.xsd#erii_ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:to="loc_erii_ShareRepurchaseProgramMember_019e8838-691f-7528-b0e9-f39aac5deb9b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_February2025AuthorizationMember_019e8838-691f-7f85-881d-434f432f70f9" xlink:href="erii-20260630.xsd#erii_February2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:to="loc_erii_February2025AuthorizationMember_019e8838-691f-7f85-881d-434f432f70f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_August2025AuthorizationMember_019e8838-691f-7bf1-abf5-b7edb5a41d3f" xlink:href="erii-20260630.xsd#erii_August2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:to="loc_erii_August2025AuthorizationMember_019e8838-691f-7bf1-abf5-b7edb5a41d3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_May2026AuthorizationMember_019e8838-691f-7619-aef5-e95bc951a096" xlink:href="erii-20260630.xsd#erii_May2026AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7933-9225-080208c724b3" xlink:to="loc_erii_May2026AuthorizationMember_019e8838-691f-7619-aef5-e95bc951a096" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-691f-778d-b621-4e3d2d2b5947" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_019e8838-691f-727c-9b73-3955fac05859" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-691f-778d-b621-4e3d2d2b5947" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-691f-74fd-a907-be75b6c0a37d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_019e8838-691f-727c-9b73-3955fac05859" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-691f-74fd-a907-be75b6c0a37d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019e8838-691f-77e8-9828-bddf0b253c45" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_019e8838-691f-727c-9b73-3955fac05859" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019e8838-691f-77e8-9828-bddf0b253c45" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockholdersEquityStockRepurchaseProgramDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#StockholdersEquityStockRepurchaseProgramDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockholdersEquityStockRepurchaseProgramDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8838-691f-7e7e-aed3-9df32c230a2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8838-691f-7e7e-aed3-9df32c230a2a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-7263-99b6-96318a9d3380" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8838-691f-7e7e-aed3-9df32c230a2a" xlink:to="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-7263-99b6-96318a9d3380" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7263-99b6-96318a9d3380_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-7263-99b6-96318a9d3380" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-7263-99b6-96318a9d3380_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-73e5-9034-80776b85d577" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8838-691f-7263-99b6-96318a9d3380" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-73e5-9034-80776b85d577" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_August2025AuthorizationMember_019e8838-691f-79e7-9302-5a9993136cb2" xlink:href="erii-20260630.xsd#erii_August2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-73e5-9034-80776b85d577" xlink:to="loc_erii_August2025AuthorizationMember_019e8838-691f-79e7-9302-5a9993136cb2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_May2026AuthorizationMember_019eff16-3a4e-7941-8f9d-1cadccc4a841" xlink:href="erii-20260630.xsd#erii_May2026AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8838-691f-73e5-9034-80776b85d577" xlink:to="loc_erii_May2026AuthorizationMember_019eff16-3a4e-7941-8f9d-1cadccc4a841" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019e8838-691f-7f58-92e9-1ea784ef5ed8" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019e8838-691f-7f58-92e9-1ea784ef5ed8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-691f-706b-910f-28d791dd16c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_019e8838-691f-706b-910f-28d791dd16c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_SharesAcquiredAverageCostPerShareExcludingExciseTax_019fa64f-9e13-7b4c-9014-18b178553228" xlink:href="erii-20260630.xsd#erii_SharesAcquiredAverageCostPerShareExcludingExciseTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_erii_SharesAcquiredAverageCostPerShareExcludingExciseTax_019fa64f-9e13-7b4c-9014-18b178553228" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_019e8838-691f-7cf5-9673-96d9e81d0f52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_019e8838-691f-7cf5-9673-96d9e81d0f52" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-691f-71c8-9a80-8c0237ac7bee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_019e8838-691f-71c8-9a80-8c0237ac7bee" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019e8838-691f-7f54-bdfa-e72ed23dc3e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8838-691f-74e8-b98c-7b4bdddaf191" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019e8838-691f-7f54-bdfa-e72ed23dc3e6" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="erii-20260630.xsd#SubsequentEventsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/SubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_019e8838-691f-7f47-beaf-cd7dcd9d57ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_019e8838-691f-7b1d-a3ce-20549ce1ded4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_019e8838-691f-7f47-beaf-cd7dcd9d57ff" xlink:to="loc_us-gaap_SubsequentEventTable_019e8838-691f-7b1d-a3ce-20549ce1ded4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_019e8838-691f-75df-9adb-85fc7f8a06a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_019e8838-691f-7b1d-a3ce-20549ce1ded4" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_019e8838-691f-75df-9adb-85fc7f8a06a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019e8838-691f-75df-9adb-85fc7f8a06a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019e8838-691f-75df-9adb-85fc7f8a06a2" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019e8838-691f-75df-9adb-85fc7f8a06a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019e8838-691f-726b-b367-95c649a1aa81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019e8838-691f-75df-9adb-85fc7f8a06a2" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019e8838-691f-726b-b367-95c649a1aa81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_019e8838-691f-7dea-a919-08b6a3c87c13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_019e8838-691f-726b-b367-95c649a1aa81" xlink:to="loc_us-gaap_SubsequentEventMember_019e8838-691f-7dea-a919-08b6a3c87c13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019fb311-7a10-7fb4-945a-ac73fec027e6" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_019e8838-691f-7b1d-a3ce-20549ce1ded4" xlink:to="loc_srt_StatementGeographicalAxis_019fb311-7a10-7fb4-945a-ac73fec027e6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019fb311-7a10-7fb4-945a-ac73fec027e6_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019fb311-7a10-7fb4-945a-ac73fec027e6" xlink:to="loc_srt_SegmentGeographicalDomain_019fb311-7a10-7fb4-945a-ac73fec027e6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019fb311-7a10-728c-8c48-83538a98be2a" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019fb311-7a10-7fb4-945a-ac73fec027e6" xlink:to="loc_srt_SegmentGeographicalDomain_019fb311-7a10-728c-8c48-83538a98be2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_SA_019fb311-a101-72ba-99f2-7bb0342c082f" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_SA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019fb311-7a10-728c-8c48-83538a98be2a" xlink:to="loc_country_SA_019fb311-a101-72ba-99f2-7bb0342c082f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_019fb116-0867-713f-9e26-f909feccd2d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_019e8838-691f-7f47-beaf-cd7dcd9d57ff" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_019fb116-0867-713f-9e26-f909feccd2d5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RamRamananMember_019e8838-6368-759f-800f-74174dea0a76" xlink:href="erii-20260630.xsd#erii_RamRamananMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_erii_RamRamananMember_019e8838-6368-759f-800f-74174dea0a76" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
