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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:f4ddc512-4d88-4f36-a1eb-13b14ffb6e39,g:ecc065ce-0306-43ee-8bbf-ba623b5a299b-->
<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/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="erii-20251231.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_c7d97204-291b-419f-b7e6-7dda42350343" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ea35f457-26de-4af1-901d-773eff1563ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_c7d97204-291b-419f-b7e6-7dda42350343" xlink:to="loc_us-gaap_StatementTable_ea35f457-26de-4af1-901d-773eff1563ee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_76684f7f-d497-4482-b25a-888e325320a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ea35f457-26de-4af1-901d-773eff1563ee" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_76684f7f-d497-4482-b25a-888e325320a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_76684f7f-d497-4482-b25a-888e325320a9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_76684f7f-d497-4482-b25a-888e325320a9" xlink:to="loc_us-gaap_EquityComponentDomain_76684f7f-d497-4482-b25a-888e325320a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_76684f7f-d497-4482-b25a-888e325320a9" xlink:to="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_c5c9dc25-eee8-4768-82dc-921110ec3e05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:to="loc_us-gaap_CommonStockMember_c5c9dc25-eee8-4768-82dc-921110ec3e05" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_fbfae2c9-1fe4-4f8e-8035-7def0fa4bf88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_fbfae2c9-1fe4-4f8e-8035-7def0fa4bf88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_805e69f3-1b55-4d52-8458-2559e1431a57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_805e69f3-1b55-4d52-8458-2559e1431a57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_0e8ef7f7-4b9a-45d1-b48e-29a4b42f2201" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:to="loc_us-gaap_TreasuryStockCommonMember_0e8ef7f7-4b9a-45d1-b48e-29a4b42f2201" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_9a533989-4cde-4564-aebe-ba1b0f461e7e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7027a64d-c813-4d2b-90e6-60f9eb6b2fc3" xlink:to="loc_us-gaap_RetainedEarningsMember_9a533989-4cde-4564-aebe-ba1b0f461e7e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c7d97204-291b-419f-b7e6-7dda42350343" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e777d68e-42d2-45e3-a7b3-4026089da43c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_StockholdersEquity_e777d68e-42d2-45e3-a7b3-4026089da43c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_7b55b7cc-f33f-4c62-b455-8564b8dd119a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_7b55b7cc-f33f-4c62-b455-8564b8dd119a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_a9331a28-09d3-4054-9278-b2db31e67225" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_a9331a28-09d3-4054-9278-b2db31e67225" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_20ab32a8-4feb-46e6-bc53-5e50130833a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_20ab32a8-4feb-46e6-bc53-5e50130833a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_7a7dc1e6-7a32-48d3-a1cc-76104d0488a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_7a7dc1e6-7a32-48d3-a1cc-76104d0488a3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_5a0a6771-c774-41e4-bd70-4993372766da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_5a0a6771-c774-41e4-bd70-4993372766da" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3b5b6066-3256-4f03-97bb-71693e689d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_NetIncomeLoss_3b5b6066-3256-4f03-97bb-71693e689d5e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0a9cacab-0779-42bb-b7db-6589de4f066f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0a9cacab-0779-42bb-b7db-6589de4f066f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_908e0d5c-25a0-4c89-810d-07d120c493eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019c719c-6d81-77b4-b70c-0ed968090db7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_CommonStockSharesIssued_019c719c-6d81-77b4-b70c-0ed968090db7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_b31d2a89-8ec0-4aec-8eb6-bdd9e94b4cf9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_TreasuryStockCommonShares_b31d2a89-8ec0-4aec-8eb6-bdd9e94b4cf9" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_b6852832-0051-4662-a769-78477781eda3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_b6852832-0051-4662-a769-78477781eda3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_2c3b8081-101f-461a-9320-5408381a7885" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_2c3b8081-101f-461a-9320-5408381a7885" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_26c3833e-de13-4113-a77d-50ce17181a73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_26c3833e-de13-4113-a77d-50ce17181a73" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_TreasureStockSharesAcquiredCommonStockAdjustment_019c71bb-7c43-7901-a3e7-e5abf113bbdf" xlink:href="erii-20251231.xsd#erii_TreasureStockSharesAcquiredCommonStockAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_a78c6c5a-933a-4661-aaf5-ee04ed36ac83" xlink:to="loc_erii_TreasureStockSharesAcquiredCommonStockAdjustment_019c71bb-7c43-7901-a3e7-e5abf113bbdf" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019c719d-5629-7b4d-a906-e4faf88bc011" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_e5afcf6b-0562-43d5-bb19-2b6d187b3cfa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_63dc2b40-3932-45f4-9183-45b8643520f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/DescriptionofBusinessandSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#DescriptionofBusinessandSignificantAccountingPoliciesDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/DescriptionofBusinessandSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:href="erii-20251231.xsd#erii_AccountingPoliciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_AccountingPoliciesTable_aa0dd107-6dbf-4e61-9f0b-c80c909f59d1" xlink:href="erii-20251231.xsd#erii_AccountingPoliciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_erii_AccountingPoliciesTable_aa0dd107-6dbf-4e61-9f0b-c80c909f59d1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1ac285b3-efb5-4c55-adc5-d0ca948996ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_erii_AccountingPoliciesTable_aa0dd107-6dbf-4e61-9f0b-c80c909f59d1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1ac285b3-efb5-4c55-adc5-d0ca948996ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1ac285b3-efb5-4c55-adc5-d0ca948996ac_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1ac285b3-efb5-4c55-adc5-d0ca948996ac" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1ac285b3-efb5-4c55-adc5-d0ca948996ac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1ac285b3-efb5-4c55-adc5-d0ca948996ac" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_3dc4fc66-5208-4438-85c7-23127f446f79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_3dc4fc66-5208-4438-85c7-23127f446f79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EquipmentUsedInManufactureOfCeramicComponentsMember_3fc08f1e-cd7e-4143-bc33-26344f91f679" xlink:href="erii-20251231.xsd#erii_EquipmentUsedInManufactureOfCeramicComponentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_erii_EquipmentUsedInManufactureOfCeramicComponentsMember_3fc08f1e-cd7e-4143-bc33-26344f91f679" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_15ac4fba-adbd-4100-a7c1-6c496c008621" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_15ac4fba-adbd-4100-a7c1-6c496c008621" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_63d4cf77-d803-4edd-9da0-38ab4e5e5748" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_63d4cf77-d803-4edd-9da0-38ab4e5e5748" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OfficeEquipmentFurnitureAndFixturesMember_92aace24-eabf-422c-bc13-f8f424c60b13" xlink:href="erii-20251231.xsd#erii_OfficeEquipmentFurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_erii_OfficeEquipmentFurnitureAndFixturesMember_92aace24-eabf-422c-bc13-f8f424c60b13" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AutomobilesMember_31f129be-af7c-4ef1-aaf1-646e9a8124f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AutomobilesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a97c6b63-997c-4905-8d18-911f17d1b00e" xlink:to="loc_us-gaap_AutomobilesMember_31f129be-af7c-4ef1-aaf1-646e9a8124f8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_1ed41326-7826-4de6-8c74-fe9f5ac2e769" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_erii_AccountingPoliciesTable_aa0dd107-6dbf-4e61-9f0b-c80c909f59d1" xlink:to="loc_srt_RangeAxis_1ed41326-7826-4de6-8c74-fe9f5ac2e769" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1ed41326-7826-4de6-8c74-fe9f5ac2e769_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1ed41326-7826-4de6-8c74-fe9f5ac2e769" xlink:to="loc_srt_RangeMember_1ed41326-7826-4de6-8c74-fe9f5ac2e769_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a7a01380-7a7b-4245-af01-a5e8133e19bd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1ed41326-7826-4de6-8c74-fe9f5ac2e769" xlink:to="loc_srt_RangeMember_a7a01380-7a7b-4245-af01-a5e8133e19bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e27a152c-b2ff-439d-abe3-851522a2ed15" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a7a01380-7a7b-4245-af01-a5e8133e19bd" xlink:to="loc_srt_MinimumMember_e27a152c-b2ff-439d-abe3-851522a2ed15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6a5fedf5-151d-4788-bb25-98ca5e2461b1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a7a01380-7a7b-4245-af01-a5e8133e19bd" xlink:to="loc_srt_MaximumMember_6a5fedf5-151d-4788-bb25-98ca5e2461b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_bcbe19a4-8919-4013-978a-ae6e5ae5e49a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_bcbe19a4-8919-4013-978a-ae6e5ae5e49a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerPaymentPeriodAfterProductDelivery_90774b7a-d56e-4425-96a4-b1c96853c698" xlink:href="erii-20251231.xsd#erii_CustomerPaymentPeriodAfterProductDelivery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_erii_CustomerPaymentPeriodAfterProductDelivery_90774b7a-d56e-4425-96a4-b1c96853c698" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RetentionPaymentsPercentage_a01af3e9-d0c2-4042-932e-dc29ccb419fd" xlink:href="erii-20251231.xsd#erii_RetentionPaymentsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_erii_RetentionPaymentsPercentage_a01af3e9-d0c2-4042-932e-dc29ccb419fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RetentionPaymentsPaymentPeriodAfterProductDelivery_142b8415-1722-492b-9a74-bb098fca91cd" xlink:href="erii-20251231.xsd#erii_RetentionPaymentsPaymentPeriodAfterProductDelivery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_erii_RetentionPaymentsPaymentPeriodAfterProductDelivery_142b8415-1722-492b-9a74-bb098fca91cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ProductWarrantyTerm_b6715ee2-1958-4118-bbcd-64c2f9f65abf" xlink:href="erii-20251231.xsd#erii_ProductWarrantyTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_AccountingPoliciesLineItems_85020d7a-dd92-458b-ac5d-44577a945842" xlink:to="loc_erii_ProductWarrantyTerm_b6715ee2-1958-4118-bbcd-64c2f9f65abf" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueNarrativeDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#RevenueNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/RevenueNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_66bad422-9b25-43da-a40b-382cf069abd1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_66bad422-9b25-43da-a40b-382cf069abd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MegaprojectMember_7c19d791-8a29-469c-9d73-7f51d60af32f" xlink:href="erii-20251231.xsd#erii_MegaprojectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:to="loc_erii_MegaprojectMember_7c19d791-8a29-469c-9d73-7f51d60af32f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OriginalEquipmentManufacturerMember_ea0cf9c2-c36e-4025-9aee-544a9620592d" xlink:href="erii-20251231.xsd#erii_OriginalEquipmentManufacturerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:to="loc_erii_OriginalEquipmentManufacturerMember_ea0cf9c2-c36e-4025-9aee-544a9620592d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_03dc90aa-04ce-48cd-9aeb-0fb5dbfdb8c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_03dc90aa-04ce-48cd-9aeb-0fb5dbfdb8c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:to="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fce9f29e-7c62-45a2-9131-9cbd58ee977b_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:to="loc_srt_RangeMember_fce9f29e-7c62-45a2-9131-9cbd58ee977b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:to="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5c9efa20-a32c-4028-9ad6-c397c68d1ac1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:to="loc_srt_MinimumMember_5c9efa20-a32c-4028-9ad6-c397c68d1ac1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_a9d18e7c-7ca6-4993-b06d-770db6e31355" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:to="loc_srt_MaximumMember_a9d18e7c-7ca6-4993-b06d-770db6e31355" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount_07acf790-6e0d-4a97-bc80-8b62ac38818c" xlink:href="erii-20251231.xsd#erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount_07acf790-6e0d-4a97-bc80-8b62ac38818c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender_7444594e-2625-45b9-a929-bc81ceff5dda" xlink:href="erii-20251231.xsd#erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender_7444594e-2625-45b9-a929-bc81ceff5dda" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueNarrativeDetails_1" xlink:type="simple" xlink:href="erii-20251231.xsd#RevenueNarrativeDetails_1"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/RevenueNarrativeDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_66bad422-9b25-43da-a40b-382cf069abd1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_66bad422-9b25-43da-a40b-382cf069abd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_66bad422-9b25-43da-a40b-382cf069abd1" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MegaprojectMember_7c19d791-8a29-469c-9d73-7f51d60af32f" xlink:href="erii-20251231.xsd#erii_MegaprojectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:to="loc_erii_MegaprojectMember_7c19d791-8a29-469c-9d73-7f51d60af32f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OriginalEquipmentManufacturerMember_ea0cf9c2-c36e-4025-9aee-544a9620592d" xlink:href="erii-20251231.xsd#erii_OriginalEquipmentManufacturerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_bd79cd63-2a0d-48f6-9f34-847aec08ca3f" xlink:to="loc_erii_OriginalEquipmentManufacturerMember_ea0cf9c2-c36e-4025-9aee-544a9620592d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_794c13d2-0056-455f-864a-6c200260e5ab" xlink:to="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fce9f29e-7c62-45a2-9131-9cbd58ee977b_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:to="loc_srt_RangeMember_fce9f29e-7c62-45a2-9131-9cbd58ee977b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_fce9f29e-7c62-45a2-9131-9cbd58ee977b" xlink:to="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5c9efa20-a32c-4028-9ad6-c397c68d1ac1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:to="loc_srt_MinimumMember_5c9efa20-a32c-4028-9ad6-c397c68d1ac1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_a9d18e7c-7ca6-4993-b06d-770db6e31355" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6748a931-9897-4f4e-b1d2-33956ff67a3b" xlink:to="loc_srt_MaximumMember_a9d18e7c-7ca6-4993-b06d-770db6e31355" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount_07acf790-6e0d-4a97-bc80-8b62ac38818c" xlink:href="erii-20251231.xsd#erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_erii_RevenueFromContractWithCustomerRevenueBenchmarkAmount_07acf790-6e0d-4a97-bc80-8b62ac38818c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender_7444594e-2625-45b9-a929-bc81ceff5dda" xlink:href="erii-20251231.xsd#erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_076e13d2-1521-48c2-b7e2-6eedb3583160" xlink:to="loc_erii_RevenueFromContractWithCustomerShipmentTimelinePeriodPostTender_7444594e-2625-45b9-a929-bc81ceff5dda" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="erii-20251231.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_d3f9b434-afba-47e8-a366-5dabdaf410f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_0d480830-88ab-4012-a3f5-f0d602a68b67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_d3f9b434-afba-47e8-a366-5dabdaf410f6" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_0d480830-88ab-4012-a3f5-f0d602a68b67" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_cbb72e40-a634-40cd-9ebc-ed88df2687c5" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_0d480830-88ab-4012-a3f5-f0d602a68b67" xlink:to="loc_srt_StatementGeographicalAxis_cbb72e40-a634-40cd-9ebc-ed88df2687c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_cbb72e40-a634-40cd-9ebc-ed88df2687c5_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_cbb72e40-a634-40cd-9ebc-ed88df2687c5" xlink:to="loc_srt_SegmentGeographicalDomain_cbb72e40-a634-40cd-9ebc-ed88df2687c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_eeaa3388-c668-4a49-a5d1-22fec42e307f" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_cbb72e40-a634-40cd-9ebc-ed88df2687c5" xlink:to="loc_srt_SegmentGeographicalDomain_eeaa3388-c668-4a49-a5d1-22fec42e307f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MiddleEastAndAfricaMember_5f3174df-04f0-49be-b12b-e86e71ae3bf5" xlink:href="erii-20251231.xsd#erii_MiddleEastAndAfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_eeaa3388-c668-4a49-a5d1-22fec42e307f" xlink:to="loc_erii_MiddleEastAndAfricaMember_5f3174df-04f0-49be-b12b-e86e71ae3bf5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AfricaMember_019b4e7d-bd01-70b8-abee-0a6532b6f3d4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_AfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_eeaa3388-c668-4a49-a5d1-22fec42e307f" xlink:to="loc_srt_AfricaMember_019b4e7d-bd01-70b8-abee-0a6532b6f3d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OtherMember_019b4e81-5845-77c0-a02b-d48add5a705e" xlink:href="erii-20251231.xsd#erii_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_eeaa3388-c668-4a49-a5d1-22fec42e307f" xlink:to="loc_erii_OtherMember_019b4e81-5845-77c0-a02b-d48add5a705e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_dfc0e36e-3243-4899-9d5b-cb57bf98f824" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_0d480830-88ab-4012-a3f5-f0d602a68b67" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_dfc0e36e-3243-4899-9d5b-cb57bf98f824" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_dfc0e36e-3243-4899-9d5b-cb57bf98f824_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_dfc0e36e-3243-4899-9d5b-cb57bf98f824" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_dfc0e36e-3243-4899-9d5b-cb57bf98f824_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_031787b0-74bf-417d-858f-c7857303b751" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_dfc0e36e-3243-4899-9d5b-cb57bf98f824" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_031787b0-74bf-417d-858f-c7857303b751" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MegaprojectMember_9f4432c8-e674-48b7-bff8-b5328c9d2445" xlink:href="erii-20251231.xsd#erii_MegaprojectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_031787b0-74bf-417d-858f-c7857303b751" xlink:to="loc_erii_MegaprojectMember_9f4432c8-e674-48b7-bff8-b5328c9d2445" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OriginalEquipmentManufacturerMember_5e768d4f-9174-42b4-9066-e1b6e10faf47" xlink:href="erii-20251231.xsd#erii_OriginalEquipmentManufacturerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_031787b0-74bf-417d-858f-c7857303b751" xlink:to="loc_erii_OriginalEquipmentManufacturerMember_5e768d4f-9174-42b4-9066-e1b6e10faf47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_AftermarketMember_54b63154-9c59-4934-9e13-075c22002c61" xlink:href="erii-20251231.xsd#erii_AftermarketMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_031787b0-74bf-417d-858f-c7857303b751" xlink:to="loc_erii_AftermarketMember_54b63154-9c59-4934-9e13-075c22002c61" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a4be02df-f4e5-4638-827f-9b41d1b79328" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_0d480830-88ab-4012-a3f5-f0d602a68b67" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a4be02df-f4e5-4638-827f-9b41d1b79328" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a4be02df-f4e5-4638-827f-9b41d1b79328_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a4be02df-f4e5-4638-827f-9b41d1b79328" xlink:to="loc_us-gaap_SegmentDomain_a4be02df-f4e5-4638-827f-9b41d1b79328_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6df1451b-9e62-41eb-b65f-1a9bae31ac40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a4be02df-f4e5-4638-827f-9b41d1b79328" xlink:to="loc_us-gaap_SegmentDomain_6df1451b-9e62-41eb-b65f-1a9bae31ac40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WaterSegmentMember_22b7b157-3a04-4419-85fe-0adfb2b038b3" xlink:href="erii-20251231.xsd#erii_WaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6df1451b-9e62-41eb-b65f-1a9bae31ac40" xlink:to="loc_erii_WaterSegmentMember_22b7b157-3a04-4419-85fe-0adfb2b038b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmergingTechnologiesSegmentMember_0fceb470-d94d-493d-8435-0b8bf73b270a" xlink:href="erii-20251231.xsd#erii_EmergingTechnologiesSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6df1451b-9e62-41eb-b65f-1a9bae31ac40" xlink:to="loc_erii_EmergingTechnologiesSegmentMember_0fceb470-d94d-493d-8435-0b8bf73b270a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5fe723c6-ad5b-4595-8916-57f15facc85f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_d3f9b434-afba-47e8-a366-5dabdaf410f6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5fe723c6-ad5b-4595-8916-57f15facc85f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="erii-20251231.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_e6562396-4cbf-4565-baac-29495a8b107c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_b574585e-c254-4584-acc7-a2cbe0236a59" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_b574585e-c254-4584-acc7-a2cbe0236a59" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_8509138c-fd34-4537-9698-6516487277ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_b574585e-c254-4584-acc7-a2cbe0236a59" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_8509138c-fd34-4537-9698-6516487277ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_c3dde8f7-b671-42fd-aca2-927ec587923a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_c3dde8f7-b671-42fd-aca2-927ec587923a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c5c19-90fd-707b-a11e-bd0b489272e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c5c19-90fd-707b-a11e-bd0b489272e0" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/RevenueScheduleofRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="erii-20251231.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_e6562396-4cbf-4565-baac-29495a8b107c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_b574585e-c254-4584-acc7-a2cbe0236a59" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_b574585e-c254-4584-acc7-a2cbe0236a59" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_c3dde8f7-b671-42fd-aca2-927ec587923a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_c3dde8f7-b671-42fd-aca2-927ec587923a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c5c19-90fd-707b-a11e-bd0b489272e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_e6562396-4cbf-4565-baac-29495a8b107c" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019c5c19-90fd-707b-a11e-bd0b489272e0" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomeLossPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_a7de2605-c82c-4949-8716-4e796a17a4ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_54f5feec-b914-46ca-878d-a55ceedc42be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_a7de2605-c82c-4949-8716-4e796a17a4ea" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_54f5feec-b914-46ca-878d-a55ceedc42be" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_3e0309be-0364-49eb-aa22-cfe2f6ce070b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_54f5feec-b914-46ca-878d-a55ceedc42be" xlink:to="loc_us-gaap_AwardTypeAxis_3e0309be-0364-49eb-aa22-cfe2f6ce070b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3e0309be-0364-49eb-aa22-cfe2f6ce070b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3e0309be-0364-49eb-aa22-cfe2f6ce070b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3e0309be-0364-49eb-aa22-cfe2f6ce070b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_13810b05-6c66-4e74-bd5b-3106e3583110" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3e0309be-0364-49eb-aa22-cfe2f6ce070b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_13810b05-6c66-4e74-bd5b-3106e3583110" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_d7b1ad49-a0a5-4d72-8140-39e558377063" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_13810b05-6c66-4e74-bd5b-3106e3583110" xlink:to="loc_us-gaap_EmployeeStockOptionMember_d7b1ad49-a0a5-4d72-8140-39e558377063" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_6de144b7-78a7-47cf-8c03-abc6ebdf5d27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_13810b05-6c66-4e74-bd5b-3106e3583110" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_6de144b7-78a7-47cf-8c03-abc6ebdf5d27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAbstract_af07df84-b56b-4a70-928a-1cf81eaeacd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_a7de2605-c82c-4949-8716-4e796a17a4ea" xlink:to="loc_us-gaap_NetIncomeLossAbstract_af07df84-b56b-4a70-928a-1cf81eaeacd4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5a5193d6-ffd6-4601-99b7-e52c02ce400c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAbstract_af07df84-b56b-4a70-928a-1cf81eaeacd4" xlink:to="loc_us-gaap_NetIncomeLoss_5a5193d6-ffd6-4601-99b7-e52c02ce400c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_c92be284-81e5-4f5f-98be-0277da7cf572" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_a7de2605-c82c-4949-8716-4e796a17a4ea" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_c92be284-81e5-4f5f-98be-0277da7cf572" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_7dbdfe10-857d-418b-8ddd-f61fe797a397" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_c92be284-81e5-4f5f-98be-0277da7cf572" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_7dbdfe10-857d-418b-8ddd-f61fe797a397" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c1b646c9-c413-4b78-a486-a8393f43809d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_c92be284-81e5-4f5f-98be-0277da7cf572" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c1b646c9-c413-4b78-a486-a8393f43809d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_14385936-cd9a-435d-b8a2-af7d06cafe79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_c92be284-81e5-4f5f-98be-0277da7cf572" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_14385936-cd9a-435d-b8a2-af7d06cafe79" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_NumberOfSharesUsedInPerShareCalculations_1b8eea5d-29ae-4ca4-9a22-4eb3c2530c95" xlink:href="erii-20251231.xsd#erii_NumberOfSharesUsedInPerShareCalculations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_a7de2605-c82c-4949-8716-4e796a17a4ea" xlink:to="loc_erii_NumberOfSharesUsedInPerShareCalculations_1b8eea5d-29ae-4ca4-9a22-4eb3c2530c95" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_f5ee9224-4d65-4af6-9ed0-d48951c93968" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_NumberOfSharesUsedInPerShareCalculations_1b8eea5d-29ae-4ca4-9a22-4eb3c2530c95" xlink:to="loc_us-gaap_EarningsPerShareBasic_f5ee9224-4d65-4af6-9ed0-d48951c93968" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_00e78f71-048d-468e-93a1-db4cce93fc40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_NumberOfSharesUsedInPerShareCalculations_1b8eea5d-29ae-4ca4-9a22-4eb3c2530c95" xlink:to="loc_us-gaap_EarningsPerShareDiluted_00e78f71-048d-468e-93a1-db4cce93fc40" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofAllowanceforDoubtfulAccountsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#OtherFinancialInformationScheduleofAllowanceforDoubtfulAccountsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofAllowanceforDoubtfulAccountsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_887e64fa-af4d-4444-9137-f22ae1837181" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ValuationAndQualifyingAccountsDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_3f8966bc-524e-49d6-881a-7509e5ecb346" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ValuationAndQualifyingAccountsDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_887e64fa-af4d-4444-9137-f22ae1837181" xlink:to="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_3f8966bc-524e-49d6-881a-7509e5ecb346" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_68fb0589-94be-409d-bb16-4db3f66ad5fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_3f8966bc-524e-49d6-881a-7509e5ecb346" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_68fb0589-94be-409d-bb16-4db3f66ad5fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_68fb0589-94be-409d-bb16-4db3f66ad5fe_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_68fb0589-94be-409d-bb16-4db3f66ad5fe" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_68fb0589-94be-409d-bb16-4db3f66ad5fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_d6d91f60-31de-45ec-b7a2-96481b67abcf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_68fb0589-94be-409d-bb16-4db3f66ad5fe" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_d6d91f60-31de-45ec-b7a2-96481b67abcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForCreditLossMember_2e5f7ac5-129c-4450-98b9-d2e8e4a84b20" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForCreditLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_d6d91f60-31de-45ec-b7a2-96481b67abcf" xlink:to="loc_us-gaap_AllowanceForCreditLossMember_2e5f7ac5-129c-4450-98b9-d2e8e4a84b20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_c23595ab-72c8-439e-8044-a9b827759513" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_887e64fa-af4d-4444-9137-f22ae1837181" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_c23595ab-72c8-439e-8044-a9b827759513" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_a664422b-fc9c-494e-8c98-c613b9685d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_c23595ab-72c8-439e-8044-a9b827759513" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_a664422b-fc9c-494e-8c98-c613b9685d5b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_201c7dea-b7ca-42dc-8cd9-9d6efd8449bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_c23595ab-72c8-439e-8044-a9b827759513" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_201c7dea-b7ca-42dc-8cd9-9d6efd8449bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_b882b75f-666a-4015-abea-e919f5b5c830" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_c23595ab-72c8-439e-8044-a9b827759513" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_b882b75f-666a-4015-abea-e919f5b5c830" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_feabbe3c-c001-4a30-b32c-7e823ea5eed2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#OtherFinancialInformationScheduleofPropertyandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofPropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_826afbd4-cfa7-4a31-8135-4ffc388517c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_eb3f98e8-357c-4800-b67c-0d1bffe2a2e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_826afbd4-cfa7-4a31-8135-4ffc388517c9" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_eb3f98e8-357c-4800-b67c-0d1bffe2a2e9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_eb3f98e8-357c-4800-b67c-0d1bffe2a2e9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9f9e3082-9ec1-4b01-91b9-cf1767d5cd6a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_c2a1059a-a90c-4ac7-bb9c-9e8f1b366184" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_c2a1059a-a90c-4ac7-bb9c-9e8f1b366184" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_40ebb37e-3bfc-459c-a54b-4807f577c6cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_40ebb37e-3bfc-459c-a54b-4807f577c6cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_aa445dec-644f-4a8f-b899-9b9f6673eeda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_aa445dec-644f-4a8f-b899-9b9f6673eeda" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_dce1ab51-1402-481d-9d1b-0df509f43124" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_dce1ab51-1402-481d-9d1b-0df509f43124" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AutomobilesMember_8ad4b94d-7aab-49a7-8626-a13be5b9dae3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AutomobilesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_AutomobilesMember_8ad4b94d-7aab-49a7-8626-a13be5b9dae3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_3114a7c1-7d70-4c2e-95c0-4a6932acbb26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_11b0582e-ad79-49f2-9319-c2bdb40c7ea1" xlink:to="loc_us-gaap_ConstructionInProgressMember_3114a7c1-7d70-4c2e-95c0-4a6932acbb26" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_3ace085e-77f4-4183-b77d-e6056f55f915" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_826afbd4-cfa7-4a31-8135-4ffc388517c9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_3ace085e-77f4-4183-b77d-e6056f55f915" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_60e3e0a8-ce56-454d-8f75-ef0103cf9a13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_826afbd4-cfa7-4a31-8135-4ffc388517c9" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_60e3e0a8-ce56-454d-8f75-ef0103cf9a13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1cb841c5-2c18-4c79-9f2d-c71bf865d3fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_826afbd4-cfa7-4a31-8135-4ffc388517c9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1cb841c5-2c18-4c79-9f2d-c71bf865d3fb" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofRestructuringDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#OtherFinancialInformationScheduleofRestructuringDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/OtherFinancialInformationScheduleofRestructuringDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_4c860c3b-9995-49a7-b229-8188c1f33b38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_7c46ea1b-ee07-41f7-8228-370952ef6ba5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_4c860c3b-9995-49a7-b229-8188c1f33b38" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_7c46ea1b-ee07-41f7-8228-370952ef6ba5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_dbb51844-4c50-4faa-9486-884286bbfaf8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_7c46ea1b-ee07-41f7-8228-370952ef6ba5" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_dbb51844-4c50-4faa-9486-884286bbfaf8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_dbb51844-4c50-4faa-9486-884286bbfaf8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_dbb51844-4c50-4faa-9486-884286bbfaf8" xlink:to="loc_us-gaap_SegmentDomain_dbb51844-4c50-4faa-9486-884286bbfaf8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_dc43fa7c-9412-44dd-9cf6-5e3503912017" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_dbb51844-4c50-4faa-9486-884286bbfaf8" xlink:to="loc_us-gaap_SegmentDomain_dc43fa7c-9412-44dd-9cf6-5e3503912017" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WaterSegmentMember_ce88ecb9-a6e1-42d9-a702-b36036088b48" xlink:href="erii-20251231.xsd#erii_WaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dc43fa7c-9412-44dd-9cf6-5e3503912017" xlink:to="loc_erii_WaterSegmentMember_ce88ecb9-a6e1-42d9-a702-b36036088b48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmergingTechnologiesSegmentMember_9d2d5993-8dba-4cb8-8e9c-ab1b8b4a5871" xlink:href="erii-20251231.xsd#erii_EmergingTechnologiesSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dc43fa7c-9412-44dd-9cf6-5e3503912017" xlink:to="loc_erii_EmergingTechnologiesSegmentMember_9d2d5993-8dba-4cb8-8e9c-ab1b8b4a5871" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_7f9885bb-a110-47b0-9907-f0ee61ef4454" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_7c46ea1b-ee07-41f7-8228-370952ef6ba5" xlink:to="loc_srt_ConsolidationItemsAxis_7f9885bb-a110-47b0-9907-f0ee61ef4454" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_7f9885bb-a110-47b0-9907-f0ee61ef4454_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_7f9885bb-a110-47b0-9907-f0ee61ef4454" xlink:to="loc_srt_ConsolidationItemsDomain_7f9885bb-a110-47b0-9907-f0ee61ef4454_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_f66a2a96-8b0d-4fbe-a770-6e500fd0cbbf" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_7f9885bb-a110-47b0-9907-f0ee61ef4454" xlink:to="loc_srt_ConsolidationItemsDomain_f66a2a96-8b0d-4fbe-a770-6e500fd0cbbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_ba0ed48d-a03d-4012-ac01-ad0a10141227" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_f66a2a96-8b0d-4fbe-a770-6e500fd0cbbf" xlink:to="loc_us-gaap_OperatingSegmentsMember_ba0ed48d-a03d-4012-ac01-ad0a10141227" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_1e33e312-164b-4b25-b690-a4d8c434a10c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_f66a2a96-8b0d-4fbe-a770-6e500fd0cbbf" xlink:to="loc_us-gaap_CorporateNonSegmentMember_1e33e312-164b-4b25-b690-a4d8c434a10c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_abae6dc6-ef1f-4de3-9aff-c5852f82b1e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_4c860c3b-9995-49a7-b229-8188c1f33b38" xlink:to="loc_us-gaap_RestructuringCharges_abae6dc6-ef1f-4de3-9aff-c5852f82b1e2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/OtherFinancialInformationAccumulatedOtherComprehensiveLossIncomeDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#OtherFinancialInformationAccumulatedOtherComprehensiveLossIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/OtherFinancialInformationAccumulatedOtherComprehensiveLossIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019b25ff-4c1c-7717-bfa7-5fb419293c8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019b25ff-4c1c-774a-868a-3f0752bae0a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019b25ff-4c1c-7717-bfa7-5fb419293c8a" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019b25ff-4c1c-774a-868a-3f0752bae0a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019b25ff-4c1c-774a-868a-3f0752bae0a3" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a" xlink:to="loc_us-gaap_EquityComponentDomain_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019b25ff-4c1c-7569-bc1b-683c14a8192a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019b25ff-4c1c-7d7c-95ad-ac8be73d4a0a" xlink:to="loc_us-gaap_EquityComponentDomain_019b25ff-4c1c-7569-bc1b-683c14a8192a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019b2600-12ba-77ac-88b6-a66afc5267dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019b25ff-4c1c-7569-bc1b-683c14a8192a" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019b2600-12ba-77ac-88b6-a66afc5267dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_019b25ff-4c1c-74fe-8b43-b97df7c15cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019b25ff-4c1c-7717-bfa7-5fb419293c8a" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_019b25ff-4c1c-74fe-8b43-b97df7c15cdf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019bbcd6-9daa-7693-b6d6-07f2e31ddf47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019b25ff-4c1c-7717-bfa7-5fb419293c8a" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019bbcd6-9daa-7693-b6d6-07f2e31ddf47" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsNarrativeDetails" xlink:type="simple" xlink:href="erii-20251231.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_bff48e7d-581c-42c0-8c17-4f523a2a0608" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9bb5dd95-7e4e-457d-9f76-748b7541c8ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_bff48e7d-581c-42c0-8c17-4f523a2a0608" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9bb5dd95-7e4e-457d-9f76-748b7541c8ba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7c69cd3e-717d-4e60-8859-f26e7b386363" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9bb5dd95-7e4e-457d-9f76-748b7541c8ba" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7c69cd3e-717d-4e60-8859-f26e7b386363" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_7c69cd3e-717d-4e60-8859-f26e7b386363_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7c69cd3e-717d-4e60-8859-f26e7b386363" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_7c69cd3e-717d-4e60-8859-f26e7b386363_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_7e8f194b-982a-462b-89c5-0b8f6f44a5f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7c69cd3e-717d-4e60-8859-f26e7b386363" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_7e8f194b-982a-462b-89c5-0b8f6f44a5f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_6b2c829b-b445-46ed-8b20-c2ea4519d76a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_7e8f194b-982a-462b-89c5-0b8f6f44a5f0" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_6b2c829b-b445-46ed-8b20-c2ea4519d76a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9089330e-a814-4d97-9055-957d51804d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9bb5dd95-7e4e-457d-9f76-748b7541c8ba" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9089330e-a814-4d97-9055-957d51804d3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9089330e-a814-4d97-9055-957d51804d3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9089330e-a814-4d97-9055-957d51804d3a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9089330e-a814-4d97-9055-957d51804d3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b6ab93b5-3645-4e69-afdd-cd7f8f8b34b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9089330e-a814-4d97-9055-957d51804d3a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b6ab93b5-3645-4e69-afdd-cd7f8f8b34b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_2363c705-0233-44c8-988b-9ba2bab2356a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b6ab93b5-3645-4e69-afdd-cd7f8f8b34b1" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_2363c705-0233-44c8-988b-9ba2bab2356a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_e9f85aab-8373-41e3-84d0-bf3a68abeca7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialLiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_bff48e7d-581c-42c0-8c17-4f523a2a0608" xlink:to="loc_us-gaap_FinancialLiabilitiesFairValueDisclosure_e9f85aab-8373-41e3-84d0-bf3a68abeca7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_ab78c1a9-b423-4955-8326-75dc3b217064" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_bff48e7d-581c-42c0-8c17-4f523a2a0608" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_ab78c1a9-b423-4955-8326-75dc3b217064" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsScheduleofAmortizedCostandFairValueofAvailableforSaleSecuritiesDetails" xlink:type="simple" xlink:href="erii-20251231.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_dee49af3-5ede-4fc0-b618-566c50267454" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f4501c1d-e6e7-4d05-8f92-7ea95f008545" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_dee49af3-5ede-4fc0-b618-566c50267454" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f4501c1d-e6e7-4d05-8f92-7ea95f008545" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f4501c1d-e6e7-4d05-8f92-7ea95f008545" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f0c3a71-a128-4dff-8ff2-a4e7403962b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba5184ee-4ed9-4e2d-bed2-cc3cc6c79452" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f0c3a71-a128-4dff-8ff2-a4e7403962b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_7ac90bc1-7a6c-49b8-859a-ee2897ff4462" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f0c3a71-a128-4dff-8ff2-a4e7403962b0" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_7ac90bc1-7a6c-49b8-859a-ee2897ff4462" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2fcbd4e5-3c13-4854-8322-e66528e4fa8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f0c3a71-a128-4dff-8ff2-a4e7403962b0" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2fcbd4e5-3c13-4854-8322-e66528e4fa8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_68887fe7-3a99-4849-9ac6-6af76b531322" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f4501c1d-e6e7-4d05-8f92-7ea95f008545" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_68887fe7-3a99-4849-9ac6-6af76b531322" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_68887fe7-3a99-4849-9ac6-6af76b531322_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_68887fe7-3a99-4849-9ac6-6af76b531322" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_68887fe7-3a99-4849-9ac6-6af76b531322_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_f8dab276-b1a0-4ba3-acff-4ccb1c11ef60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_68887fe7-3a99-4849-9ac6-6af76b531322" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_f8dab276-b1a0-4ba3-acff-4ccb1c11ef60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_261b68b3-f1d8-4c69-850a-fb7a4f56c007" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_f8dab276-b1a0-4ba3-acff-4ccb1c11ef60" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_261b68b3-f1d8-4c69-850a-fb7a4f56c007" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ShortTermAndLongTermInvestmentsMember_fa64dc36-c420-4cb3-a5f5-905af6137e89" xlink:href="erii-20251231.xsd#erii_ShortTermAndLongTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_f8dab276-b1a0-4ba3-acff-4ccb1c11ef60" xlink:to="loc_erii_ShortTermAndLongTermInvestmentsMember_fa64dc36-c420-4cb3-a5f5-905af6137e89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_314ad1d1-17d7-43bf-b330-397057d3598a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_ShortTermAndLongTermInvestmentsMember_fa64dc36-c420-4cb3-a5f5-905af6137e89" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_314ad1d1-17d7-43bf-b330-397057d3598a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_LongtermInvestmentMember_952f2d0f-412d-49d7-beff-21da2a4b0d27" xlink:href="erii-20251231.xsd#erii_LongtermInvestmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_erii_ShortTermAndLongTermInvestmentsMember_fa64dc36-c420-4cb3-a5f5-905af6137e89" xlink:to="loc_erii_LongtermInvestmentMember_952f2d0f-412d-49d7-beff-21da2a4b0d27" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_7d89e476-231b-4e52-abd0-e8a3965d6a30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f4501c1d-e6e7-4d05-8f92-7ea95f008545" xlink:to="loc_us-gaap_FinancialInstrumentAxis_7d89e476-231b-4e52-abd0-e8a3965d6a30" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7d89e476-231b-4e52-abd0-e8a3965d6a30_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7d89e476-231b-4e52-abd0-e8a3965d6a30" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7d89e476-231b-4e52-abd0-e8a3965d6a30_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7d89e476-231b-4e52-abd0-e8a3965d6a30" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_c8528d8b-4cc8-4d7d-9b6d-6a7aefe1c2d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:to="loc_us-gaap_MoneyMarketFundsMember_c8528d8b-4cc8-4d7d-9b6d-6a7aefe1c2d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_68a96364-24b8-4d7e-b627-6ba6219c476b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_68a96364-24b8-4d7e-b627-6ba6219c476b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_cfc62920-77e2-4fbe-8de4-26e0aac1961f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_cfc62920-77e2-4fbe-8de4-26e0aac1961f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_MunicipalNotesAndBondsMember_c3e783c6-5461-4e16-bd79-c0f3c78efe4c" xlink:href="erii-20251231.xsd#erii_MunicipalNotesAndBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a9e90616-496e-485c-b47d-68981b7e0cb4" xlink:to="loc_erii_MunicipalNotesAndBondsMember_c3e783c6-5461-4e16-bd79-c0f3c78efe4c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_f2289507-5728-4470-abd8-109abe0b2835" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_dee49af3-5ede-4fc0-b618-566c50267454" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_f2289507-5728-4470-abd8-109abe0b2835" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019bbd95-13d4-7c74-8064-a6b7b3105bcc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_f2289507-5728-4470-abd8-109abe0b2835" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019bbd95-13d4-7c74-8064-a6b7b3105bcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b2bc356a-87db-45da-9f39-a1678f6cab06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract_f2289507-5728-4470-abd8-109abe0b2835" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b2bc356a-87db-45da-9f39-a1678f6cab06" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsSalesofAvailableforSaleInvestmentsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#InvestmentsandFairValueMeasurementsSalesofAvailableforSaleInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/InvestmentsandFairValueMeasurementsSalesofAvailableforSaleInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c2d8e-d6d8-72ff-b86d-383fadeb52f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c2d8e-d6d8-75f5-89ab-7d5b68206faf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c2d8e-d6d8-72ff-b86d-383fadeb52f3" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c2d8e-d6d8-75f5-89ab-7d5b68206faf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019c2d8e-d6d8-75f5-89ab-7d5b68206faf" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c2d8e-d6d8-795f-9a08-eac4c2f66e29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019c2d8e-d6d8-7a12-812f-ed1fddd8d5e8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c2d8e-d6d8-795f-9a08-eac4c2f66e29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019c2d8e-d6d8-7254-8f4c-11cf50e3adfa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019c2d8e-d6d8-795f-9a08-eac4c2f66e29" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019c2d8e-d6d8-7254-8f4c-11cf50e3adfa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019c2d8e-d6d8-7065-ac16-346a40b2b0f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019c2d8e-d6d8-72ff-b86d-383fadeb52f3" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019c2d8e-d6d8-7065-ac16-346a40b2b0f1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/LinesofCreditDetails" xlink:type="simple" xlink:href="erii-20251231.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_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_085ce744-ea05-4185-9c36-9409fd9c6fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_085ce744-ea05-4185-9c36-9409fd9c6fc0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_085ce744-ea05-4185-9c36-9409fd9c6fc0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_085ce744-ea05-4185-9c36-9409fd9c6fc0" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_085ce744-ea05-4185-9c36-9409fd9c6fc0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_1f2f0d1b-b19c-4c88-9089-923856dda332" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLenderDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_085ce744-ea05-4185-9c36-9409fd9c6fc0" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_1f2f0d1b-b19c-4c88-9089-923856dda332" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_JPMorganChaseBankNAMember_9ffb9b6e-c317-428a-a022-7f2a3f6fc780" xlink:href="erii-20251231.xsd#erii_JPMorganChaseBankNAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_1f2f0d1b-b19c-4c88-9089-923856dda332" xlink:to="loc_erii_JPMorganChaseBankNAMember_9ffb9b6e-c317-428a-a022-7f2a3f6fc780" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_98596baf-6bdb-4460-9f3e-e6617203f385" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_98596baf-6bdb-4460-9f3e-e6617203f385" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_98596baf-6bdb-4460-9f3e-e6617203f385_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_98596baf-6bdb-4460-9f3e-e6617203f385" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_98596baf-6bdb-4460-9f3e-e6617203f385_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_32189285-7995-4f65-a922-6afb9e32b83c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_98596baf-6bdb-4460-9f3e-e6617203f385" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_32189285-7995-4f65-a922-6afb9e32b83c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_2b4b35ab-e89a-4021-a587-60dc95f4bd48" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_32189285-7995-4f65-a922-6afb9e32b83c" xlink:to="loc_us-gaap_LineOfCreditMember_2b4b35ab-e89a-4021-a587-60dc95f4bd48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_9ac58dcc-5041-4d0e-942d-a82382b96390" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_us-gaap_DebtInstrumentAxis_9ac58dcc-5041-4d0e-942d-a82382b96390" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9ac58dcc-5041-4d0e-942d-a82382b96390_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_9ac58dcc-5041-4d0e-942d-a82382b96390" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9ac58dcc-5041-4d0e-942d-a82382b96390_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e2974ff8-31f8-4409-8084-59a3f1ef47f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_9ac58dcc-5041-4d0e-942d-a82382b96390" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e2974ff8-31f8-4409-8084-59a3f1ef47f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CommittedRevolvingCreditLineMember_b6c41be5-ed04-42d5-b1b3-61a8cbbeadea" xlink:href="erii-20251231.xsd#erii_CommittedRevolvingCreditLineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e2974ff8-31f8-4409-8084-59a3f1ef47f3" xlink:to="loc_erii_CommittedRevolvingCreditLineMember_b6c41be5-ed04-42d5-b1b3-61a8cbbeadea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EventOfDefaultMember_ef9bdc93-5b65-4d50-8930-d4301aa6f33b" xlink:href="erii-20251231.xsd#erii_EventOfDefaultMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e2974ff8-31f8-4409-8084-59a3f1ef47f3" xlink:to="loc_erii_EventOfDefaultMember_ef9bdc93-5b65-4d50-8930-d4301aa6f33b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_44aa50fb-df12-45d0-9844-c36b10ede6a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_us-gaap_CreditFacilityAxis_44aa50fb-df12-45d0-9844-c36b10ede6a2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_44aa50fb-df12-45d0-9844-c36b10ede6a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_44aa50fb-df12-45d0-9844-c36b10ede6a2" xlink:to="loc_us-gaap_CreditFacilityDomain_44aa50fb-df12-45d0-9844-c36b10ede6a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_cd7c1632-03b4-4caf-80e0-6e595dd610d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_44aa50fb-df12-45d0-9844-c36b10ede6a2" xlink:to="loc_us-gaap_CreditFacilityDomain_cd7c1632-03b4-4caf-80e0-6e595dd610d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_763f0e42-24c1-4544-80fc-e4740c589c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_cd7c1632-03b4-4caf-80e0-6e595dd610d4" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_763f0e42-24c1-4544-80fc-e4740c589c5e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_6cbde32d-3c99-4960-a779-62b1e279d46e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_cd7c1632-03b4-4caf-80e0-6e595dd610d4" xlink:to="loc_us-gaap_LetterOfCreditMember_6cbde32d-3c99-4960-a779-62b1e279d46e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_c4deffd6-4438-41bf-b054-a938c7cdb8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StandbyLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_cd7c1632-03b4-4caf-80e0-6e595dd610d4" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_c4deffd6-4438-41bf-b054-a938c7cdb8e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_148af889-ee6c-49b0-9821-26ae20478b58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_us-gaap_VariableRateAxis_148af889-ee6c-49b0-9821-26ae20478b58" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_148af889-ee6c-49b0-9821-26ae20478b58_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_148af889-ee6c-49b0-9821-26ae20478b58" xlink:to="loc_us-gaap_VariableRateDomain_148af889-ee6c-49b0-9821-26ae20478b58_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_d45d5eb3-e1e8-4206-b303-0f68aafa9e77" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_148af889-ee6c-49b0-9821-26ae20478b58" xlink:to="loc_us-gaap_VariableRateDomain_d45d5eb3-e1e8-4206-b303-0f68aafa9e77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EurodollarMember_9f590f72-6997-4adf-b16b-2604910efb88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EurodollarMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_d45d5eb3-e1e8-4206-b303-0f68aafa9e77" xlink:to="loc_us-gaap_EurodollarMember_9f590f72-6997-4adf-b16b-2604910efb88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_4ea99739-92d8-4c2f-8dd9-037ca0b7e167" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_d45d5eb3-e1e8-4206-b303-0f68aafa9e77" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_4ea99739-92d8-4c2f-8dd9-037ca0b7e167" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4e781ab0-f516-4f46-b5a7-741ee87e154a" xlink:to="loc_srt_RangeAxis_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e" xlink:to="loc_srt_RangeMember_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_bf59b4d5-111d-4353-8611-47f1bd517cbf" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_cfb8c888-4cb5-43c3-bc12-cecbaea9a64e" xlink:to="loc_srt_RangeMember_bf59b4d5-111d-4353-8611-47f1bd517cbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_4d3003f1-25b9-46fc-a963-86f09b71b7b8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_bf59b4d5-111d-4353-8611-47f1bd517cbf" xlink:to="loc_srt_MinimumMember_4d3003f1-25b9-46fc-a963-86f09b71b7b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ee8ad1d3-3c15-4b9b-a054-a22be0653e0a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_bf59b4d5-111d-4353-8611-47f1bd517cbf" xlink:to="loc_srt_MaximumMember_ee8ad1d3-3c15-4b9b-a054-a22be0653e0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_b4662406-80c1-469d-a266-af77a3f51e0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_b4662406-80c1-469d-a266-af77a3f51e0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_DebtInstrumentCovenantComplianceLeverageRatioNetDebtToAdjustedEBITDA_cbda3bb8-e438-451b-9306-66a5dc07ea0e" xlink:href="erii-20251231.xsd#erii_DebtInstrumentCovenantComplianceLeverageRatioNetDebtToAdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_erii_DebtInstrumentCovenantComplianceLeverageRatioNetDebtToAdjustedEBITDA_cbda3bb8-e438-451b-9306-66a5dc07ea0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_68d8e08d-a91a-4d22-9f22-ca02b78996c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_68d8e08d-a91a-4d22-9f22-ca02b78996c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_bdee7a89-463a-4b78-920d-f2e73786e307" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_bdee7a89-463a-4b78-920d-f2e73786e307" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_24d91103-193f-4fca-9f66-2e90f35a22a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_24d91103-193f-4fca-9f66-2e90f35a22a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_47a28706-d3ee-47a5-a3d3-fd5a9b8b4e0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_LongTermDebt_47a28706-d3ee-47a5-a3d3-fd5a9b8b4e0b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_LineOfCreditFacilityCashCollateralPercentOfExposure_7b7c6212-cdf0-4303-9435-92d2b3629240" xlink:href="erii-20251231.xsd#erii_LineOfCreditFacilityCashCollateralPercentOfExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_erii_LineOfCreditFacilityCashCollateralPercentOfExposure_7b7c6212-cdf0-4303-9435-92d2b3629240" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_d839b166-1386-45c1-9db3-83b27b9c3353" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_DebtInstrumentTerm_d839b166-1386-45c1-9db3-83b27b9c3353" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherSundryLiabilities_c50b495b-a5db-4f45-b00a-131f92c316a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherSundryLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_f7e43aaf-fabb-4143-b9e8-7444fd5c30b8" xlink:to="loc_us-gaap_OtherSundryLiabilities_c50b495b-a5db-4f45-b00a-131f92c316a8" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/LinesofCreditLettersofCreditOutstandingDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#LinesofCreditLettersofCreditOutstandingDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/LinesofCreditLettersofCreditOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_13be1689-8f3b-431c-8ee2-f23946cfefcc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_ed45829e-612a-434f-93d9-32e3f0a4033e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_13be1689-8f3b-431c-8ee2-f23946cfefcc" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_ed45829e-612a-434f-93d9-32e3f0a4033e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_1eb6e392-62a2-4887-9f61-f7562836f82e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ed45829e-612a-434f-93d9-32e3f0a4033e" xlink:to="loc_us-gaap_CreditFacilityAxis_1eb6e392-62a2-4887-9f61-f7562836f82e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_1eb6e392-62a2-4887-9f61-f7562836f82e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_1eb6e392-62a2-4887-9f61-f7562836f82e" xlink:to="loc_us-gaap_CreditFacilityDomain_1eb6e392-62a2-4887-9f61-f7562836f82e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_aa9d1224-08ca-4db4-821b-b6fbeaaefdb4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_1eb6e392-62a2-4887-9f61-f7562836f82e" xlink:to="loc_us-gaap_CreditFacilityDomain_aa9d1224-08ca-4db4-821b-b6fbeaaefdb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_c1c343bc-58af-4ffd-baa2-533721b62fb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StandbyLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_aa9d1224-08ca-4db4-821b-b6fbeaaefdb4" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_c1c343bc-58af-4ffd-baa2-533721b62fb7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_d32a8de5-249f-46c6-a2c9-d0fcccca9307" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_13be1689-8f3b-431c-8ee2-f23946cfefcc" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_d32a8de5-249f-46c6-a2c9-d0fcccca9307" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/CommitmentsandContingenciesScheduleofCompanysMaterialPropertyLeasesDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#CommitmentsandContingenciesScheduleofCompanysMaterialPropertyLeasesDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/CommitmentsandContingenciesScheduleofCompanysMaterialPropertyLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_012b4d88-10e6-479a-8c7b-2afd6c3452a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_036997ca-0f76-40e0-8d87-60bcd37161e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_012b4d88-10e6-479a-8c7b-2afd6c3452a3" xlink:to="loc_us-gaap_LossContingenciesTable_036997ca-0f76-40e0-8d87-60bcd37161e5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_b5c27e00-ece2-4beb-8476-db47a300fd3d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_036997ca-0f76-40e0-8d87-60bcd37161e5" xlink:to="loc_srt_StatementGeographicalAxis_b5c27e00-ece2-4beb-8476-db47a300fd3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_b5c27e00-ece2-4beb-8476-db47a300fd3d_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_b5c27e00-ece2-4beb-8476-db47a300fd3d" xlink:to="loc_srt_SegmentGeographicalDomain_b5c27e00-ece2-4beb-8476-db47a300fd3d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_53eae13f-0a14-446d-bd11-9f9be570a788" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_b5c27e00-ece2-4beb-8476-db47a300fd3d" xlink:to="loc_srt_SegmentGeographicalDomain_53eae13f-0a14-446d-bd11-9f9be570a788" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_SanLeandroCaliforniaMember_216a669f-c5ad-4ba0-a378-a9bbd62cb8e9" xlink:href="erii-20251231.xsd#erii_SanLeandroCaliforniaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_53eae13f-0a14-446d-bd11-9f9be570a788" xlink:to="loc_erii_SanLeandroCaliforniaMember_216a669f-c5ad-4ba0-a378-a9bbd62cb8e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_TracyCaliforniaMember_c27ea192-f33f-4cf3-967a-d125cf8504df" xlink:href="erii-20251231.xsd#erii_TracyCaliforniaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_53eae13f-0a14-446d-bd11-9f9be570a788" xlink:to="loc_erii_TracyCaliforniaMember_c27ea192-f33f-4cf3-967a-d125cf8504df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_KatyTexasMember_fbf89efa-dfb4-4a37-bb04-2bc661d03079" xlink:href="erii-20251231.xsd#erii_KatyTexasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_53eae13f-0a14-446d-bd11-9f9be570a788" xlink:to="loc_erii_KatyTexasMember_fbf89efa-dfb4-4a37-bb04-2bc661d03079" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d95130b8-e067-4b65-b194-377370cda7ef" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_036997ca-0f76-40e0-8d87-60bcd37161e5" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d95130b8-e067-4b65-b194-377370cda7ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_d95130b8-e067-4b65-b194-377370cda7ef_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d95130b8-e067-4b65-b194-377370cda7ef" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_d95130b8-e067-4b65-b194-377370cda7ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_69a54d95-ffd0-486a-a366-2898cab28517" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_d95130b8-e067-4b65-b194-377370cda7ef" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_69a54d95-ffd0-486a-a366-2898cab28517" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_HeadquartersRDAndManufacturingSanLeandroMember_9bbce59b-0133-4afe-8531-f71798072228" xlink:href="erii-20251231.xsd#erii_HeadquartersRDAndManufacturingSanLeandroMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_69a54d95-ffd0-486a-a366-2898cab28517" xlink:to="loc_erii_HeadquartersRDAndManufacturingSanLeandroMember_9bbce59b-0133-4afe-8531-f71798072228" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ManufacturingAndWarehouseTracyLeaseMember_9057e57b-26e2-420e-96eb-529493d98fcb" xlink:href="erii-20251231.xsd#erii_ManufacturingAndWarehouseTracyLeaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_69a54d95-ffd0-486a-a366-2898cab28517" xlink:to="loc_erii_ManufacturingAndWarehouseTracyLeaseMember_9057e57b-26e2-420e-96eb-529493d98fcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_SubleaseMember_019c2d75-87a7-77c7-9717-8277567a0c9c" xlink:href="erii-20251231.xsd#erii_SubleaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_69a54d95-ffd0-486a-a366-2898cab28517" xlink:to="loc_erii_SubleaseMember_019c2d75-87a7-77c7-9717-8277567a0c9c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AreaOfRealEstateProperty_02c754de-3877-40e9-9ebf-d56080bab862" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AreaOfRealEstateProperty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_012b4d88-10e6-479a-8c7b-2afd6c3452a3" xlink:to="loc_us-gaap_AreaOfRealEstateProperty_02c754de-3877-40e9-9ebf-d56080bab862" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_LesseeOperatingLeaseNumberOfRenewalOptions_f960ea91-3815-4bc5-ba28-06400fb20637" xlink:href="erii-20251231.xsd#erii_LesseeOperatingLeaseNumberOfRenewalOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_012b4d88-10e6-479a-8c7b-2afd6c3452a3" xlink:to="loc_erii_LesseeOperatingLeaseNumberOfRenewalOptions_f960ea91-3815-4bc5-ba28-06400fb20637" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_cb2353f9-b187-4fab-a158-a9fbdb9bb6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseRenewalTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_012b4d88-10e6-479a-8c7b-2afd6c3452a3" xlink:to="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_cb2353f9-b187-4fab-a158-a9fbdb9bb6d1" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#CommitmentsandContingenciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019c4ece-bfff-7a30-8142-f682c1e91e29" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019c4ece-bfff-7a30-8142-f682c1e91e29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019c4ece-bfff-7a30-8142-f682c1e91e29_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019c4ece-bfff-7a30-8142-f682c1e91e29" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019c4ece-bfff-7a30-8142-f682c1e91e29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019c4ece-bfff-759b-8ef5-b8f3630d3772" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis_019c4ece-bfff-7a30-8142-f682c1e91e29" xlink:to="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019c4ece-bfff-759b-8ef5-b8f3630d3772" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_SubleaseMember_019c4ece-bfff-7778-a1e2-2680226cf9e5" xlink:href="erii-20251231.xsd#erii_SubleaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain_019c4ece-bfff-759b-8ef5-b8f3630d3772" xlink:to="loc_erii_SubleaseMember_019c4ece-bfff-7778-a1e2-2680226cf9e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019c4ece-bfff-7292-adc0-cfa5c25fe5d4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:to="loc_srt_StatementGeographicalAxis_019c4ece-bfff-7292-adc0-cfa5c25fe5d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019c4ece-bfff-7292-adc0-cfa5c25fe5d4_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019c4ece-bfff-7292-adc0-cfa5c25fe5d4" xlink:to="loc_srt_SegmentGeographicalDomain_019c4ece-bfff-7292-adc0-cfa5c25fe5d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019c4ece-bfff-7915-bd7b-2c0ba2c0a2dd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019c4ece-bfff-7292-adc0-cfa5c25fe5d4" xlink:to="loc_srt_SegmentGeographicalDomain_019c4ece-bfff-7915-bd7b-2c0ba2c0a2dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_KatyTexasMember_019c4ece-bfff-7ba8-a59a-6530d6b03fdf" xlink:href="erii-20251231.xsd#erii_KatyTexasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019c4ece-bfff-7915-bd7b-2c0ba2c0a2dd" xlink:to="loc_erii_KatyTexasMember_019c4ece-bfff-7ba8-a59a-6530d6b03fdf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_b75ffd25-34e9-456b-8ab2-c96f343cb10c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_b75ffd25-34e9-456b-8ab2-c96f343cb10c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_b75ffd25-34e9-456b-8ab2-c96f343cb10c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_b75ffd25-34e9-456b-8ab2-c96f343cb10c" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_b75ffd25-34e9-456b-8ab2-c96f343cb10c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_0f9ce058-ee11-42e1-9995-feca46d7bff3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_b75ffd25-34e9-456b-8ab2-c96f343cb10c" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_0f9ce058-ee11-42e1-9995-feca46d7bff3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndemnificationGuaranteeMember_2e20bf5e-c211-4014-995d-a462a8ff9e59" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IndemnificationGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_0f9ce058-ee11-42e1-9995-feca46d7bff3" xlink:to="loc_us-gaap_IndemnificationGuaranteeMember_2e20bf5e-c211-4014-995d-a462a8ff9e59" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_22dd7604-bee6-496c-a7b7-0aa01ccb4893" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_cd2ec499-8c06-4011-9dcc-fa29d9dc3db7" xlink:to="loc_srt_RangeAxis_22dd7604-bee6-496c-a7b7-0aa01ccb4893" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_22dd7604-bee6-496c-a7b7-0aa01ccb4893_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_22dd7604-bee6-496c-a7b7-0aa01ccb4893" xlink:to="loc_srt_RangeMember_22dd7604-bee6-496c-a7b7-0aa01ccb4893_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5531a0b6-2601-4e8c-a0f0-3187c7e1f831" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_22dd7604-bee6-496c-a7b7-0aa01ccb4893" xlink:to="loc_srt_RangeMember_5531a0b6-2601-4e8c-a0f0-3187c7e1f831" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_cbd55a70-9110-4740-9f23-cf6373ce459a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5531a0b6-2601-4e8c-a0f0-3187c7e1f831" xlink:to="loc_srt_WeightedAverageMember_cbd55a70-9110-4740-9f23-cf6373ce459a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_20e4f93c-86f0-4e87-a768-f67bcf65cf98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_20e4f93c-86f0-4e87-a768-f67bcf65cf98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_6c1a570d-dcf1-4733-817a-2a86ea817c7c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_6c1a570d-dcf1-4733-817a-2a86ea817c7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseImpairmentLoss_3475a3a7-51b9-46ab-b35e-5f4753dc084f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_OperatingLeaseImpairmentLoss_3475a3a7-51b9-46ab-b35e-5f4753dc084f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLeasehold_4d1c0eb6-b087-4564-b78f-6ea3c692b197" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfLeasehold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_ImpairmentOfLeasehold_4d1c0eb6-b087-4564-b78f-6ea3c692b197" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_8901bf8f-b401-4fc1-bc89-e00aa3834995" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GuaranteeObligationsCurrentCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_8901bf8f-b401-4fc1-bc89-e00aa3834995" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RetentionPaymentsPercentage_92c50e53-7f9d-432e-8efc-0d2cc6261221" xlink:href="erii-20251231.xsd#erii_RetentionPaymentsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_erii_RetentionPaymentsPercentage_92c50e53-7f9d-432e-8efc-0d2cc6261221" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RetentionPaymentsPaymentPeriodAfterProductDelivery_ad552f42-caf8-4812-9a15-10f23dd11748" xlink:href="erii-20251231.xsd#erii_RetentionPaymentsPaymentPeriodAfterProductDelivery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_erii_RetentionPaymentsPaymentPeriodAfterProductDelivery_ad552f42-caf8-4812-9a15-10f23dd11748" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualProvision_019c7121-0614-7883-9935-cb534a9dae1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LossContingencyAccrualProvision"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7bc506dc-f9a1-420c-bb97-a01f06cf2988" xlink:to="loc_us-gaap_LossContingencyAccrualProvision_019c7121-0614-7883-9935-cb534a9dae1f" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/IncomeTaxesAdditionalInformationDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#IncomeTaxesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/IncomeTaxesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExaminationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_0048192a-a622-4637-a9d2-3fd71d27acd9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExaminationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_0048192a-a622-4637-a9d2-3fd71d27acd9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_118e954d-32bf-47c7-ad53-c6d3c54b153a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_0048192a-a622-4637-a9d2-3fd71d27acd9" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_118e954d-32bf-47c7-ad53-c6d3c54b153a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_118e954d-32bf-47c7-ad53-c6d3c54b153a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_118e954d-32bf-47c7-ad53-c6d3c54b153a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_118e954d-32bf-47c7-ad53-c6d3c54b153a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_8eb79f5b-ff22-4388-ac99-6752348d3711" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_118e954d-32bf-47c7-ad53-c6d3c54b153a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_8eb79f5b-ff22-4388-ac99-6752348d3711" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_6aa5c5ec-6ab0-4bb9-a522-3bc65427f5e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CaliforniaFranchiseTaxBoardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_8eb79f5b-ff22-4388-ac99-6752348d3711" xlink:to="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_6aa5c5ec-6ab0-4bb9-a522-3bc65427f5e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardValuationAllowance_9452fe72-c566-4404-8656-fab1b51e298b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_TaxCreditCarryforwardValuationAllowance_9452fe72-c566-4404-8656-fab1b51e298b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_1cd18c45-ffdb-46b7-a2cc-ba5f30415621" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_1cd18c45-ffdb-46b7-a2cc-ba5f30415621" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_6b73bab1-822f-4266-89de-fe31a63f7167" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_6b73bab1-822f-4266-89de-fe31a63f7167" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_8dd09a99-a2ed-4a91-9174-9075197c7047" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_8dd09a99-a2ed-4a91-9174-9075197c7047" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_b2531677-2b8c-497f-aba7-d9e2888a4acb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_2547a694-ff81-4c26-b453-d4da0645c182" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_b2531677-2b8c-497f-aba7-d9e2888a4acb" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/IncomeTaxesSummaryofOperatingLossCarryforwardsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#IncomeTaxesSummaryofOperatingLossCarryforwardsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/IncomeTaxesSummaryofOperatingLossCarryforwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_019c2d7a-5027-7208-8fb0-e9a265376f9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxContingencyLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_019c2d7a-5027-7c3e-b0da-6cbc2cdb2d2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_019c2d7a-5027-7208-8fb0-e9a265376f9e" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_019c2d7a-5027-7c3e-b0da-6cbc2cdb2d2c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019c2d8f-6027-758a-90dd-ba327a9b2191" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_019c2d7a-5027-7c3e-b0da-6cbc2cdb2d2c" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019c2d8f-6027-758a-90dd-ba327a9b2191" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019c2d8f-6027-758a-90dd-ba327a9b2191_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019c2d8f-6027-758a-90dd-ba327a9b2191" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019c2d8f-6027-758a-90dd-ba327a9b2191_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019c2d8f-6027-722e-bb0e-193bc6e9be4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019c2d8f-6027-758a-90dd-ba327a9b2191" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019c2d8f-6027-722e-bb0e-193bc6e9be4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_019c2d8f-6027-7d3f-ad0b-43cf02433872" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CaliforniaFranchiseTaxBoardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019c2d8f-6027-722e-bb0e-193bc6e9be4f" xlink:to="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_019c2d8f-6027-7d3f-ad0b-43cf02433872" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_019c2d7a-5027-7228-a0df-d223bfaf0ed5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_019c2d7a-5027-7208-8fb0-e9a265376f9e" xlink:to="loc_us-gaap_OperatingLossCarryforwards_019c2d7a-5027-7228-a0df-d223bfaf0ed5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/IncomeTaxesSummaryofTaxCreditCarryforwardsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#IncomeTaxesSummaryofTaxCreditCarryforwardsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/IncomeTaxesSummaryofTaxCreditCarryforwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardLineItems_370b62cf-f195-4521-a314-5a6fc99e6507" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_6f45cf26-e3b4-45ca-bc38-8b6294937a03" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_370b62cf-f195-4521-a314-5a6fc99e6507" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_6f45cf26-e3b4-45ca-bc38-8b6294937a03" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAxis_418bf08e-f3cf-4c07-a53e-21952c3b7c09" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_6f45cf26-e3b4-45ca-bc38-8b6294937a03" xlink:to="loc_us-gaap_TaxCreditCarryforwardAxis_418bf08e-f3cf-4c07-a53e-21952c3b7c09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_418bf08e-f3cf-4c07-a53e-21952c3b7c09_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_418bf08e-f3cf-4c07-a53e-21952c3b7c09" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_418bf08e-f3cf-4c07-a53e-21952c3b7c09_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_2db44506-f138-427e-ad84-cec251101ce7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_418bf08e-f3cf-4c07-a53e-21952c3b7c09" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_2db44506-f138-427e-ad84-cec251101ce7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ResearchAndDevelopmentMinimumTaxandForeignTaxCreditCarryforwardMember_d7acce99-a27e-463a-afa0-b75b88480364" xlink:href="erii-20251231.xsd#erii_ResearchAndDevelopmentMinimumTaxandForeignTaxCreditCarryforwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardNameDomain_2db44506-f138-427e-ad84-cec251101ce7" xlink:to="loc_erii_ResearchAndDevelopmentMinimumTaxandForeignTaxCreditCarryforwardMember_d7acce99-a27e-463a-afa0-b75b88480364" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019b229e-dc05-7dc8-8c41-889b1ceaf39d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_6f45cf26-e3b4-45ca-bc38-8b6294937a03" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019b229e-dc05-7dc8-8c41-889b1ceaf39d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019b229e-dc05-7dc8-8c41-889b1ceaf39d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019b229e-dc05-7dc8-8c41-889b1ceaf39d" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019b229e-dc05-7dc8-8c41-889b1ceaf39d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019b229e-dc05-7ea8-8b19-8907be1719e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019b229e-dc05-7dc8-8c41-889b1ceaf39d" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019b229e-dc05-7ea8-8b19-8907be1719e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_019b229e-dc05-7f68-9ad7-9b3066a8a4ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CaliforniaFranchiseTaxBoardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019b229e-dc05-7ea8-8b19-8907be1719e1" xlink:to="loc_us-gaap_CaliforniaFranchiseTaxBoardMember_019b229e-dc05-7f68-9ad7-9b3066a8a4ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_2843dec8-0373-45dd-93d9-df28248365dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_370b62cf-f195-4521-a314-5a6fc99e6507" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_2843dec8-0373-45dd-93d9-df28248365dd" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/IncomeTaxesScheduleofNetCashPaidDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#IncomeTaxesScheduleofNetCashPaidDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/IncomeTaxesScheduleofNetCashPaidDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionTable_019c285a-6bef-7c3c-8a2b-afb64436e782" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidByIndividualJurisdictionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:to="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionTable_019c285a-6bef-7c3c-8a2b-afb64436e782" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019c285a-6bef-7a99-ad39-5881a4333ddb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionTable_019c285a-6bef-7c3c-8a2b-afb64436e782" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019c285a-6bef-7a99-ad39-5881a4333ddb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019c285a-6bef-7a99-ad39-5881a4333ddb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019c285a-6bef-7a99-ad39-5881a4333ddb" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019c285a-6bef-7a99-ad39-5881a4333ddb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019c285a-6bef-7de2-b8a9-dcbfa9bf5b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019c285a-6bef-7a99-ad39-5881a4333ddb" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019c285a-6bef-7de2-b8a9-dcbfa9bf5b7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCountryMember_019c70d5-bd0b-713e-aa0b-f1376cfce830" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019c285a-6bef-7de2-b8a9-dcbfa9bf5b7b" xlink:to="loc_us-gaap_ForeignCountryMember_019c70d5-bd0b-713e-aa0b-f1376cfce830" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_ES_019c5beb-2821-7e7e-a298-a1eabaf1ae04" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_ES"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ForeignCountryMember_019c70d5-bd0b-713e-aa0b-f1376cfce830" xlink:to="loc_country_ES_019c5beb-2821-7e7e-a298-a1eabaf1ae04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_019c5bf3-e5f1-78f6-a5f2-fadcbc3304e1" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ForeignCountryMember_019c70d5-bd0b-713e-aa0b-f1376cfce830" xlink:to="loc_country_CN_019c5bf3-e5f1-78f6-a5f2-fadcbc3304e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignTaxJurisdictionOtherMember_019c5bf4-2617-772e-bf91-cd1cdc86b9eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignTaxJurisdictionOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ForeignCountryMember_019c70d5-bd0b-713e-aa0b-f1376cfce830" xlink:to="loc_us-gaap_ForeignTaxJurisdictionOtherMember_019c5bf4-2617-772e-bf91-cd1cdc86b9eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c5bdb-5196-7b2d-a891-b3d371d2aaec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c5bdb-5196-7b2d-a891-b3d371d2aaec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c5bdc-0629-7a89-a758-0ac2e8429135" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c5bdc-0629-7a89-a758-0ac2e8429135" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceivedAbstract_019c5bdf-02b1-7514-be9c-64f623f285a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceivedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceivedAbstract_019c5bdf-02b1-7514-be9c-64f623f285a2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019c5bdd-f373-7319-baed-053bc825561e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceivedAbstract_019c5bdf-02b1-7514-be9c-64f623f285a2" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019c5bdd-f373-7319-baed-053bc825561e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019c7123-4cc6-726b-819b-cc0f5de5f5ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxPaidByIndividualJurisdictionLineItems_019c285a-6bef-7ea7-a694-4494f1a7f583" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_019c7123-4cc6-726b-819b-cc0f5de5f5ce" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/SegmentReportingScheduleofFinancialInformationbySegmentDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#SegmentReportingScheduleofFinancialInformationbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/SegmentReportingScheduleofFinancialInformationbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2cb53113-2c2f-4299-8c70-d6748a83cd34" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2cb53113-2c2f-4299-8c70-d6748a83cd34" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_37d9bec8-fb27-4a92-ad2e-1745b33bc08e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2cb53113-2c2f-4299-8c70-d6748a83cd34" xlink:to="loc_srt_ConsolidationItemsAxis_37d9bec8-fb27-4a92-ad2e-1745b33bc08e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_37d9bec8-fb27-4a92-ad2e-1745b33bc08e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_37d9bec8-fb27-4a92-ad2e-1745b33bc08e" xlink:to="loc_srt_ConsolidationItemsDomain_37d9bec8-fb27-4a92-ad2e-1745b33bc08e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_1118e9fe-b48c-4d83-9b11-23c7e8543234" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_37d9bec8-fb27-4a92-ad2e-1745b33bc08e" xlink:to="loc_srt_ConsolidationItemsDomain_1118e9fe-b48c-4d83-9b11-23c7e8543234" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_f55aaaab-1f48-466d-ada4-4235406df71d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_1118e9fe-b48c-4d83-9b11-23c7e8543234" xlink:to="loc_us-gaap_OperatingSegmentsMember_f55aaaab-1f48-466d-ada4-4235406df71d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_ad90fb28-7193-45ed-a424-25eb0a17f9a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_1118e9fe-b48c-4d83-9b11-23c7e8543234" xlink:to="loc_us-gaap_CorporateNonSegmentMember_ad90fb28-7193-45ed-a424-25eb0a17f9a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3a151300-5fb9-4964-ab90-3c858b62bf2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2cb53113-2c2f-4299-8c70-d6748a83cd34" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3a151300-5fb9-4964-ab90-3c858b62bf2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3a151300-5fb9-4964-ab90-3c858b62bf2c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3a151300-5fb9-4964-ab90-3c858b62bf2c" xlink:to="loc_us-gaap_SegmentDomain_3a151300-5fb9-4964-ab90-3c858b62bf2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b0360ad7-5fbd-48df-ae13-2dceb79cb87f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3a151300-5fb9-4964-ab90-3c858b62bf2c" xlink:to="loc_us-gaap_SegmentDomain_b0360ad7-5fbd-48df-ae13-2dceb79cb87f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WaterSegmentMember_99d0c3ba-32cc-4c91-99a4-20ba1f3c64d0" xlink:href="erii-20251231.xsd#erii_WaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_b0360ad7-5fbd-48df-ae13-2dceb79cb87f" xlink:to="loc_erii_WaterSegmentMember_99d0c3ba-32cc-4c91-99a4-20ba1f3c64d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmergingTechnologiesSegmentMember_67b7ad91-f64e-4f23-9fb6-a60e16343915" xlink:href="erii-20251231.xsd#erii_EmergingTechnologiesSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_b0360ad7-5fbd-48df-ae13-2dceb79cb87f" xlink:to="loc_erii_EmergingTechnologiesSegmentMember_67b7ad91-f64e-4f23-9fb6-a60e16343915" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_9998325d-96dc-4583-82d0-edabab6c425c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_9998325d-96dc-4583-82d0-edabab6c425c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_054c0e0c-d3ef-4988-94a7-93c6772b1f98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_CostOfRevenue_054c0e0c-d3ef-4988-94a7-93c6772b1f98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_73073a4f-fe00-425d-82dd-be26ac81073d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_GrossProfit_73073a4f-fe00-425d-82dd-be26ac81073d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_4b2be552-64fc-4d9b-a2d2-a9ea8ac8ce5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_4b2be552-64fc-4d9b-a2d2-a9ea8ac8ce5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_97f77582-f35e-4d5d-8544-6c488488f3f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:to="loc_us-gaap_SellingAndMarketingExpense_97f77582-f35e-4d5d-8544-6c488488f3f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_608b3fd3-55ab-4c86-8e17-5d84d951850d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_608b3fd3-55ab-4c86-8e17-5d84d951850d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_ff2e8c8d-6ac5-4e96-a6e8-e7da8f4399b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:to="loc_us-gaap_RestructuringCharges_ff2e8c8d-6ac5-4e96-a6e8-e7da8f4399b4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_c2a59a35-1d76-40e3-97f5-6e7bf8de33ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1adcbf88-bae7-438f-b32f-6902062d55fb" xlink:to="loc_us-gaap_OperatingExpenses_c2a59a35-1d76-40e3-97f5-6e7bf8de33ae" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_8de3dc0b-13af-4dbe-a82a-8a36f1cd1c51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7b737bd4-a991-4146-9c2c-bbbe14af12ad" xlink:to="loc_us-gaap_OperatingIncomeLoss_8de3dc0b-13af-4dbe-a82a-8a36f1cd1c51" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/SegmentReportingScheduleofSegmentReportingInformationbySegmentDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#SegmentReportingScheduleofSegmentReportingInformationbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/SegmentReportingScheduleofSegmentReportingInformationbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_cb0560af-33a8-4763-879c-2e19908b671e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0ce071d6-77b4-4a72-bf2b-d2e05798c326" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_cb0560af-33a8-4763-879c-2e19908b671e" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0ce071d6-77b4-4a72-bf2b-d2e05798c326" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_ec460c32-4a32-4523-a77e-fca1c72579a9" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0ce071d6-77b4-4a72-bf2b-d2e05798c326" xlink:to="loc_srt_ConsolidationItemsAxis_ec460c32-4a32-4523-a77e-fca1c72579a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ec460c32-4a32-4523-a77e-fca1c72579a9_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_ec460c32-4a32-4523-a77e-fca1c72579a9" xlink:to="loc_srt_ConsolidationItemsDomain_ec460c32-4a32-4523-a77e-fca1c72579a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_6b6fe871-99b4-4985-8fd9-6b0312994e5a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_ec460c32-4a32-4523-a77e-fca1c72579a9" xlink:to="loc_srt_ConsolidationItemsDomain_6b6fe871-99b4-4985-8fd9-6b0312994e5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_d58c11f6-fcd5-487a-a44e-e9cb335b07a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_6b6fe871-99b4-4985-8fd9-6b0312994e5a" xlink:to="loc_us-gaap_OperatingSegmentsMember_d58c11f6-fcd5-487a-a44e-e9cb335b07a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_e563a8b7-bdf1-4c03-9819-f608ea260650" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_6b6fe871-99b4-4985-8fd9-6b0312994e5a" xlink:to="loc_us-gaap_CorporateNonSegmentMember_e563a8b7-bdf1-4c03-9819-f608ea260650" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_582e2d92-a36a-47b2-baab-348f75bf067d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0ce071d6-77b4-4a72-bf2b-d2e05798c326" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_582e2d92-a36a-47b2-baab-348f75bf067d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_582e2d92-a36a-47b2-baab-348f75bf067d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_582e2d92-a36a-47b2-baab-348f75bf067d" xlink:to="loc_us-gaap_SegmentDomain_582e2d92-a36a-47b2-baab-348f75bf067d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ba5e4bd3-a2d5-4751-a33c-487466f5175d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_582e2d92-a36a-47b2-baab-348f75bf067d" xlink:to="loc_us-gaap_SegmentDomain_ba5e4bd3-a2d5-4751-a33c-487466f5175d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WaterSegmentMember_11318821-868d-434c-8f9f-096323b85738" xlink:href="erii-20251231.xsd#erii_WaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ba5e4bd3-a2d5-4751-a33c-487466f5175d" xlink:to="loc_erii_WaterSegmentMember_11318821-868d-434c-8f9f-096323b85738" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmergingTechnologiesSegmentMember_db93c828-6440-435a-aad7-9116ac7b453d" xlink:href="erii-20251231.xsd#erii_EmergingTechnologiesSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ba5e4bd3-a2d5-4751-a33c-487466f5175d" xlink:to="loc_erii_EmergingTechnologiesSegmentMember_db93c828-6440-435a-aad7-9116ac7b453d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_39d93849-576c-44de-bf79-b75173bc3866" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_cb0560af-33a8-4763-879c-2e19908b671e" xlink:to="loc_us-gaap_DepreciationAndAmortization_39d93849-576c-44de-bf79-b75173bc3866" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/ConcentrationsScheduleofRevenuebyGeographicLocationandCountryDetails" xlink:type="simple" xlink:href="erii-20251231.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_6038d427-132f-4641-8478-4548d1a2b2ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a9fe9089-9829-4092-a35d-8d830adb3e2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6038d427-132f-4641-8478-4548d1a2b2ec" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a9fe9089-9829-4092-a35d-8d830adb3e2d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a9fe9089-9829-4092-a35d-8d830adb3e2d" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2face33b-46c2-4b96-86cf-d19626323cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0098c5b5-8d4a-41e5-bfec-6cf0069bbd9e" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2face33b-46c2-4b96-86cf-d19626323cd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_0cf6f805-a4bc-4a22-a2e0-4fe129d6b6d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2face33b-46c2-4b96-86cf-d19626323cd4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_0cf6f805-a4bc-4a22-a2e0-4fe129d6b6d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_9768d55f-30ad-4b26-b44a-3cb0f84d19f4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a9fe9089-9829-4092-a35d-8d830adb3e2d" xlink:to="loc_srt_StatementGeographicalAxis_9768d55f-30ad-4b26-b44a-3cb0f84d19f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_9768d55f-30ad-4b26-b44a-3cb0f84d19f4_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_9768d55f-30ad-4b26-b44a-3cb0f84d19f4" xlink:to="loc_srt_SegmentGeographicalDomain_9768d55f-30ad-4b26-b44a-3cb0f84d19f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_9768d55f-30ad-4b26-b44a-3cb0f84d19f4" xlink:to="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_0cd6bc5f-d0be-49b6-87d2-ee943efb87c7" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_US_0cd6bc5f-d0be-49b6-87d2-ee943efb87c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_aba55523-d739-4211-a132-7687fd5e38d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_us-gaap_NonUsMember_aba55523-d739-4211-a132-7687fd5e38d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_SA_b01c7774-70be-4791-8e2e-0fa6738fe6c6" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_SA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_SA_b01c7774-70be-4791-8e2e-0fa6738fe6c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_QA_019c2d63-f948-77c2-938c-6f73e73ee84c" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_QA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_QA_019c2d63-f948-77c2-938c-6f73e73ee84c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_AE_852ad42b-b6a2-43b4-a459-fc939a9c9799" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AE"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_AE_852ad42b-b6a2-43b4-a459-fc939a9c9799" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_MA_cc1bbc42-c530-4a0b-8723-35d089cfac62" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_MA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_MA_cc1bbc42-c530-4a0b-8723-35d089cfac62" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_IN_2a1b4262-cdff-4eb1-9c78-5e14b7c5dd2c" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_IN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_IN_2a1b4262-cdff-4eb1-9c78-5e14b7c5dd2c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_DZ_019c2d66-42e7-7a73-a28e-443177b7a390" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_DZ"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_DZ_019c2d66-42e7-7a73-a28e-443177b7a390" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_019c2d66-719d-7b26-aab9-a13570b38b83" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_country_CN_019c2d66-719d-7b26-aab9-a13570b38b83" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_OthersMember_69bf48a4-abc2-4a68-92ac-fbb4058fbd5a" xlink:href="erii-20251231.xsd#erii_OthersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_3205f6a0-7807-47d5-bc16-0e3685fdc917" xlink:to="loc_erii_OthersMember_69bf48a4-abc2-4a68-92ac-fbb4058fbd5a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_8ddd3866-519f-4385-91f1-6007bda43a2f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a9fe9089-9829-4092-a35d-8d830adb3e2d" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_8ddd3866-519f-4385-91f1-6007bda43a2f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_8ddd3866-519f-4385-91f1-6007bda43a2f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8ddd3866-519f-4385-91f1-6007bda43a2f" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_8ddd3866-519f-4385-91f1-6007bda43a2f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_4d8e83fd-2471-400b-9417-b321bb9ed010" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8ddd3866-519f-4385-91f1-6007bda43a2f" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_4d8e83fd-2471-400b-9417-b321bb9ed010" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_ca712468-f336-4c2e-a8e6-5af8173cad5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_4d8e83fd-2471-400b-9417-b321bb9ed010" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_ca712468-f336-4c2e-a8e6-5af8173cad5c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_659275fe-5d25-447f-ba88-35ae968eba42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6038d427-132f-4641-8478-4548d1a2b2ec" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_659275fe-5d25-447f-ba88-35ae968eba42" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/ConcentrationsCustomerRevenueConcentrationDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#ConcentrationsCustomerRevenueConcentrationDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/ConcentrationsCustomerRevenueConcentrationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_3867ee4c-b6cc-4f1a-8b76-ce7e9b6a25b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_3867ee4c-b6cc-4f1a-8b76-ce7e9b6a25b0" xlink:to="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_9495ec32-4323-48b3-b874-35f8b6918e9a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:to="loc_srt_MajorCustomersAxis_9495ec32-4323-48b3-b874-35f8b6918e9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_9495ec32-4323-48b3-b874-35f8b6918e9a_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_9495ec32-4323-48b3-b874-35f8b6918e9a" xlink:to="loc_srt_NameOfMajorCustomerDomain_9495ec32-4323-48b3-b874-35f8b6918e9a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_9495ec32-4323-48b3-b874-35f8b6918e9a" xlink:to="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerAMember_00c915c4-2f27-4ec7-a723-4496fa958f41" xlink:href="erii-20251231.xsd#erii_CustomerAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:to="loc_erii_CustomerAMember_00c915c4-2f27-4ec7-a723-4496fa958f41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerBMember_6b993871-ca2e-4ae8-a603-17322000f697" xlink:href="erii-20251231.xsd#erii_CustomerBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:to="loc_erii_CustomerBMember_6b993871-ca2e-4ae8-a603-17322000f697" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerCMember_c254887a-2efb-4136-8909-39930958cf08" xlink:href="erii-20251231.xsd#erii_CustomerCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:to="loc_erii_CustomerCMember_c254887a-2efb-4136-8909-39930958cf08" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_CustomerDMember_7015187d-794b-4a30-b882-c7fb7a492418" xlink:href="erii-20251231.xsd#erii_CustomerDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_5054ca05-4532-4f93-99b2-7ed1e938dcb0" xlink:to="loc_erii_CustomerDMember_7015187d-794b-4a30-b882-c7fb7a492418" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e3b96e41-feff-4ecf-b693-320f95c3a16d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e3b96e41-feff-4ecf-b693-320f95c3a16d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e3b96e41-feff-4ecf-b693-320f95c3a16d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e3b96e41-feff-4ecf-b693-320f95c3a16d" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e3b96e41-feff-4ecf-b693-320f95c3a16d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_51e35749-0d0e-4c0f-9f2c-05838fb1ae3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e3b96e41-feff-4ecf-b693-320f95c3a16d" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_51e35749-0d0e-4c0f-9f2c-05838fb1ae3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_8e28fa2e-997c-4352-b866-3a129f8f71f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_51e35749-0d0e-4c0f-9f2c-05838fb1ae3d" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_8e28fa2e-997c-4352-b866-3a129f8f71f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_0f4c7bdb-1fc7-4ff4-9315-94585159ae18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_0f4c7bdb-1fc7-4ff4-9315-94585159ae18" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_0f4c7bdb-1fc7-4ff4-9315-94585159ae18_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0f4c7bdb-1fc7-4ff4-9315-94585159ae18" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_0f4c7bdb-1fc7-4ff4-9315-94585159ae18_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_3375c372-d3c6-46f5-b379-982d8770ed0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0f4c7bdb-1fc7-4ff4-9315-94585159ae18" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_3375c372-d3c6-46f5-b379-982d8770ed0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_4cce54ae-aebe-45bb-89a8-5606c3427436" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_3375c372-d3c6-46f5-b379-982d8770ed0b" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_4cce54ae-aebe-45bb-89a8-5606c3427436" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3ab3ae61-e299-40c8-91db-735cf315dcf2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_f687191b-9466-46fd-b6d5-6961988b7bc0" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3ab3ae61-e299-40c8-91db-735cf315dcf2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3ab3ae61-e299-40c8-91db-735cf315dcf2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3ab3ae61-e299-40c8-91db-735cf315dcf2" xlink:to="loc_us-gaap_SegmentDomain_3ab3ae61-e299-40c8-91db-735cf315dcf2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_938a43ad-a2e2-4a59-b166-92b55a673a52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3ab3ae61-e299-40c8-91db-735cf315dcf2" xlink:to="loc_us-gaap_SegmentDomain_938a43ad-a2e2-4a59-b166-92b55a673a52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_WaterSegmentMember_d7c46dca-681f-4825-b68c-d6ba0bbd13a1" xlink:href="erii-20251231.xsd#erii_WaterSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_938a43ad-a2e2-4a59-b166-92b55a673a52" xlink:to="loc_erii_WaterSegmentMember_d7c46dca-681f-4825-b68c-d6ba0bbd13a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_1f97db2c-e455-453f-a197-1a8d38526588" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_3867ee4c-b6cc-4f1a-8b76-ce7e9b6a25b0" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_1f97db2c-e455-453f-a197-1a8d38526588" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/ConcentrationsMajorSupplyVendorsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#ConcentrationsMajorSupplyVendorsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/ConcentrationsMajorSupplyVendorsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_a0c0bde2-276c-45b7-a372-32665b46a1e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_b0a937f7-8541-4359-bcfe-7e93215d5a67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_a0c0bde2-276c-45b7-a372-32665b46a1e8" xlink:to="loc_us-gaap_ConcentrationRiskTable_b0a937f7-8541-4359-bcfe-7e93215d5a67" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_7b3499d2-c79e-46fc-9a23-652cacfb6b36" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_b0a937f7-8541-4359-bcfe-7e93215d5a67" xlink:to="loc_srt_MajorCustomersAxis_7b3499d2-c79e-46fc-9a23-652cacfb6b36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_7b3499d2-c79e-46fc-9a23-652cacfb6b36_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_7b3499d2-c79e-46fc-9a23-652cacfb6b36" xlink:to="loc_srt_NameOfMajorCustomerDomain_7b3499d2-c79e-46fc-9a23-652cacfb6b36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_7b3499d2-c79e-46fc-9a23-652cacfb6b36" xlink:to="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_VendorAMember_7f07c5fc-7901-4dea-936d-da0f72a2f396" xlink:href="erii-20251231.xsd#erii_VendorAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:to="loc_erii_VendorAMember_7f07c5fc-7901-4dea-936d-da0f72a2f396" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_VendorBMember_488be958-e959-4f83-ae74-990d191b74ef" xlink:href="erii-20251231.xsd#erii_VendorBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:to="loc_erii_VendorBMember_488be958-e959-4f83-ae74-990d191b74ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_VendorCMember_245984e2-f622-4c16-a334-8d7aef622090" xlink:href="erii-20251231.xsd#erii_VendorCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:to="loc_erii_VendorCMember_245984e2-f622-4c16-a334-8d7aef622090" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_VendorDMember_019c2dbc-f060-7a2d-8700-7b10b3174cb8" xlink:href="erii-20251231.xsd#erii_VendorDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_ddda5596-f27c-4ea8-93f0-3b72806c156f" xlink:to="loc_erii_VendorDMember_019c2dbc-f060-7a2d-8700-7b10b3174cb8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0d02edf3-b08b-41d3-ac4d-244d0c431277" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_b0a937f7-8541-4359-bcfe-7e93215d5a67" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0d02edf3-b08b-41d3-ac4d-244d0c431277" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0d02edf3-b08b-41d3-ac4d-244d0c431277_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0d02edf3-b08b-41d3-ac4d-244d0c431277" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0d02edf3-b08b-41d3-ac4d-244d0c431277_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_46809e38-8714-4a92-82ba-e30fa6ce433e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0d02edf3-b08b-41d3-ac4d-244d0c431277" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_46809e38-8714-4a92-82ba-e30fa6ce433e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableMember_97eec337-ca90-4ad7-a844-7abfa73f7038" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_46809e38-8714-4a92-82ba-e30fa6ce433e" xlink:to="loc_us-gaap_AccountsPayableMember_97eec337-ca90-4ad7-a844-7abfa73f7038" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_fd0e5d4f-6c91-4f9e-a279-9b245394a0da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_b0a937f7-8541-4359-bcfe-7e93215d5a67" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_fd0e5d4f-6c91-4f9e-a279-9b245394a0da" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_fd0e5d4f-6c91-4f9e-a279-9b245394a0da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_fd0e5d4f-6c91-4f9e-a279-9b245394a0da" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_fd0e5d4f-6c91-4f9e-a279-9b245394a0da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_a120ec4b-31b2-41fc-9f87-487d42bd10ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_fd0e5d4f-6c91-4f9e-a279-9b245394a0da" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_a120ec4b-31b2-41fc-9f87-487d42bd10ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_8e42de30-1d3b-41e6-af2f-72a128ac070e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_a120ec4b-31b2-41fc-9f87-487d42bd10ff" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_8e42de30-1d3b-41e6-af2f-72a128ac070e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_607938a5-d44e-4a79-b1e2-c6f08c4bb86f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_a0c0bde2-276c-45b7-a372-32665b46a1e8" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_607938a5-d44e-4a79-b1e2-c6f08c4bb86f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockholdersEquityShareRepurchaseProgramDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockholdersEquityShareRepurchaseProgramDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_ad280509-1300-4fd4-bd30-f2ace624b092" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfCapitalizationEquityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationEquityTable_8653e97b-3a46-4303-9d95-40e4add3ad6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfCapitalizationEquityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_ad280509-1300-4fd4-bd30-f2ace624b092" xlink:to="loc_us-gaap_ScheduleOfCapitalizationEquityTable_8653e97b-3a46-4303-9d95-40e4add3ad6d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_c44dc022-defc-4c7b-8fa3-d65e4acd9891" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityTable_8653e97b-3a46-4303-9d95-40e4add3ad6d" xlink:to="loc_srt_ShareRepurchaseProgramAxis_c44dc022-defc-4c7b-8fa3-d65e4acd9891" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_c44dc022-defc-4c7b-8fa3-d65e4acd9891_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_c44dc022-defc-4c7b-8fa3-d65e4acd9891" xlink:to="loc_srt_ShareRepurchaseProgramDomain_c44dc022-defc-4c7b-8fa3-d65e4acd9891_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_8a2ca44f-6d5e-47ce-aebc-3d1840f1e432" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_c44dc022-defc-4c7b-8fa3-d65e4acd9891" xlink:to="loc_srt_ShareRepurchaseProgramDomain_8a2ca44f-6d5e-47ce-aebc-3d1840f1e432" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ShareRepurchaseProgramMember_4b6c66a2-4ad8-428b-bd00-c000bdf769be" xlink:href="erii-20251231.xsd#erii_ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_8a2ca44f-6d5e-47ce-aebc-3d1840f1e432" xlink:to="loc_erii_ShareRepurchaseProgramMember_4b6c66a2-4ad8-428b-bd00-c000bdf769be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_February2025AuthorizationMember_097770b9-1694-49e7-8a2c-6cfc02596d00" xlink:href="erii-20251231.xsd#erii_February2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_8a2ca44f-6d5e-47ce-aebc-3d1840f1e432" xlink:to="loc_erii_February2025AuthorizationMember_097770b9-1694-49e7-8a2c-6cfc02596d00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_August2025AuthorizationMember_4cbd697c-fa94-4277-af53-12f27f8dbbac" xlink:href="erii-20251231.xsd#erii_August2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_8a2ca44f-6d5e-47ce-aebc-3d1840f1e432" xlink:to="loc_erii_August2025AuthorizationMember_4cbd697c-fa94-4277-af53-12f27f8dbbac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_a17a8132-cf4a-4019-b06b-c02d2b8cf93f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_ad280509-1300-4fd4-bd30-f2ace624b092" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_a17a8132-cf4a-4019-b06b-c02d2b8cf93f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_e45f165f-040f-4df1-a131-1578610d4d00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_ad280509-1300-4fd4-bd30-f2ace624b092" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_e45f165f-040f-4df1-a131-1578610d4d00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_fc024ac3-3103-4535-820a-883cde4034ab" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationEquityLineItems_ad280509-1300-4fd4-bd30-f2ace624b092" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_fc024ac3-3103-4535-820a-883cde4034ab" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockholdersEquityStockRepurchaseProgramDetails" xlink:type="simple" xlink:href="erii-20251231.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_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_d6e352ba-aca5-4c38-a537-8f5ce75dc38e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_d6e352ba-aca5-4c38-a537-8f5ce75dc38e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_d6e352ba-aca5-4c38-a537-8f5ce75dc38e" xlink:to="loc_srt_ShareRepurchaseProgramAxis_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2" xlink:to="loc_srt_ShareRepurchaseProgramDomain_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_d0ef809b-328d-4ed5-b510-d6bef175dd2f" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_dc8aec18-c5cb-4a17-bc3d-a6cde576a4c2" xlink:to="loc_srt_ShareRepurchaseProgramDomain_d0ef809b-328d-4ed5-b510-d6bef175dd2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_November2024AuthorizationMember_78d76010-54ba-41c2-8a71-8100bbd99fb1" xlink:href="erii-20251231.xsd#erii_November2024AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_d0ef809b-328d-4ed5-b510-d6bef175dd2f" xlink:to="loc_erii_November2024AuthorizationMember_78d76010-54ba-41c2-8a71-8100bbd99fb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_February2025AuthorizationMember_6288f148-0fa3-47b6-8781-e45f15569035" xlink:href="erii-20251231.xsd#erii_February2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_d0ef809b-328d-4ed5-b510-d6bef175dd2f" xlink:to="loc_erii_February2025AuthorizationMember_6288f148-0fa3-47b6-8781-e45f15569035" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_August2025AuthorizationMember_afeb00df-2cc8-4c0f-abbd-8338171bfb79" xlink:href="erii-20251231.xsd#erii_August2025AuthorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_d0ef809b-328d-4ed5-b510-d6bef175dd2f" xlink:to="loc_erii_August2025AuthorizationMember_afeb00df-2cc8-4c0f-abbd-8338171bfb79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_abec774a-bfb6-4823-9cb9-e1f0c4d4adc8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_abec774a-bfb6-4823-9cb9-e1f0c4d4adc8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_e1112b13-d83b-4a0f-91be-b657917d0952" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_e1112b13-d83b-4a0f-91be-b657917d0952" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_6a6e2632-3722-4832-aa98-23cd6ed519a5" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_6a6e2632-3722-4832-aa98-23cd6ed519a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_8c97e9d6-f1d7-45e4-be39-80803fd4f4c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_8c97e9d6-f1d7-45e4-be39-80803fd4f4c1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_8b8c70e7-b9e4-44e3-9b08-bbf71823a337" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c842f2dc-7636-4863-8c98-867f3f308f1f" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_8b8c70e7-b9e4-44e3-9b08-bbf71823a337" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationNarrativeDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_b5404a64-740e-42fd-8dfd-9691d3618512" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:to="loc_us-gaap_PlanNameAxis_b5404a64-740e-42fd-8dfd-9691d3618512" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_b5404a64-740e-42fd-8dfd-9691d3618512_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_b5404a64-740e-42fd-8dfd-9691d3618512" xlink:to="loc_us-gaap_PlanNameDomain_b5404a64-740e-42fd-8dfd-9691d3618512_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_85059526-3db2-4731-a724-5d89bd6f89fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_b5404a64-740e-42fd-8dfd-9691d3618512" xlink:to="loc_us-gaap_PlanNameDomain_85059526-3db2-4731-a724-5d89bd6f89fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_A2020IncentivePlanMember_c3a1eb28-d515-4f19-aaee-0e42c7c505b3" xlink:href="erii-20251231.xsd#erii_A2020IncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_85059526-3db2-4731-a724-5d89bd6f89fa" xlink:to="loc_erii_A2020IncentivePlanMember_c3a1eb28-d515-4f19-aaee-0e42c7c505b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_PredecessorPlansMember_3201e858-3bef-4483-99f6-bba6c3a8412a" xlink:href="erii-20251231.xsd#erii_PredecessorPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_85059526-3db2-4731-a724-5d89bd6f89fa" xlink:to="loc_erii_PredecessorPlansMember_3201e858-3bef-4483-99f6-bba6c3a8412a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_296d60fd-9c67-459b-b345-cc0c644bcbb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:to="loc_us-gaap_AwardTypeAxis_296d60fd-9c67-459b-b345-cc0c644bcbb2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_296d60fd-9c67-459b-b345-cc0c644bcbb2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_296d60fd-9c67-459b-b345-cc0c644bcbb2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_296d60fd-9c67-459b-b345-cc0c644bcbb2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_296d60fd-9c67-459b-b345-cc0c644bcbb2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmployeeStockOptionsCreatedUnderNewPlanMember_e9c6532a-71b9-4a79-96df-2f420a5f5c83" xlink:href="erii-20251231.xsd#erii_EmployeeStockOptionsCreatedUnderNewPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:to="loc_erii_EmployeeStockOptionsCreatedUnderNewPlanMember_e9c6532a-71b9-4a79-96df-2f420a5f5c83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmployeeStockOptionsUnissuedUnderPriorPlanMember_0c25ba4e-9098-44ac-8324-70ff358417a3" xlink:href="erii-20251231.xsd#erii_EmployeeStockOptionsUnissuedUnderPriorPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:to="loc_erii_EmployeeStockOptionsUnissuedUnderPriorPlanMember_0c25ba4e-9098-44ac-8324-70ff358417a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_7ff2d9c9-cd5c-4e40-a871-8a571c8a4aa9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_7ff2d9c9-cd5c-4e40-a871-8a571c8a4aa9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_019c7189-2a62-7c60-8b09-12c4555bfd8a" xlink:href="erii-20251231.xsd#erii_PerformanceRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_37a71d43-a10f-4c7f-808c-e40085435795" xlink:to="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_019c7189-2a62-7c60-8b09-12c4555bfd8a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_3b87904b-a70c-493e-8076-492a1a2eaf74" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:to="loc_srt_TitleOfIndividualAxis_3b87904b-a70c-493e-8076-492a1a2eaf74" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_3b87904b-a70c-493e-8076-492a1a2eaf74_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_3b87904b-a70c-493e-8076-492a1a2eaf74" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_3b87904b-a70c-493e-8076-492a1a2eaf74_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_0ac29834-8af4-44d6-b985-b3069c5aadb4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_3b87904b-a70c-493e-8076-492a1a2eaf74" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_0ac29834-8af4-44d6-b985-b3069c5aadb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_DirectorMember_a0c75a01-59bf-4beb-a6dc-35dcb7e862cc" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_DirectorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_0ac29834-8af4-44d6-b985-b3069c5aadb4" xlink:to="loc_srt_DirectorMember_a0c75a01-59bf-4beb-a6dc-35dcb7e862cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_7a9831e6-74b3-443f-ab69-b8c6da820e76" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c18526c8-68fb-4c61-afe5-14d5087bb1e3" xlink:to="loc_srt_RangeAxis_7a9831e6-74b3-443f-ab69-b8c6da820e76" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7a9831e6-74b3-443f-ab69-b8c6da820e76_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_7a9831e6-74b3-443f-ab69-b8c6da820e76" xlink:to="loc_srt_RangeMember_7a9831e6-74b3-443f-ab69-b8c6da820e76_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9eb3c42e-9392-4d1d-a914-22cb25d2eaed" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_7a9831e6-74b3-443f-ab69-b8c6da820e76" xlink:to="loc_srt_RangeMember_9eb3c42e-9392-4d1d-a914-22cb25d2eaed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_c46565de-f0dd-4d73-adad-80668cc6cbff" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9eb3c42e-9392-4d1d-a914-22cb25d2eaed" xlink:to="loc_srt_MinimumMember_c46565de-f0dd-4d73-adad-80668cc6cbff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_a501ae5a-67f2-44c0-80fd-ee95f16590ff" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9eb3c42e-9392-4d1d-a914-22cb25d2eaed" xlink:to="loc_srt_MaximumMember_a501ae5a-67f2-44c0-80fd-ee95f16590ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_d5175906-dd33-4f30-af69-3a9c6a25087f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_d5175906-dd33-4f30-af69-3a9c6a25087f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_387030e8-f57e-4be8-bf78-3bfcb8516f29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_387030e8-f57e-4be8-bf78-3bfcb8516f29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_7749521b-6a84-4d2d-8e4c-b07d1e135bd2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_7749521b-6a84-4d2d-8e4c-b07d1e135bd2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_2a83ff82-f706-4c78-a8e8-349aa18a5b9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_2a83ff82-f706-4c78-a8e8-349aa18a5b9d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_376626e9-a997-4247-9d2f-6dfe50564014" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_376626e9-a997-4247-9d2f-6dfe50564014" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_be9a1b83-a289-4ef5-acc2-a76f51817588" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ed1d3d20-76f9-47a8-a34d-842bc3ae6c9e" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_be9a1b83-a289-4ef5-acc2-a76f51817588" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofBlackScholesOptionPricingModelAssumptionsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationScheduleofBlackScholesOptionPricingModelAssumptionsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofBlackScholesOptionPricingModelAssumptionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f693b81d-8b52-4c88-90f6-d11b0e3835e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f693b81d-8b52-4c88-90f6-d11b0e3835e7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_a0265506-b5e1-48c9-a20d-c3324e7dfa25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f693b81d-8b52-4c88-90f6-d11b0e3835e7" xlink:to="loc_us-gaap_AwardTypeAxis_a0265506-b5e1-48c9-a20d-c3324e7dfa25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0265506-b5e1-48c9-a20d-c3324e7dfa25_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_a0265506-b5e1-48c9-a20d-c3324e7dfa25" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0265506-b5e1-48c9-a20d-c3324e7dfa25_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0eb9f565-3c53-488e-843c-4ebc5eb126c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_a0265506-b5e1-48c9-a20d-c3324e7dfa25" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0eb9f565-3c53-488e-843c-4ebc5eb126c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmployeeStockOptionAndStockAppreciationRightsMember_f738673d-a5b6-4ae6-a94c-73d03c1dfdaa" xlink:href="erii-20251231.xsd#erii_EmployeeStockOptionAndStockAppreciationRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0eb9f565-3c53-488e-843c-4ebc5eb126c7" xlink:to="loc_erii_EmployeeStockOptionAndStockAppreciationRightsMember_f738673d-a5b6-4ae6-a94c-73d03c1dfdaa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_05162c74-a44c-46c0-80a6-fb4618abaf19" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_05162c74-a44c-46c0-80a6-fb4618abaf19" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_9d2283df-13eb-4c59-b2a6-3e6aad95ff19" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_9d2283df-13eb-4c59-b2a6-3e6aad95ff19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_7d1c2ab5-4617-4613-90f5-12322750be9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_7d1c2ab5-4617-4613-90f5-12322750be9f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_62a5c2e3-4d2e-46b3-967f-ef7390cbf900" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_62a5c2e3-4d2e-46b3-967f-ef7390cbf900" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_23d3a10e-7aa8-4eaa-98a3-80bdbff9be2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_23d3a10e-7aa8-4eaa-98a3-80bdbff9be2b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_851143a2-96ec-476b-919f-493919d39e9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_851143a2-96ec-476b-919f-493919d39e9e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue_2dcb26ee-7c78-452a-94b5-624a8f34150b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2dc39a67-5948-48e2-9faa-3da0ecd78c2c" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue_2dcb26ee-7c78-452a-94b5-624a8f34150b" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofSharebasedCompensationExpenseDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationScheduleofSharebasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofSharebasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6be0cc3b-2cc1-428e-af47-7c25648ca3de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_af86e836-aae4-4a39-a35d-4bfbdfbea853" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6be0cc3b-2cc1-428e-af47-7c25648ca3de" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_af86e836-aae4-4a39-a35d-4bfbdfbea853" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_4fba8925-ae58-422a-b540-0b15a6d508cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_af86e836-aae4-4a39-a35d-4bfbdfbea853" xlink:to="loc_us-gaap_AwardTypeAxis_4fba8925-ae58-422a-b540-0b15a6d508cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4fba8925-ae58-422a-b540-0b15a6d508cc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4fba8925-ae58-422a-b540-0b15a6d508cc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4fba8925-ae58-422a-b540-0b15a6d508cc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e66154b5-1c27-425c-a8b1-c74c98fc99d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4fba8925-ae58-422a-b540-0b15a6d508cc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e66154b5-1c27-425c-a8b1-c74c98fc99d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmployeeStockOptionAndStockAppreciationRightsMember_2e7aef54-f73c-4e14-8ff4-d767f1604952" xlink:href="erii-20251231.xsd#erii_EmployeeStockOptionAndStockAppreciationRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e66154b5-1c27-425c-a8b1-c74c98fc99d4" xlink:to="loc_erii_EmployeeStockOptionAndStockAppreciationRightsMember_2e7aef54-f73c-4e14-8ff4-d767f1604952" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_ba1f4d8e-3890-422d-915a-3a3864ec3409" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e66154b5-1c27-425c-a8b1-c74c98fc99d4" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_ba1f4d8e-3890-422d-915a-3a3864ec3409" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_58404818-a414-4684-85db-afcfcb1688d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_af86e836-aae4-4a39-a35d-4bfbdfbea853" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_58404818-a414-4684-85db-afcfcb1688d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_58404818-a414-4684-85db-afcfcb1688d6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_58404818-a414-4684-85db-afcfcb1688d6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_58404818-a414-4684-85db-afcfcb1688d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_58404818-a414-4684-85db-afcfcb1688d6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_0856490e-ba99-4eab-b338-a3035fd20d57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:to="loc_us-gaap_CostOfSalesMember_0856490e-ba99-4eab-b338-a3035fd20d57" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_41382559-e16a-4d28-9473-6439cda2dc84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_41382559-e16a-4d28-9473-6439cda2dc84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_1fdd09d2-82ec-4167-9874-51fc239ab8ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_1fdd09d2-82ec-4167-9874-51fc239ab8ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_eea3930b-f8e2-4d7e-9a4b-49ea2a23d80e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2afbd6d1-dc99-49af-afde-14ca506261cf" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_eea3930b-f8e2-4d7e-9a4b-49ea2a23d80e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_9d282e35-c706-49a8-a179-4504c7fa6e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6be0cc3b-2cc1-428e-af47-7c25648ca3de" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_9d282e35-c706-49a8-a179-4504c7fa6e8f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofRestrictedStockUnitsActivityDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationScheduleofRestrictedStockUnitsActivityDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofRestrictedStockUnitsActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ab7c0831-fd85-400b-bbd3-0e009872b753" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_83e6178c-483d-479f-999f-ae04216fa2e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ab7c0831-fd85-400b-bbd3-0e009872b753" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_83e6178c-483d-479f-999f-ae04216fa2e4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_ff842fdf-4395-467b-a115-d0e8e95abcc6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_83e6178c-483d-479f-999f-ae04216fa2e4" xlink:to="loc_us-gaap_AwardTypeAxis_ff842fdf-4395-467b-a115-d0e8e95abcc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ff842fdf-4395-467b-a115-d0e8e95abcc6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_ff842fdf-4395-467b-a115-d0e8e95abcc6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ff842fdf-4395-467b-a115-d0e8e95abcc6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2bdf6765-0c7a-4772-958a-ad32175562d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_ff842fdf-4395-467b-a115-d0e8e95abcc6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2bdf6765-0c7a-4772-958a-ad32175562d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a179232b-34ff-4d83-a53a-86c48921ee63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2bdf6765-0c7a-4772-958a-ad32175562d0" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a179232b-34ff-4d83-a53a-86c48921ee63" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_9d76b6ca-7aa0-4470-8393-c550ca420589" xlink:href="erii-20251231.xsd#erii_PerformanceRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2bdf6765-0c7a-4772-958a-ad32175562d0" xlink:to="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_9d76b6ca-7aa0-4470-8393-c550ca420589" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ab7c0831-fd85-400b-bbd3-0e009872b753" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_ee44468f-3561-4965-b0e4-9f8e4c251ef0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_ee44468f-3561-4965-b0e4-9f8e4c251ef0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_ae25576e-2459-4dfc-8af6-76da293995dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_ae25576e-2459-4dfc-8af6-76da293995dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_e4c263c4-1294-462e-bc7a-5f4e11d63cfa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_e4c263c4-1294-462e-bc7a-5f4e11d63cfa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_ddb5f725-d7cb-4d4e-9df3-96d275c75a52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_6416bf0a-cb66-47b8-8a53-78210b857e5a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_ddb5f725-d7cb-4d4e-9df3-96d275c75a52" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8803a280-71d9-4042-9c57-69ce952da6ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_ab7c0831-fd85-400b-bbd3-0e009872b753" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_ec2d19ab-39c5-4c9a-ae0f-f801d231b9d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_ec2d19ab-39c5-4c9a-ae0f-f801d231b9d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_60117e15-6eab-46c0-ad56-21958cc74381" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_60117e15-6eab-46c0-ad56-21958cc74381" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_a8be3a97-4eb3-4849-b987-e9f60850e5af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_a8be3a97-4eb3-4849-b987-e9f60850e5af" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_dd6bad97-7c98-4472-bfc5-f9e658eceb18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9c671e26-2252-444f-a952-53849e275de4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_dd6bad97-7c98-4472-bfc5-f9e658eceb18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_07dcdaf3-6b5d-4087-865e-31f75c1330cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofVestedEquityAwardsDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationScheduleofVestedEquityAwardsDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofVestedEquityAwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_aaaa1c1c-d54c-47a3-8f7c-69de1630dce7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9a387938-a19e-42f0-a986-655941f1b2c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_aaaa1c1c-d54c-47a3-8f7c-69de1630dce7" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9a387938-a19e-42f0-a986-655941f1b2c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_25881874-8b7d-4cfc-8a96-39ec4402587e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9a387938-a19e-42f0-a986-655941f1b2c3" xlink:to="loc_us-gaap_AwardTypeAxis_25881874-8b7d-4cfc-8a96-39ec4402587e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_25881874-8b7d-4cfc-8a96-39ec4402587e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_25881874-8b7d-4cfc-8a96-39ec4402587e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_25881874-8b7d-4cfc-8a96-39ec4402587e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4be9dec7-69bc-4b58-ab35-7a367a61f4c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_25881874-8b7d-4cfc-8a96-39ec4402587e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4be9dec7-69bc-4b58-ab35-7a367a61f4c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_846ba4b9-f0c1-4383-9d95-35a124d6d95d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4be9dec7-69bc-4b58-ab35-7a367a61f4c4" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_846ba4b9-f0c1-4383-9d95-35a124d6d95d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_d288740d-853c-4107-a290-8e4b59b6868e" xlink:href="erii-20251231.xsd#erii_PerformanceRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4be9dec7-69bc-4b58-ab35-7a367a61f4c4" xlink:to="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_d288740d-853c-4107-a290-8e4b59b6868e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAndStockAppreciationRightsVestedInPeriodFairValue_019c7192-00aa-7d6a-9bb1-c36f55fa7239" xlink:href="erii-20251231.xsd#erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAndStockAppreciationRightsVestedInPeriodFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_aaaa1c1c-d54c-47a3-8f7c-69de1630dce7" xlink:to="loc_erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAndStockAppreciationRightsVestedInPeriodFairValue_019c7192-00aa-7d6a-9bb1-c36f55fa7239" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_43b168ae-fbc9-470a-b77b-d693bcc7aba3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_aaaa1c1c-d54c-47a3-8f7c-69de1630dce7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_43b168ae-fbc9-470a-b77b-d693bcc7aba3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsVestedInPeriodFairValue_019c7194-9569-7a64-b6ba-b7bd10a02df9" xlink:href="erii-20251231.xsd#erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsVestedInPeriodFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_aaaa1c1c-d54c-47a3-8f7c-69de1630dce7" xlink:to="loc_erii_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsVestedInPeriodFairValue_019c7194-9569-7a64-b6ba-b7bd10a02df9" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofUnamortizedCompensationCostandGrantDateFairValueDetails" xlink:type="simple" xlink:href="erii-20251231.xsd#StockbasedCompensationScheduleofUnamortizedCompensationCostandGrantDateFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.energyrecovery.com/role/StockbasedCompensationScheduleofUnamortizedCompensationCostandGrantDateFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_43725aa0-963a-4984-ace7-88a94a3397fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b43c9fc4-6343-4fb3-86fc-895e82672ebe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_43725aa0-963a-4984-ace7-88a94a3397fa" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b43c9fc4-6343-4fb3-86fc-895e82672ebe" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_42574172-3b44-43f3-b6e0-ea0b618dc99e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b43c9fc4-6343-4fb3-86fc-895e82672ebe" xlink:to="loc_us-gaap_AwardTypeAxis_42574172-3b44-43f3-b6e0-ea0b618dc99e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_42574172-3b44-43f3-b6e0-ea0b618dc99e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_42574172-3b44-43f3-b6e0-ea0b618dc99e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_42574172-3b44-43f3-b6e0-ea0b618dc99e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8f8f97e6-d0f1-4b60-ad9f-b86a1d48d5f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_42574172-3b44-43f3-b6e0-ea0b618dc99e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8f8f97e6-d0f1-4b60-ad9f-b86a1d48d5f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_StockOptionsAndStockAppreciationRightsSARsMember_019c7198-46aa-7711-9947-1879c5685251" xlink:href="erii-20251231.xsd#erii_StockOptionsAndStockAppreciationRightsSARsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8f8f97e6-d0f1-4b60-ad9f-b86a1d48d5f8" xlink:to="loc_erii_StockOptionsAndStockAppreciationRightsSARsMember_019c7198-46aa-7711-9947-1879c5685251" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a6c908a6-cec6-46f5-a5dc-a947f22967cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8f8f97e6-d0f1-4b60-ad9f-b86a1d48d5f8" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a6c908a6-cec6-46f5-a5dc-a947f22967cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_251f229e-77b8-4f7e-910c-e9630395aecc" xlink:href="erii-20251231.xsd#erii_PerformanceRestrictedStockUnitsPRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8f8f97e6-d0f1-4b60-ad9f-b86a1d48d5f8" xlink:to="loc_erii_PerformanceRestrictedStockUnitsPRSUsMember_251f229e-77b8-4f7e-910c-e9630395aecc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_a84868fb-8e03-42c4-b48f-7c675673f8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_43725aa0-963a-4984-ace7-88a94a3397fa" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_a84868fb-8e03-42c4-b48f-7c675673f8d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_b4e21a26-e9df-4c86-89dd-17d40a73c1f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_43725aa0-963a-4984-ace7-88a94a3397fa" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_b4e21a26-e9df-4c86-89dd-17d40a73c1f9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.energyrecovery.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="erii-20251231.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_604437ec-d03d-4642-bf40-c7400d78536c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_604437ec-d03d-4642-bf40-c7400d78536c" xlink:to="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_7a31af43-3779-4b55-84bc-3b430f009af4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_7a31af43-3779-4b55-84bc-3b430f009af4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_7a31af43-3779-4b55-84bc-3b430f009af4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_7a31af43-3779-4b55-84bc-3b430f009af4" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_7a31af43-3779-4b55-84bc-3b430f009af4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_3b61972f-757f-4851-9732-70625c3ef545" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_7a31af43-3779-4b55-84bc-3b430f009af4" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_3b61972f-757f-4851-9732-70625c3ef545" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_9d2714a6-6211-40c0-a22e-93f14481fdb6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_3b61972f-757f-4851-9732-70625c3ef545" xlink:to="loc_us-gaap_SubsequentEventMember_9d2714a6-6211-40c0-a22e-93f14481fdb6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_019c73fd-2ac3-7ae5-80ea-77190f95a112" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:to="loc_srt_StatementScenarioAxis_019c73fd-2ac3-7ae5-80ea-77190f95a112" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_019c73fd-2ac3-7ae5-80ea-77190f95a112_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_019c73fd-2ac3-7ae5-80ea-77190f95a112" xlink:to="loc_srt_ScenarioUnspecifiedDomain_019c73fd-2ac3-7ae5-80ea-77190f95a112_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_019c73fd-2ac3-704c-9766-1024a98047f2" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_019c73fd-2ac3-7ae5-80ea-77190f95a112" xlink:to="loc_srt_ScenarioUnspecifiedDomain_019c73fd-2ac3-704c-9766-1024a98047f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_019c73fd-48b5-7c79-a2a7-00774821b831" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_019c73fd-2ac3-704c-9766-1024a98047f2" xlink:to="loc_srt_ScenarioForecastMember_019c73fd-48b5-7c79-a2a7-00774821b831" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019c73fc-96e3-7d35-959a-585b4d2e0149" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:to="loc_srt_RangeAxis_019c73fc-96e3-7d35-959a-585b4d2e0149" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c73fc-96e3-7d35-959a-585b4d2e0149_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019c73fc-96e3-7d35-959a-585b4d2e0149" xlink:to="loc_srt_RangeMember_019c73fc-96e3-7d35-959a-585b4d2e0149_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c73fc-96e3-7ff7-b01a-2f5322e0a841" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019c73fc-96e3-7d35-959a-585b4d2e0149" xlink:to="loc_srt_RangeMember_019c73fc-96e3-7ff7-b01a-2f5322e0a841" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019c73fc-bf0b-7b89-b191-a43e8d8830d4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c73fc-96e3-7ff7-b01a-2f5322e0a841" xlink:to="loc_srt_MinimumMember_019c73fc-bf0b-7b89-b191-a43e8d8830d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019c73fc-f4e7-7498-b8cc-bdecafd64c22" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c73fc-96e3-7ff7-b01a-2f5322e0a841" xlink:to="loc_srt_MaximumMember_019c73fc-f4e7-7498-b8cc-bdecafd64c22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019c7400-9bfd-7264-94e2-72726b18769e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_bd02d546-6803-43a2-834f-b2cdf79be68e" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019c7400-9bfd-7264-94e2-72726b18769e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c7400-9bfd-7264-94e2-72726b18769e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c7400-9bfd-7264-94e2-72726b18769e" xlink:to="loc_us-gaap_SegmentDomain_019c7400-9bfd-7264-94e2-72726b18769e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019c7400-9bfd-7d4c-9531-8571b39f5db4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019c7400-9bfd-7264-94e2-72726b18769e" xlink:to="loc_us-gaap_SegmentDomain_019c7400-9bfd-7d4c-9531-8571b39f5db4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_EmergingTechnologiesSegmentMember_019c7400-c06e-74a7-919b-e5dec898021a" xlink:href="erii-20251231.xsd#erii_EmergingTechnologiesSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019c7400-9bfd-7d4c-9531-8571b39f5db4" xlink:to="loc_erii_EmergingTechnologiesSegmentMember_019c7400-c06e-74a7-919b-e5dec898021a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_019c73fa-84ba-7f47-81ae-671e6f818dac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_604437ec-d03d-4642-bf40-c7400d78536c" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_019c73fa-84ba-7f47-81ae-671e6f818dac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_019c91b7-6a2c-7913-bb65-c2587023bfa9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_604437ec-d03d-4642-bf40-c7400d78536c" xlink:to="loc_us-gaap_RestructuringCharges_019c91b7-6a2c-7913-bb65-c2587023bfa9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.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/2025/ecd-2025.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RodneyClementeMember_4a92b303-3a88-4729-aa92-5b2bd790fbac" xlink:href="erii-20251231.xsd#erii_RodneyClementeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_erii_RodneyClementeMember_4a92b303-3a88-4729-aa92-5b2bd790fbac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_erii_RamRamananMember_019c71e0-16ae-7cb7-b276-14b15b8aba3c" xlink:href="erii-20251231.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_019c71e0-16ae-7cb7-b276-14b15b8aba3c" xlink:type="arc" order="3"/>
  </link:definitionLink>
</link:linkbase>
