<?xml version="1.0" encoding="us-ascii"?>
<!--Generated by Broadridge PROfile 23.1.2.5118 Broadridge-->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:t1="http://xbrl.org/2005/xbrldt">
  <link:roleRef roleURI="http://yorkwater.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#ScheduleIiValuationAndQualifyingAccountsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SubsequentEventDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SubsequentEventDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxesDetailsCalc2" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxesDetailsCalc2" />
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#TaxesOtherThanIncomeTaxesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/StockbasedCompensationDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#StockbasedCompensationDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansDefinedContributionPlanDeferredCompensationAndOtherDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansDefinedContributionPlanDeferredCompensationAndOtherDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansFairValuesOfPensionPlanAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansFairValuesOfPensionPlanAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansWeightedaverageAssumptionsUsedDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansWeightedaverageAssumptionsUsedDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansProjectedBenefitObligationAccumulatedBenefitObligationAndFairValueOfPlanAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansProjectedBenefitObligationAccumulatedBenefitObligationAndFairValueOfPlanAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansBenefitPaymentsExpectedToBePaidDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansBenefitPaymentsExpectedToBePaidDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/RateMattersDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#RateMattersDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/RevenueDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#RevenueDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/CommitmentsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#CommitmentsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/FairValueOfFinancialInstrumentsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#FairValueOfFinancialInstrumentsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsDebtCovenantsAndRestrictionsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsDebtCovenantsAndRestrictionsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsLineOfCreditBorrowingsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsLineOfCreditBorrowingsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsInterestRateSwapAgreementDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsInterestRateSwapAgreementDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsVariableRateLongtermDebtDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsVariableRateLongtermDebtDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsFixedRateLongtermDebtDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsFixedRateLongtermDebtDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsPaymentsDueByYearDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsPaymentsDueByYearDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsLongtermDebtDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsLongtermDebtDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/CommonStockAndEarningsPerShareDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#CommonStockAndEarningsPerShareDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstructionDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#NoteReceivableAndCustomersAdvancesForConstructionDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/AccountsReceivableAndContractAssetsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#AccountsReceivableAndContractAssetsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/AcquisitionsDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#AcquisitionsDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesAllowanceForFundsUsedDuringConstructionDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesAllowanceForFundsUsedDuringConstructionDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesIncomeTaxesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesIncomeTaxesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesInterestRateSwapAgreementDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesInterestRateSwapAgreementDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesRegulatoryAssetsAndLiabilitiesDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesRegulatoryAssetsAndLiabilitiesDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesRestrictedCashDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesRestrictedCashDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesUtilityPlantAndDepreciationDetails" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesUtilityPlantAndDepreciationDetails" />
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxesTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxesTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#TaxesOtherThanIncomeTaxesTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/StockbasedCompensationTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#StockbasedCompensationTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlansTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlansTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/RevenueTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#RevenueTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/FairValueOfFinancialInstrumentsTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#FairValueOfFinancialInstrumentsTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowingsTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/CommonStockAndEarningsPerShareTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#CommonStockAndEarningsPerShareTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstructionTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#NoteReceivableAndCustomersAdvancesForConstructionTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/AccountsReceivableAndContractAssetsTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#AccountsReceivableAndContractAssetsTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesTables" />
  <link:roleRef roleURI="http://yorkwater.com/role/RevenuePolicies" xlink:type="simple" xlink:href="yorw-20221231.xsd#RevenuePolicies" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPoliciesPolicies" />
  <link:roleRef roleURI="http://yorkwater.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple" xlink:href="yorw-20221231.xsd#ScheduleIiValuationAndQualifyingAccounts" />
  <link:roleRef roleURI="http://yorkwater.com/role/SubsequentEvent" xlink:type="simple" xlink:href="yorw-20221231.xsd#SubsequentEvent" />
  <link:roleRef roleURI="http://yorkwater.com/role/IncomeTaxes" xlink:type="simple" xlink:href="yorw-20221231.xsd#IncomeTaxes" />
  <link:roleRef roleURI="http://yorkwater.com/role/TaxesOtherThanIncomeTaxes" xlink:type="simple" xlink:href="yorw-20221231.xsd#TaxesOtherThanIncomeTaxes" />
  <link:roleRef roleURI="http://yorkwater.com/role/StockbasedCompensation" xlink:type="simple" xlink:href="yorw-20221231.xsd#StockbasedCompensation" />
  <link:roleRef roleURI="http://yorkwater.com/role/EmployeeBenefitPlans" xlink:type="simple" xlink:href="yorw-20221231.xsd#EmployeeBenefitPlans" />
  <link:roleRef roleURI="http://yorkwater.com/role/RateMatters" xlink:type="simple" xlink:href="yorw-20221231.xsd#RateMatters" />
  <link:roleRef roleURI="http://yorkwater.com/role/Revenue" xlink:type="simple" xlink:href="yorw-20221231.xsd#Revenue" />
  <link:roleRef roleURI="http://yorkwater.com/role/Commitments" xlink:type="simple" xlink:href="yorw-20221231.xsd#Commitments" />
  <link:roleRef roleURI="http://yorkwater.com/role/FairValueOfFinancialInstruments" xlink:type="simple" xlink:href="yorw-20221231.xsd#FairValueOfFinancialInstruments" />
  <link:roleRef roleURI="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowings" xlink:type="simple" xlink:href="yorw-20221231.xsd#LongtermDebtAndShorttermBorrowings" />
  <link:roleRef roleURI="http://yorkwater.com/role/CommonStockAndEarningsPerShare" xlink:type="simple" xlink:href="yorw-20221231.xsd#CommonStockAndEarningsPerShare" />
  <link:roleRef roleURI="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstruction" xlink:type="simple" xlink:href="yorw-20221231.xsd#NoteReceivableAndCustomersAdvancesForConstruction" />
  <link:roleRef roleURI="http://yorkwater.com/role/AccountsReceivableAndContractAssets" xlink:type="simple" xlink:href="yorw-20221231.xsd#AccountsReceivableAndContractAssets" />
  <link:roleRef roleURI="http://yorkwater.com/role/Acquisitions" xlink:type="simple" xlink:href="yorw-20221231.xsd#Acquisitions" />
  <link:roleRef roleURI="http://yorkwater.com/role/SignificantAccountingPolicies" xlink:type="simple" xlink:href="yorw-20221231.xsd#SignificantAccountingPolicies" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfCashFlowsParenthetical" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfCashFlowsParenthetical" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfCashFlows" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfCashFlows" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfCommonStockholdersEquityParenthetical" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfCommonStockholdersEquityParenthetical" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfCommonStockholdersEquity" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfCommonStockholdersEquity" />
  <link:roleRef roleURI="http://yorkwater.com/role/StatementsOfIncome" xlink:type="simple" xlink:href="yorw-20221231.xsd#StatementsOfIncome" />
  <link:roleRef roleURI="http://yorkwater.com/role/BalanceSheetsParenthetical" xlink:type="simple" xlink:href="yorw-20221231.xsd#BalanceSheetsParenthetical" />
  <link:roleRef roleURI="http://yorkwater.com/role/BalanceSheets" xlink:type="simple" xlink:href="yorw-20221231.xsd#BalanceSheets" />
  <link:roleRef roleURI="http://yorkwater.com/role/DocumentAndEntityInformation" xlink:type="simple" xlink:href="yorw-20221231.xsd#DocumentAndEntityInformation" />
  <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/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: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:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/DocumentAndEntityInformation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/BalanceSheets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/BalanceSheetsParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfIncome" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfCommonStockholdersEquity">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems" xlink:label="StatementLineItems" xlink:title="StatementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="IncreaseDecreaseInStockholdersEquityRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="definition: StatementLineItems to IncreaseDecreaseInStockholdersEquityRollForward" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity" xlink:label="StockholdersEquity" xlink:title="StockholdersEquity" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="StockholdersEquity" xlink:title="definition: StatementLineItems to StockholdersEquity" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="CommonStockSharesOutstanding" xlink:title="CommonStockSharesOutstanding" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="CommonStockSharesOutstanding" xlink:title="definition: StatementLineItems to CommonStockSharesOutstanding" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss" xlink:label="NetIncomeLoss" xlink:title="NetIncomeLoss" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="NetIncomeLoss" xlink:title="definition: StatementLineItems to NetIncomeLoss" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsCommonStock" xlink:label="DividendsCommonStock" xlink:title="DividendsCommonStock" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="DividendsCommonStock" xlink:title="definition: StatementLineItems to DividendsCommonStock" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="StockIssuedDuringPeriodValueNewIssues" xlink:title="StockIssuedDuringPeriodValueNewIssues" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="StockIssuedDuringPeriodValueNewIssues" xlink:title="definition: StatementLineItems to StockIssuedDuringPeriodValueNewIssues" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="StockIssuedDuringPeriodSharesNewIssues" xlink:title="StockIssuedDuringPeriodSharesNewIssues" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="StockIssuedDuringPeriodSharesNewIssues" xlink:title="definition: StatementLineItems to StockIssuedDuringPeriodSharesNewIssues" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlans" xlink:label="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlans" xlink:title="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlans" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlans" xlink:title="definition: StatementLineItems to IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlans" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlansShares" xlink:label="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlansShares" xlink:title="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlansShares" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlansShares" xlink:title="definition: StatementLineItems to IssuanceOfCommonStockUnderDividendReinvestmentDirectStockAndEmployeeStockPurchasePlansShares" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:label="StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:title="StockIssuedDuringPeriodValueRestrictedStockAwardGross" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:title="definition: StatementLineItems to StockIssuedDuringPeriodValueRestrictedStockAwardGross" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" xlink:label="StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" xlink:title="StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="StatementLineItems" xlink:to="StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" xlink:title="definition: StatementLineItems to StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable" xlink:label="StatementTable" xlink:title="StatementTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="StatementLineItems" xlink:to="StatementTable" xlink:title="definition: StatementLineItems to StatementTable" order="12.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="StatementEquityComponentsAxis" xlink:title="StatementEquityComponentsAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="StatementTable" xlink:to="StatementEquityComponentsAxis" xlink:title="definition: StatementTable to StatementEquityComponentsAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain" xlink:label="EquityComponentDomain" xlink:title="EquityComponentDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="StatementEquityComponentsAxis" xlink:to="EquityComponentDomain" xlink:title="definition: StatementEquityComponentsAxis to EquityComponentDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain" xlink:label="EquityComponentDomain_2" xlink:title="EquityComponentDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="StatementEquityComponentsAxis" xlink:to="EquityComponentDomain_2" xlink:title="definition: StatementEquityComponentsAxis to EquityComponentDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember" xlink:label="CommonStockMember" xlink:title="CommonStockMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquityComponentDomain" xlink:to="CommonStockMember" xlink:title="definition: EquityComponentDomain to CommonStockMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember" xlink:label="RetainedEarningsMember" xlink:title="RetainedEarningsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquityComponentDomain" xlink:to="RetainedEarningsMember" xlink:title="definition: EquityComponentDomain to RetainedEarningsMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfCommonStockholdersEquityParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfCashFlows" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StatementsOfCashFlowsParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/Acquisitions" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/AccountsReceivableAndContractAssets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstruction" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/CommonStockAndEarningsPerShare" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowings" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/FairValueOfFinancialInstruments" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/Commitments" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/Revenue" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RateMatters" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlans" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StockbasedCompensation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/TaxesOtherThanIncomeTaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SubsequentEvent" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/ScheduleIiValuationAndQualifyingAccounts" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RevenuePolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/AccountsReceivableAndContractAssetsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstructionTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/CommonStockAndEarningsPerShareTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/FairValueOfFinancialInstrumentsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RevenueTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StockbasedCompensationTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesUtilityPlantAndDepreciationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:label="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:title="PublicUtilityPropertyPlantAndEquipmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAbstract" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAbstract" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAbstract" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilitiesPropertyPlantAndEquipmentAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PublicUtilitiesPropertyPlantAndEquipmentAmortizationOfUtilityPlantAcquisitionAdjustments" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAmortizationOfUtilityPlantAcquisitionAdjustments" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAmortizationOfUtilityPlantAcquisitionAdjustments" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAmortizationOfUtilityPlantAcquisitionAdjustments" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilitiesPropertyPlantAndEquipmentAmortizationOfUtilityPlantAcquisitionAdjustments" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentPlantInService" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilitiesPropertyPlantAndEquipmentPlantInService" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="PropertyPlantAndEquipmentUsefulLife" xlink:title="PropertyPlantAndEquipmentUsefulLife" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PropertyPlantAndEquipmentUsefulLife" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PropertyPlantAndEquipmentUsefulLife" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilityPropertyPlantAndEquipmentTable" xlink:label="PublicUtilityPropertyPlantAndEquipmentTable" xlink:title="PublicUtilityPropertyPlantAndEquipmentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="PublicUtilityPropertyPlantAndEquipmentLineItems" xlink:to="PublicUtilityPropertyPlantAndEquipmentTable" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentLineItems to PublicUtilityPropertyPlantAndEquipmentTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilityAxis" xlink:label="PublicUtilityAxis" xlink:title="PublicUtilityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilityPropertyPlantAndEquipmentTable" xlink:to="PublicUtilityAxis" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentTable to PublicUtilityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilityPlantDomain" xlink:label="UtilityPlantDomain" xlink:title="UtilityPlantDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="PublicUtilityAxis" xlink:to="UtilityPlantDomain" xlink:title="definition: PublicUtilityAxis to UtilityPlantDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UtilityPlantDomain" xlink:label="UtilityPlantDomain_2" xlink:title="UtilityPlantDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="PublicUtilityAxis" xlink:to="UtilityPlantDomain_2" xlink:title="definition: PublicUtilityAxis to UtilityPlantDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MainsAndAccessoriesMember" xlink:label="MainsAndAccessoriesMember" xlink:title="MainsAndAccessoriesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="MainsAndAccessoriesMember" xlink:title="definition: UtilityPlantDomain to MainsAndAccessoriesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ServicesMetersAndHydrantsMember" xlink:label="ServicesMetersAndHydrantsMember" xlink:title="ServicesMetersAndHydrantsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="ServicesMetersAndHydrantsMember" xlink:title="definition: UtilityPlantDomain to ServicesMetersAndHydrantsMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_OperationsStructuresReservoirsAndWaterTanksMember" xlink:label="OperationsStructuresReservoirsAndWaterTanksMember" xlink:title="OperationsStructuresReservoirsAndWaterTanksMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="OperationsStructuresReservoirsAndWaterTanksMember" xlink:title="definition: UtilityPlantDomain to OperationsStructuresReservoirsAndWaterTanksMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PumpingAndTreatmentEquipmentMember" xlink:label="PumpingAndTreatmentEquipmentMember" xlink:title="PumpingAndTreatmentEquipmentMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="PumpingAndTreatmentEquipmentMember" xlink:title="definition: UtilityPlantDomain to PumpingAndTreatmentEquipmentMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_OfficeTransportationAndOperatingEquipmentMember" xlink:label="OfficeTransportationAndOperatingEquipmentMember" xlink:title="OfficeTransportationAndOperatingEquipmentMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="OfficeTransportationAndOperatingEquipmentMember" xlink:title="definition: UtilityPlantDomain to OfficeTransportationAndOperatingEquipmentMember" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_LandAndOtherNonDepreciableAssetsMember" xlink:label="LandAndOtherNonDepreciableAssetsMember" xlink:title="LandAndOtherNonDepreciableAssetsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="LandAndOtherNonDepreciableAssetsMember" xlink:title="definition: UtilityPlantDomain to LandAndOtherNonDepreciableAssetsMember" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_UtilityPlantInServiceMember" xlink:label="UtilityPlantInServiceMember" xlink:title="UtilityPlantInServiceMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="UtilityPlantInServiceMember" xlink:title="definition: UtilityPlantDomain to UtilityPlantInServiceMember" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConstructionInProgressMember" xlink:label="ConstructionInProgressMember" xlink:title="ConstructionInProgressMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="UtilityPlantDomain" xlink:to="ConstructionInProgressMember" xlink:title="definition: UtilityPlantDomain to ConstructionInProgressMember" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis" xlink:label="RangeAxis" xlink:title="RangeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilityPropertyPlantAndEquipmentTable" xlink:to="RangeAxis" xlink:title="definition: PublicUtilityPropertyPlantAndEquipmentTable to RangeAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RangeAxis" xlink:to="RangeMember" xlink:title="definition: RangeAxis to RangeMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember_2" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RangeAxis" xlink:to="RangeMember_2" xlink:title="definition: RangeAxis to RangeMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember" xlink:label="MinimumMember" xlink:title="MinimumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MinimumMember" xlink:title="definition: RangeMember to MinimumMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember" xlink:label="MaximumMember" xlink:title="MaximumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MaximumMember" xlink:title="definition: RangeMember to MaximumMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesRestrictedCashDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesRegulatoryAssetsAndLiabilitiesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilitiesLineItems" xlink:label="RegulatoryLiabilitiesLineItems" xlink:title="RegulatoryLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:label="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:title="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilities" xlink:label="RegulatoryLiabilities" xlink:title="RegulatoryLiabilities" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryLiabilities" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryLiabilities" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityAmortizationPeriod" xlink:label="RegulatoryLiabilityAmortizationPeriod" xlink:title="RegulatoryLiabilityAmortizationPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryLiabilityAmortizationPeriod" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryLiabilityAmortizationPeriod" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PublicUtilitiesApprovedAmortizationPeriod" xlink:label="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="PublicUtilitiesApprovedAmortizationPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="definition: RegulatoryLiabilitiesLineItems to PublicUtilitiesApprovedAmortizationPeriod" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRegulatoryLiabilitiesTable" xlink:label="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="ScheduleOfRegulatoryLiabilitiesTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="definition: RegulatoryLiabilitiesLineItems to ScheduleOfRegulatoryLiabilitiesTable" order="5.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityAxis" xlink:label="RegulatoryLiabilityAxis" xlink:title="RegulatoryLiabilityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryLiabilitiesTable" xlink:to="RegulatoryLiabilityAxis" xlink:title="definition: ScheduleOfRegulatoryLiabilitiesTable to RegulatoryLiabilityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain_2" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain_2" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ExcessAccumulatedDeferredIncomeTaxOnAcceleratedDepreciationMember" xlink:label="ExcessAccumulatedDeferredIncomeTaxOnAcceleratedDepreciationMember" xlink:title="ExcessAccumulatedDeferredIncomeTaxOnAcceleratedDepreciationMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="ExcessAccumulatedDeferredIncomeTaxOnAcceleratedDepreciationMember" xlink:title="definition: RegulatoryLiabilityDomain to ExcessAccumulatedDeferredIncomeTaxOnAcceleratedDepreciationMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PostretirementBenefitCostsMember" xlink:label="PostretirementBenefitCostsMember" xlink:title="PostretirementBenefitCostsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="PostretirementBenefitCostsMember" xlink:title="definition: RegulatoryLiabilityDomain to PostretirementBenefitCostsMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxChargesMember" xlink:label="DeferredIncomeTaxChargesMember" xlink:title="DeferredIncomeTaxChargesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="DeferredIncomeTaxChargesMember" xlink:title="definition: RegulatoryLiabilityDomain to DeferredIncomeTaxChargesMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TangiblePropertyRegulationsCatchUpDeductionMember" xlink:label="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="TangiblePropertyRegulationsCatchUpDeductionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="definition: RegulatoryLiabilityDomain to TangiblePropertyRegulationsCatchUpDeductionMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis" xlink:label="RangeAxis" xlink:title="RangeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryLiabilitiesTable" xlink:to="RangeAxis" xlink:title="definition: ScheduleOfRegulatoryLiabilitiesTable to RangeAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RangeAxis" xlink:to="RangeMember" xlink:title="definition: RangeAxis to RangeMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember_2" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RangeAxis" xlink:to="RangeMember_2" xlink:title="definition: RangeAxis to RangeMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember" xlink:label="MinimumMember" xlink:title="MinimumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MinimumMember" xlink:title="definition: RangeMember to MinimumMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember" xlink:label="MaximumMember" xlink:title="MaximumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MaximumMember" xlink:title="definition: RangeMember to MaximumMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetLineItems" xlink:label="RegulatoryAssetLineItems" xlink:title="RegulatoryAssetLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:label="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:title="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:title="definition: RegulatoryAssetLineItems to RegulatoryAssetsAndLiabilitiesDisclosureAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssets" xlink:label="RegulatoryAssets" xlink:title="RegulatoryAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="RegulatoryAssets" xlink:title="definition: RegulatoryAssetLineItems to RegulatoryAssets" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:label="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:title="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:title="definition: RegulatoryAssetLineItems to RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TermOfTariffModificationToReplaceCustomerOwnedLeadServiceLines" xlink:label="TermOfTariffModificationToReplaceCustomerOwnedLeadServiceLines" xlink:title="TermOfTariffModificationToReplaceCustomerOwnedLeadServiceLines" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="TermOfTariffModificationToReplaceCustomerOwnedLeadServiceLines" xlink:title="definition: RegulatoryAssetLineItems to TermOfTariffModificationToReplaceCustomerOwnedLeadServiceLines" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:label="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:title="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:title="definition: RegulatoryAssetLineItems to NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:label="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:title="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetLineItems" xlink:to="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:title="definition: RegulatoryAssetLineItems to TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRegulatoryAssetsTable" xlink:label="ScheduleOfRegulatoryAssetsTable" xlink:title="ScheduleOfRegulatoryAssetsTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="RegulatoryAssetLineItems" xlink:to="ScheduleOfRegulatoryAssetsTable" xlink:title="definition: RegulatoryAssetLineItems to ScheduleOfRegulatoryAssetsTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetAxis" xlink:label="RegulatoryAssetAxis" xlink:title="RegulatoryAssetAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryAssetsTable" xlink:to="RegulatoryAssetAxis" xlink:title="definition: ScheduleOfRegulatoryAssetsTable to RegulatoryAssetAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetDomain" xlink:label="RegulatoryAssetDomain" xlink:title="RegulatoryAssetDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RegulatoryAssetAxis" xlink:to="RegulatoryAssetDomain" xlink:title="definition: RegulatoryAssetAxis to RegulatoryAssetDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetDomain" xlink:label="RegulatoryAssetDomain_2" xlink:title="RegulatoryAssetDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RegulatoryAssetAxis" xlink:to="RegulatoryAssetDomain_2" xlink:title="definition: RegulatoryAssetAxis to RegulatoryAssetDomain_2" order="2.0" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="DeferredIncomeTaxChargesMember" xlink:title="definition: RegulatoryAssetDomain to DeferredIncomeTaxChargesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredDerivativeGainLossMember" xlink:label="DeferredDerivativeGainLossMember" xlink:title="DeferredDerivativeGainLossMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="DeferredDerivativeGainLossMember" xlink:title="definition: RegulatoryAssetDomain to DeferredDerivativeGainLossMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetRetirementObligationCostsMember" xlink:label="AssetRetirementObligationCostsMember" xlink:title="AssetRetirementObligationCostsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="AssetRetirementObligationCostsMember" xlink:title="definition: RegulatoryAssetDomain to AssetRetirementObligationCostsMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CustomerOwnedLeadServiceLinesMember" xlink:label="CustomerOwnedLeadServiceLinesMember" xlink:title="CustomerOwnedLeadServiceLinesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="CustomerOwnedLeadServiceLinesMember" xlink:title="definition: RegulatoryAssetDomain to CustomerOwnedLeadServiceLinesMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncomeTaxesOnCustomersAdvancesForConstructionAndContributionsInAidOfConstructionMember" xlink:label="IncomeTaxesOnCustomersAdvancesForConstructionAndContributionsInAidOfConstructionMember" xlink:title="IncomeTaxesOnCustomersAdvancesForConstructionAndContributionsInAidOfConstructionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="IncomeTaxesOnCustomersAdvancesForConstructionAndContributionsInAidOfConstructionMember" xlink:title="definition: RegulatoryAssetDomain to IncomeTaxesOnCustomersAdvancesForConstructionAndContributionsInAidOfConstructionMember" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ServiceLifeStudyExpensesMember" xlink:label="ServiceLifeStudyExpensesMember" xlink:title="ServiceLifeStudyExpensesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="ServiceLifeStudyExpensesMember" xlink:title="definition: RegulatoryAssetDomain to ServiceLifeStudyExpensesMember" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_RateCaseFilingExpensesMember" xlink:label="RateCaseFilingExpensesMember" xlink:title="RateCaseFilingExpensesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAssetDomain" xlink:to="RateCaseFilingExpensesMember" xlink:title="definition: RegulatoryAssetDomain to RateCaseFilingExpensesMember" order="7.0" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryAssetsTable" xlink:to="RangeAxis" xlink:title="definition: ScheduleOfRegulatoryAssetsTable to RangeAxis" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesInterestRateSwapAgreementDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesIncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilitiesLineItems" xlink:label="RegulatoryLiabilitiesLineItems" xlink:title="RegulatoryLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:label="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:title="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryAssetsAndLiabilitiesDisclosureAbstract" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryAssetsAndLiabilitiesDisclosureAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PublicUtilitiesApprovedAmortizationPeriod" xlink:label="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="PublicUtilitiesApprovedAmortizationPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="definition: RegulatoryLiabilitiesLineItems to PublicUtilitiesApprovedAmortizationPeriod" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRegulatoryLiabilitiesTable" xlink:label="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="ScheduleOfRegulatoryLiabilitiesTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="definition: RegulatoryLiabilitiesLineItems to ScheduleOfRegulatoryLiabilitiesTable" order="3.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityAxis" xlink:label="RegulatoryLiabilityAxis" xlink:title="RegulatoryLiabilityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryLiabilitiesTable" xlink:to="RegulatoryLiabilityAxis" xlink:title="definition: ScheduleOfRegulatoryLiabilitiesTable to RegulatoryLiabilityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain_2" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain_2" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TangiblePropertyRegulationsCatchUpDeductionMember" xlink:label="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="TangiblePropertyRegulationsCatchUpDeductionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="definition: RegulatoryLiabilityDomain to TangiblePropertyRegulationsCatchUpDeductionMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SignificantAccountingPoliciesAllowanceForFundsUsedDuringConstructionDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/AcquisitionsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionLineItems" xlink:label="AssetAcquisitionLineItems" xlink:title="AssetAcquisitionLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionConsiderationTransferredAbstract" xlink:label="AssetAcquisitionConsiderationTransferredAbstract" xlink:title="AssetAcquisitionConsiderationTransferredAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionLineItems" xlink:to="AssetAcquisitionConsiderationTransferredAbstract" xlink:title="definition: AssetAcquisitionLineItems to AssetAcquisitionConsiderationTransferredAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfCustomersAcquired" xlink:label="NumberOfCustomersAcquired" xlink:title="NumberOfCustomersAcquired" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionLineItems" xlink:to="NumberOfCustomersAcquired" xlink:title="definition: AssetAcquisitionLineItems to NumberOfCustomersAcquired" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireWaterAndWasteWaterSystems" xlink:label="PaymentsToAcquireWaterAndWasteWaterSystems" xlink:title="PaymentsToAcquireWaterAndWasteWaterSystems" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionLineItems" xlink:to="PaymentsToAcquireWaterAndWasteWaterSystems" xlink:title="definition: AssetAcquisitionLineItems to PaymentsToAcquireWaterAndWasteWaterSystems" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:label="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionLineItems" xlink:to="PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" xlink:title="definition: AssetAcquisitionLineItems to PublicUtilitiesPropertyPlantAndEquipmentAmountOfAcquisitionAdjustments1" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionTable" xlink:label="AssetAcquisitionTable" xlink:title="AssetAcquisitionTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="AssetAcquisitionLineItems" xlink:to="AssetAcquisitionTable" xlink:title="definition: AssetAcquisitionLineItems to AssetAcquisitionTable" order="5.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionAxis" xlink:label="AssetAcquisitionAxis" xlink:title="AssetAcquisitionAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="AssetAcquisitionTable" xlink:to="AssetAcquisitionAxis" xlink:title="definition: AssetAcquisitionTable to AssetAcquisitionAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionDomain" xlink:label="AssetAcquisitionDomain" xlink:title="AssetAcquisitionDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="AssetAcquisitionAxis" xlink:to="AssetAcquisitionDomain" xlink:title="definition: AssetAcquisitionAxis to AssetAcquisitionDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetAcquisitionDomain" xlink:label="AssetAcquisitionDomain_2" xlink:title="AssetAcquisitionDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="AssetAcquisitionAxis" xlink:to="AssetAcquisitionDomain_2" xlink:title="definition: AssetAcquisitionAxis to AssetAcquisitionDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WastewaterCollectionAssetsOfWestManheimTownshipMember" xlink:label="WastewaterCollectionAssetsOfWestManheimTownshipMember" xlink:title="WastewaterCollectionAssetsOfWestManheimTownshipMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WastewaterCollectionAssetsOfWestManheimTownshipMember" xlink:title="definition: AssetAcquisitionDomain to WastewaterCollectionAssetsOfWestManheimTownshipMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterAssetsAndWastewaterCollectionAndTreatmentAssetsOfCountryViewManorCommunityLlcMember" xlink:label="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsOfCountryViewManorCommunityLlcMember" xlink:title="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsOfCountryViewManorCommunityLlcMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsOfCountryViewManorCommunityLlcMember" xlink:title="definition: AssetAcquisitionDomain to WaterAssetsAndWastewaterCollectionAndTreatmentAssetsOfCountryViewManorCommunityLlcMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterAssetsAndWastewaterCollectionAndTreatmentAssetsJointlyOwnedByLetterkennyIndustrialDevelopmentAuthorityAndFranklinCountyGeneralAuthorityMember" xlink:label="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsJointlyOwnedByLetterkennyIndustrialDevelopmentAuthorityAndFranklinCountyGeneralAuthorityMember" xlink:title="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsJointlyOwnedByLetterkennyIndustrialDevelopmentAuthorityAndFranklinCountyGeneralAuthorityMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WaterAssetsAndWastewaterCollectionAndTreatmentAssetsJointlyOwnedByLetterkennyIndustrialDevelopmentAuthorityAndFranklinCountyGeneralAuthorityMember" xlink:title="definition: AssetAcquisitionDomain to WaterAssetsAndWastewaterCollectionAndTreatmentAssetsJointlyOwnedByLetterkennyIndustrialDevelopmentAuthorityAndFranklinCountyGeneralAuthorityMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterAssetsOfAlbrightTrailerParkOfRTBarclayIncMember" xlink:label="WaterAssetsOfAlbrightTrailerParkOfRTBarclayIncMember" xlink:title="WaterAssetsOfAlbrightTrailerParkOfRTBarclayIncMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WaterAssetsOfAlbrightTrailerParkOfRTBarclayIncMember" xlink:title="definition: AssetAcquisitionDomain to WaterAssetsOfAlbrightTrailerParkOfRTBarclayIncMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterAssetsOfScottWaterCompanyMember" xlink:label="WaterAssetsOfScottWaterCompanyMember" xlink:title="WaterAssetsOfScottWaterCompanyMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WaterAssetsOfScottWaterCompanyMember" xlink:title="definition: AssetAcquisitionDomain to WaterAssetsOfScottWaterCompanyMember" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WastewaterCollectionAndTreatmentAssetsOfSycWwtpLPAndAlbrightTrailerParkOfRTBarclayIncMember" xlink:label="WastewaterCollectionAndTreatmentAssetsOfSycWwtpLPAndAlbrightTrailerParkOfRTBarclayIncMember" xlink:title="WastewaterCollectionAndTreatmentAssetsOfSycWwtpLPAndAlbrightTrailerParkOfRTBarclayIncMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AssetAcquisitionDomain" xlink:to="WastewaterCollectionAndTreatmentAssetsOfSycWwtpLPAndAlbrightTrailerParkOfRTBarclayIncMember" xlink:title="definition: AssetAcquisitionDomain to WastewaterCollectionAndTreatmentAssetsOfSycWwtpLPAndAlbrightTrailerParkOfRTBarclayIncMember" order="6.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/AccountsReceivableAndContractAssetsDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/NoteReceivableAndCustomersAdvancesForConstructionDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/CommonStockAndEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsidiarySaleOfStockLineItems" xlink:label="SubsidiarySaleOfStockLineItems" xlink:title="SubsidiarySaleOfStockLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" xlink:label="CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" xlink:title="CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" xlink:title="definition: SubsidiarySaleOfStockLineItems to CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOrSaleOfEquityAbstract" xlink:label="ProceedsFromIssuanceOrSaleOfEquityAbstract" xlink:title="ProceedsFromIssuanceOrSaleOfEquityAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="ProceedsFromIssuanceOrSaleOfEquityAbstract" xlink:title="definition: SubsidiarySaleOfStockLineItems to ProceedsFromIssuanceOrSaleOfEquityAbstract" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="StockIssuedDuringPeriodSharesNewIssues" xlink:title="StockIssuedDuringPeriodSharesNewIssues" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="StockIssuedDuringPeriodSharesNewIssues" xlink:title="definition: SubsidiarySaleOfStockLineItems to StockIssuedDuringPeriodSharesNewIssues" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="SharesIssuedPricePerShare" xlink:title="SharesIssuedPricePerShare" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="SharesIssuedPricePerShare" xlink:title="definition: SubsidiarySaleOfStockLineItems to SharesIssuedPricePerShare" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="SaleOfStockConsiderationReceivedOnTransaction" xlink:title="SaleOfStockConsiderationReceivedOnTransaction" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="SaleOfStockConsiderationReceivedOnTransaction" xlink:title="definition: SubsidiarySaleOfStockLineItems to SaleOfStockConsiderationReceivedOnTransaction" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MinimumEmploymentPeriodRequiredToPurchaseSharesUnderEmployeeStockPurchasePlan" xlink:label="MinimumEmploymentPeriodRequiredToPurchaseSharesUnderEmployeeStockPurchasePlan" xlink:title="MinimumEmploymentPeriodRequiredToPurchaseSharesUnderEmployeeStockPurchasePlan" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="MinimumEmploymentPeriodRequiredToPurchaseSharesUnderEmployeeStockPurchasePlan" xlink:title="definition: SubsidiarySaleOfStockLineItems to MinimumEmploymentPeriodRequiredToPurchaseSharesUnderEmployeeStockPurchasePlan" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MaximumPercentageOfGrossCompensationAllowedToPurchaseShares" xlink:label="MaximumPercentageOfGrossCompensationAllowedToPurchaseShares" xlink:title="MaximumPercentageOfGrossCompensationAllowedToPurchaseShares" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="MaximumPercentageOfGrossCompensationAllowedToPurchaseShares" xlink:title="definition: SubsidiarySaleOfStockLineItems to MaximumPercentageOfGrossCompensationAllowedToPurchaseShares" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PurchasePriceAsPercentageOfFairMarketValueOfCommonStock" xlink:label="PurchasePriceAsPercentageOfFairMarketValueOfCommonStock" xlink:title="PurchasePriceAsPercentageOfFairMarketValueOfCommonStock" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="PurchasePriceAsPercentageOfFairMarketValueOfCommonStock" xlink:title="definition: SubsidiarySaleOfStockLineItems to PurchasePriceAsPercentageOfFairMarketValueOfCommonStock" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfSharesAuthorizedUnissuedAndRolledOverUnderPlan" xlink:label="NumberOfSharesAuthorizedUnissuedAndRolledOverUnderPlan" xlink:title="NumberOfSharesAuthorizedUnissuedAndRolledOverUnderPlan" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="NumberOfSharesAuthorizedUnissuedAndRolledOverUnderPlan" xlink:title="definition: SubsidiarySaleOfStockLineItems to NumberOfSharesAuthorizedUnissuedAndRolledOverUnderPlan" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:title="StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:title="definition: SubsidiarySaleOfStockLineItems to StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfAuthorizedSharesRemainingToBeIssued" xlink:label="NumberOfAuthorizedSharesRemainingToBeIssued" xlink:title="NumberOfAuthorizedSharesRemainingToBeIssued" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="NumberOfAuthorizedSharesRemainingToBeIssued" xlink:title="definition: SubsidiarySaleOfStockLineItems to NumberOfAuthorizedSharesRemainingToBeIssued" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" xlink:label="SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" xlink:title="SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="SubsidiarySaleOfStockLineItems" xlink:to="SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" xlink:title="definition: SubsidiarySaleOfStockLineItems to SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" order="12.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="SubsidiarySaleOfStockAxis" xlink:title="SubsidiarySaleOfStockAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable" xlink:to="SubsidiarySaleOfStockAxis" xlink:title="definition: SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable to SubsidiarySaleOfStockAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="SaleOfStockNameOfTransactionDomain" xlink:title="SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="SubsidiarySaleOfStockAxis" xlink:to="SaleOfStockNameOfTransactionDomain" xlink:title="definition: SubsidiarySaleOfStockAxis to SaleOfStockNameOfTransactionDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="SaleOfStockNameOfTransactionDomain_2" xlink:title="SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="SubsidiarySaleOfStockAxis" xlink:to="SaleOfStockNameOfTransactionDomain_2" xlink:title="definition: SubsidiarySaleOfStockAxis to SaleOfStockNameOfTransactionDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeStockMember" xlink:label="EmployeeStockMember" xlink:title="EmployeeStockMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SaleOfStockNameOfTransactionDomain" xlink:to="EmployeeStockMember" xlink:title="definition: SaleOfStockNameOfTransactionDomain to EmployeeStockMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" xlink:label="DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" xlink:title="DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SaleOfStockNameOfTransactionDomain" xlink:to="DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" xlink:title="definition: SaleOfStockNameOfTransactionDomain to DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OverAllotmentOptionMember" xlink:label="OverAllotmentOptionMember" xlink:title="OverAllotmentOptionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SaleOfStockNameOfTransactionDomain" xlink:to="OverAllotmentOptionMember" xlink:title="definition: SaleOfStockNameOfTransactionDomain to OverAllotmentOptionMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_OptionalDividendReinvestmentPortionOfPlanMember" xlink:label="OptionalDividendReinvestmentPortionOfPlanMember" xlink:title="OptionalDividendReinvestmentPortionOfPlanMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" xlink:to="OptionalDividendReinvestmentPortionOfPlanMember" xlink:title="definition: DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember to OptionalDividendReinvestmentPortionOfPlanMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DirectStockPurchasePortionOfPlanMember" xlink:label="DirectStockPurchasePortionOfPlanMember" xlink:title="DirectStockPurchasePortionOfPlanMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember" xlink:to="DirectStockPurchasePortionOfPlanMember" xlink:title="definition: DividendReinvestmentAndDirectStockPurchaseAndSalePlanMember to DirectStockPurchasePortionOfPlanMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsLongtermDebtDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="DebtInstrumentLineItems" xlink:title="DebtInstrumentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtCurrentAndNoncurrentAbstract" xlink:label="LongtermDebtCurrentAndNoncurrentAbstract" xlink:title="LongtermDebtCurrentAndNoncurrentAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongtermDebtCurrentAndNoncurrentAbstract" xlink:title="definition: DebtInstrumentLineItems to LongtermDebtCurrentAndNoncurrentAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="DebtInstrumentCarryingAmount" xlink:title="DebtInstrumentCarryingAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentCarryingAmount" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentCarryingAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="DebtInstrumentUnamortizedDiscount" xlink:title="DebtInstrumentUnamortizedDiscount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentUnamortizedDiscount" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentUnamortizedDiscount" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnamortizedDebtIssuanceExpense" xlink:label="UnamortizedDebtIssuanceExpense" xlink:title="UnamortizedDebtIssuanceExpense" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="UnamortizedDebtIssuanceExpense" xlink:title="definition: DebtInstrumentLineItems to UnamortizedDebtIssuanceExpense" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtCurrent" xlink:label="LongTermDebtCurrent" xlink:title="LongTermDebtCurrent" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtCurrent" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtCurrent" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="LongTermDebtNoncurrent" xlink:title="LongTermDebtNoncurrent" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtNoncurrent" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtNoncurrent" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="DebtInstrumentInterestRateStatedPercentage" xlink:title="DebtInstrumentInterestRateStatedPercentage" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentInterestRateStatedPercentage" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentInterestRateStatedPercentage" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable" xlink:label="DebtInstrumentTable" xlink:title="DebtInstrumentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTable" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTable" order="8.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: DebtInstrumentTable to DebtInstrumentAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesSeriesDDue2022Member" xlink:label="SeniorNotesSeriesDDue2022Member" xlink:title="SeniorNotesSeriesDDue2022Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesSeriesDDue2022Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesSeriesDDue2022Member" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:label="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="definition: DebtInstrumentNameDomain to VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PedfaExemptFacilitiesRevenueRefundingBondsSeriesAOf2019Member" xlink:label="PedfaExemptFacilitiesRevenueRefundingBondsSeriesAOf2019Member" xlink:title="PedfaExemptFacilitiesRevenueRefundingBondsSeriesAOf2019Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="PedfaExemptFacilitiesRevenueRefundingBondsSeriesAOf2019Member" xlink:title="definition: DebtInstrumentNameDomain to PedfaExemptFacilitiesRevenueRefundingBondsSeriesAOf2019Member" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PedfaExemptFacilitiesRevenueRefundingBondsSeriesBOf2019Member" xlink:label="PedfaExemptFacilitiesRevenueRefundingBondsSeriesBOf2019Member" xlink:title="PedfaExemptFacilitiesRevenueRefundingBondsSeriesBOf2019Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="PedfaExemptFacilitiesRevenueRefundingBondsSeriesBOf2019Member" xlink:title="definition: DebtInstrumentNameDomain to PedfaExemptFacilitiesRevenueRefundingBondsSeriesBOf2019Member" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesDue2040Member" xlink:label="SeniorNotesDue2040Member" xlink:title="SeniorNotesDue2040Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesDue2040Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesDue2040Member" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_YorkCountyIndustrialDevelopmentAuthorityExemptFacilitiesRevenueBondsSeries2015Due2029Through2045Member" xlink:label="YorkCountyIndustrialDevelopmentAuthorityExemptFacilitiesRevenueBondsSeries2015Due2029Through2045Member" xlink:title="YorkCountyIndustrialDevelopmentAuthorityExemptFacilitiesRevenueBondsSeries2015Due2029Through2045Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="YorkCountyIndustrialDevelopmentAuthorityExemptFacilitiesRevenueBondsSeries2015Due2029Through2045Member" xlink:title="definition: DebtInstrumentNameDomain to YorkCountyIndustrialDevelopmentAuthorityExemptFacilitiesRevenueBondsSeries2015Due2029Through2045Member" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesDue2049Member" xlink:label="SeniorNotesDue2049Member" xlink:title="SeniorNotesDue2049Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesDue2049Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesDue2049Member" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesDue2050Member" xlink:label="SeniorNotesDue2050Member" xlink:title="SeniorNotesDue2050Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesDue2050Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesDue2050Member" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CommittedLineOfCreditDue2024Member" xlink:label="CommittedLineOfCreditDue2024Member" xlink:title="CommittedLineOfCreditDue2024Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="CommittedLineOfCreditDue2024Member" xlink:title="definition: DebtInstrumentNameDomain to CommittedLineOfCreditDue2024Member" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis" xlink:label="RangeAxis" xlink:title="RangeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="RangeAxis" xlink:title="definition: DebtInstrumentTable to RangeAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RangeAxis" xlink:to="RangeMember" xlink:title="definition: RangeAxis to RangeMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember_2" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RangeAxis" xlink:to="RangeMember_2" xlink:title="definition: RangeAxis to RangeMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember" xlink:label="MinimumMember" xlink:title="MinimumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MinimumMember" xlink:title="definition: RangeMember to MinimumMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember" xlink:label="MaximumMember" xlink:title="MaximumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MaximumMember" xlink:title="definition: RangeMember to MaximumMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsPaymentsDueByYearDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="DebtInstrumentLineItems" xlink:title="DebtInstrumentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MaturitiesOfLongTermDebtAbstract" xlink:label="MaturitiesOfLongTermDebtAbstract" xlink:title="MaturitiesOfLongTermDebtAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="MaturitiesOfLongTermDebtAbstract" xlink:title="definition: DebtInstrumentLineItems to MaturitiesOfLongTermDebtAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:title="LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:title="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:title="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:title="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:title="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable" xlink:label="DebtInstrumentTable" xlink:title="DebtInstrumentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTable" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: DebtInstrumentTable to DebtInstrumentAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:label="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="definition: DebtInstrumentNameDomain to VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsFixedRateLongtermDebtDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="DebtInstrumentLineItems" xlink:title="DebtInstrumentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtAbstract" xlink:label="LongTermDebtAbstract" xlink:title="LongTermDebtAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtAbstract" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="DebtInstrumentInterestRateStatedPercentage" xlink:title="DebtInstrumentInterestRateStatedPercentage" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentInterestRateStatedPercentage" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentInterestRateStatedPercentage" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="DebtInstrumentMaturityDate" xlink:title="DebtInstrumentMaturityDate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentMaturityDate" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentMaturityDate" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="RepaymentsOfLongTermDebt" xlink:title="RepaymentsOfLongTermDebt" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="RepaymentsOfLongTermDebt" xlink:title="definition: DebtInstrumentLineItems to RepaymentsOfLongTermDebt" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable" xlink:label="DebtInstrumentTable" xlink:title="DebtInstrumentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTable" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTable" order="5.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: DebtInstrumentTable to DebtInstrumentAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesSeriesDDue2022Member" xlink:label="SeniorNotesSeriesDDue2022Member" xlink:title="SeniorNotesSeriesDDue2022Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesSeriesDDue2022Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesSeriesDDue2022Member" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsVariableRateLongtermDebtDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="DebtInstrumentLineItems" xlink:title="DebtInstrumentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrentAbstract" xlink:label="LongTermDebtNoncurrentAbstract" xlink:title="LongTermDebtNoncurrentAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtNoncurrentAbstract" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtNoncurrentAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="DebtInstrumentFaceAmount" xlink:title="DebtInstrumentFaceAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentFaceAmount" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentFaceAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="DebtInstrumentMaturityDate" xlink:title="DebtInstrumentMaturityDate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentMaturityDate" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentMaturityDate" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DebtInstrumentVariableInterestRateAnnualAverage" xlink:label="DebtInstrumentVariableInterestRateAnnualAverage" xlink:title="DebtInstrumentVariableInterestRateAnnualAverage" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentVariableInterestRateAnnualAverage" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentVariableInterestRateAnnualAverage" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtPercentageBearingVariableInterestRate" xlink:label="LongTermDebtPercentageBearingVariableInterestRate" xlink:title="LongTermDebtPercentageBearingVariableInterestRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="LongTermDebtPercentageBearingVariableInterestRate" xlink:title="definition: DebtInstrumentLineItems to LongTermDebtPercentageBearingVariableInterestRate" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PeriodInWhichToReimburseBankForPurchasePriceOfTenderedBondsThatHaveNotBeenRemarketed" xlink:label="PeriodInWhichToReimburseBankForPurchasePriceOfTenderedBondsThatHaveNotBeenRemarketed" xlink:title="PeriodInWhichToReimburseBankForPurchasePriceOfTenderedBondsThatHaveNotBeenRemarketed" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="PeriodInWhichToReimburseBankForPurchasePriceOfTenderedBondsThatHaveNotBeenRemarketed" xlink:title="definition: DebtInstrumentLineItems to PeriodInWhichToReimburseBankForPurchasePriceOfTenderedBondsThatHaveNotBeenRemarketed" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable" xlink:label="DebtInstrumentTable" xlink:title="DebtInstrumentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTable" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: DebtInstrumentTable to DebtInstrumentAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:label="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="definition: DebtInstrumentNameDomain to VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsInterestRateSwapAgreementDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="DebtInstrumentLineItems" xlink:title="DebtInstrumentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateDerivativesAbstract" xlink:label="InterestRateDerivativesAbstract" xlink:title="InterestRateDerivativesAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="InterestRateDerivativesAbstract" xlink:title="definition: DebtInstrumentLineItems to InterestRateDerivativesAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount" xlink:label="DerivativeNotionalAmount" xlink:title="DerivativeNotionalAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativeNotionalAmount" xlink:title="definition: DebtInstrumentLineItems to DerivativeNotionalAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PotentialPaymentToCounterparty" xlink:label="PotentialPaymentToCounterparty" xlink:title="PotentialPaymentToCounterparty" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="PotentialPaymentToCounterparty" xlink:title="definition: DebtInstrumentLineItems to PotentialPaymentToCounterparty" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFixedInterestRate" xlink:label="DerivativeFixedInterestRate" xlink:title="DerivativeFixedInterestRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativeFixedInterestRate" xlink:title="definition: DebtInstrumentLineItems to DerivativeFixedInterestRate" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DerivativePercentageOfVariableInterestRate" xlink:label="DerivativePercentageOfVariableInterestRate" xlink:title="DerivativePercentageOfVariableInterestRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativePercentageOfVariableInterestRate" xlink:title="definition: DebtInstrumentLineItems to DerivativePercentageOfVariableInterestRate" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DebtInstrumentTermOfVariableRate" xlink:label="DebtInstrumentTermOfVariableRate" xlink:title="DebtInstrumentTermOfVariableRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTermOfVariableRate" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTermOfVariableRate" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeBasisSpreadOnVariableRate" xlink:label="DerivativeBasisSpreadOnVariableRate" xlink:title="DerivativeBasisSpreadOnVariableRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativeBasisSpreadOnVariableRate" xlink:title="definition: DebtInstrumentLineItems to DerivativeBasisSpreadOnVariableRate" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NetPaymentRateOnSwaps" xlink:label="NetPaymentRateOnSwaps" xlink:title="NetPaymentRateOnSwaps" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="NetPaymentRateOnSwaps" xlink:title="definition: DebtInstrumentLineItems to NetPaymentRateOnSwaps" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAverageBasisSpreadOnVariableRate" xlink:label="DerivativeAverageBasisSpreadOnVariableRate" xlink:title="DerivativeAverageBasisSpreadOnVariableRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativeAverageBasisSpreadOnVariableRate" xlink:title="definition: DebtInstrumentLineItems to DerivativeAverageBasisSpreadOnVariableRate" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeVariableInterestRate" xlink:label="DerivativeVariableInterestRate" xlink:title="DerivativeVariableInterestRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentLineItems" xlink:to="DerivativeVariableInterestRate" xlink:title="definition: DebtInstrumentLineItems to DerivativeVariableInterestRate" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable" xlink:label="DebtInstrumentTable" xlink:title="DebtInstrumentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DebtInstrumentLineItems" xlink:to="DebtInstrumentTable" xlink:title="definition: DebtInstrumentLineItems to DebtInstrumentTable" order="11.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="DerivativeInstrumentRiskAxis" xlink:title="DerivativeInstrumentRiskAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DerivativeInstrumentRiskAxis" xlink:title="definition: DebtInstrumentTable to DerivativeInstrumentRiskAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="DerivativeContractTypeDomain" xlink:title="DerivativeContractTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DerivativeInstrumentRiskAxis" xlink:to="DerivativeContractTypeDomain" xlink:title="definition: DerivativeInstrumentRiskAxis to DerivativeContractTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="DerivativeContractTypeDomain_2" xlink:title="DerivativeContractTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DerivativeInstrumentRiskAxis" xlink:to="DerivativeContractTypeDomain_2" xlink:title="definition: DerivativeInstrumentRiskAxis to DerivativeContractTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateSwapMember" xlink:label="InterestRateSwapMember" xlink:title="InterestRateSwapMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DerivativeContractTypeDomain" xlink:to="InterestRateSwapMember" xlink:title="definition: DerivativeContractTypeDomain to InterestRateSwapMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: DebtInstrumentTable to DebtInstrumentAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:label="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" xlink:title="definition: DebtInstrumentNameDomain to VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis" xlink:label="VariableRateAxis" xlink:title="VariableRateAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DebtInstrumentTable" xlink:to="VariableRateAxis" xlink:title="definition: DebtInstrumentTable to VariableRateAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain" xlink:label="VariableRateDomain" xlink:title="VariableRateDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="VariableRateAxis" xlink:to="VariableRateDomain" xlink:title="definition: VariableRateAxis to VariableRateDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain" xlink:label="VariableRateDomain_2" xlink:title="VariableRateDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="VariableRateAxis" xlink:to="VariableRateDomain_2" xlink:title="definition: VariableRateAxis to VariableRateDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="LondonInterbankOfferedRateLIBORMember" xlink:title="LondonInterbankOfferedRateLIBORMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="VariableRateDomain" xlink:to="LondonInterbankOfferedRateLIBORMember" xlink:title="definition: VariableRateDomain to LondonInterbankOfferedRateLIBORMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:label="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:title="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="VariableRateDomain" xlink:to="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:title="definition: VariableRateDomain to SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsLineOfCreditBorrowingsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="LineOfCreditFacilityLineItems" xlink:title="LineOfCreditFacilityLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAbstract" xlink:label="LineOfCreditFacilityAbstract" xlink:title="LineOfCreditFacilityAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityAbstract" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="LineOfCreditFacilityMaximumBorrowingCapacity" xlink:title="LineOfCreditFacilityMaximumBorrowingCapacity" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityMaximumBorrowingCapacity" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityMaximumBorrowingCapacity" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="DebtInstrumentBasisSpreadOnVariableRate1" xlink:title="DebtInstrumentBasisSpreadOnVariableRate1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="DebtInstrumentBasisSpreadOnVariableRate1" xlink:title="definition: LineOfCreditFacilityLineItems to DebtInstrumentBasisSpreadOnVariableRate1" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityAverageOutstandingAmount" xlink:label="LineOfCreditFacilityAverageOutstandingAmount" xlink:title="LineOfCreditFacilityAverageOutstandingAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityAverageOutstandingAmount" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityAverageOutstandingAmount" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityInterestRateDuringPeriod" xlink:label="LineOfCreditFacilityInterestRateDuringPeriod" xlink:title="LineOfCreditFacilityInterestRateDuringPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityInterestRateDuringPeriod" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityInterestRateDuringPeriod" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd" xlink:label="LineOfCreditFacilityInterestRateAtPeriodEnd" xlink:title="LineOfCreditFacilityInterestRateAtPeriodEnd" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityInterestRateAtPeriodEnd" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityInterestRateAtPeriodEnd" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="DebtInstrumentCarryingAmount" xlink:title="DebtInstrumentCarryingAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="DebtInstrumentCarryingAmount" xlink:title="definition: LineOfCreditFacilityLineItems to DebtInstrumentCarryingAmount" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BankOverdrafts" xlink:label="BankOverdrafts" xlink:title="BankOverdrafts" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LineOfCreditFacilityLineItems" xlink:to="BankOverdrafts" xlink:title="definition: LineOfCreditFacilityLineItems to BankOverdrafts" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="LineOfCreditFacilityTable" xlink:title="LineOfCreditFacilityTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="LineOfCreditFacilityLineItems" xlink:to="LineOfCreditFacilityTable" xlink:title="definition: LineOfCreditFacilityLineItems to LineOfCreditFacilityTable" order="9.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis" xlink:label="CreditFacilityAxis" xlink:title="CreditFacilityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="LineOfCreditFacilityTable" xlink:to="CreditFacilityAxis" xlink:title="definition: LineOfCreditFacilityTable to CreditFacilityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain" xlink:label="CreditFacilityDomain" xlink:title="CreditFacilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="CreditFacilityAxis" xlink:to="CreditFacilityDomain" xlink:title="definition: CreditFacilityAxis to CreditFacilityDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain" xlink:label="CreditFacilityDomain_2" xlink:title="CreditFacilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="CreditFacilityAxis" xlink:to="CreditFacilityDomain_2" xlink:title="definition: CreditFacilityAxis to CreditFacilityDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CommittedLineOfCreditDue2023Member" xlink:label="CommittedLineOfCreditDue2023Member" xlink:title="CommittedLineOfCreditDue2023Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="CreditFacilityDomain" xlink:to="CommittedLineOfCreditDue2023Member" xlink:title="definition: CreditFacilityDomain to CommittedLineOfCreditDue2023Member" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CommittedLineOfCreditDue2024Member" xlink:label="CommittedLineOfCreditDue2024Member" xlink:title="CommittedLineOfCreditDue2024Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="CreditFacilityDomain" xlink:to="CommittedLineOfCreditDue2024Member" xlink:title="definition: CreditFacilityDomain to CommittedLineOfCreditDue2024Member" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis" xlink:label="VariableRateAxis" xlink:title="VariableRateAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="LineOfCreditFacilityTable" xlink:to="VariableRateAxis" xlink:title="definition: LineOfCreditFacilityTable to VariableRateAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain" xlink:label="VariableRateDomain" xlink:title="VariableRateDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="VariableRateAxis" xlink:to="VariableRateDomain" xlink:title="definition: VariableRateAxis to VariableRateDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain" xlink:label="VariableRateDomain_2" xlink:title="VariableRateDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="VariableRateAxis" xlink:to="VariableRateDomain_2" xlink:title="definition: VariableRateAxis to VariableRateDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="LondonInterbankOfferedRateLIBORMember" xlink:title="LondonInterbankOfferedRateLIBORMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="VariableRateDomain" xlink:to="LondonInterbankOfferedRateLIBORMember" xlink:title="definition: VariableRateDomain to LondonInterbankOfferedRateLIBORMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:label="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:title="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="VariableRateDomain" xlink:to="SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" xlink:title="definition: VariableRateDomain to SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="BalanceSheetLocationAxis" xlink:title="BalanceSheetLocationAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="LineOfCreditFacilityTable" xlink:to="BalanceSheetLocationAxis" xlink:title="definition: LineOfCreditFacilityTable to BalanceSheetLocationAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="BalanceSheetLocationDomain" xlink:title="BalanceSheetLocationDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="BalanceSheetLocationAxis" xlink:to="BalanceSheetLocationDomain" xlink:title="definition: BalanceSheetLocationAxis to BalanceSheetLocationDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="BalanceSheetLocationDomain_2" xlink:title="BalanceSheetLocationDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="BalanceSheetLocationAxis" xlink:to="BalanceSheetLocationDomain_2" xlink:title="definition: BalanceSheetLocationAxis to BalanceSheetLocationDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AccountsPayableCurrentMember" xlink:label="AccountsPayableCurrentMember" xlink:title="AccountsPayableCurrentMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="BalanceSheetLocationDomain" xlink:to="AccountsPayableCurrentMember" xlink:title="definition: BalanceSheetLocationDomain to AccountsPayableCurrentMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/LongtermDebtAndShorttermBorrowingsDebtCovenantsAndRestrictionsDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/FairValueOfFinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:title="FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancialLiabilitiesFairValueDisclosureAbstract" xlink:label="FinancialLiabilitiesFairValueDisclosureAbstract" xlink:title="FinancialLiabilitiesFairValueDisclosureAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:to="FinancialLiabilitiesFairValueDisclosureAbstract" xlink:title="definition: FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems to FinancialLiabilitiesFairValueDisclosureAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtFairValue" xlink:label="LongTermDebtFairValue" xlink:title="LongTermDebtFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:to="LongTermDebtFairValue" xlink:title="definition: FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems to LongTermDebtFairValue" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="FairValueByBalanceSheetGroupingTable" xlink:title="FairValueByBalanceSheetGroupingTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:to="FairValueByBalanceSheetGroupingTable" xlink:title="definition: FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems to FairValueByBalanceSheetGroupingTable" order="3.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="FairValueByMeasurementBasisAxis" xlink:title="FairValueByMeasurementBasisAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="FairValueByBalanceSheetGroupingTable" xlink:to="FairValueByMeasurementBasisAxis" xlink:title="definition: FairValueByBalanceSheetGroupingTable to FairValueByMeasurementBasisAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="FairValueDisclosureItemAmountsDomain" xlink:title="FairValueDisclosureItemAmountsDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="FairValueByMeasurementBasisAxis" xlink:to="FairValueDisclosureItemAmountsDomain" xlink:title="definition: FairValueByMeasurementBasisAxis to FairValueDisclosureItemAmountsDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="PortionAtFairValueFairValueDisclosureMember" xlink:title="PortionAtFairValueFairValueDisclosureMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueDisclosureItemAmountsDomain" xlink:to="PortionAtFairValueFairValueDisclosureMember" xlink:title="definition: FairValueDisclosureItemAmountsDomain to PortionAtFairValueFairValueDisclosureMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="PortionAtFairValueFairValueDisclosureMember_2" xlink:title="PortionAtFairValueFairValueDisclosureMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="FairValueByMeasurementBasisAxis" xlink:to="PortionAtFairValueFairValueDisclosureMember_2" xlink:title="definition: FairValueByMeasurementBasisAxis to PortionAtFairValueFairValueDisclosureMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="CarryingReportedAmountFairValueDisclosureMember" xlink:title="CarryingReportedAmountFairValueDisclosureMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueDisclosureItemAmountsDomain" xlink:to="CarryingReportedAmountFairValueDisclosureMember" xlink:title="definition: FairValueDisclosureItemAmountsDomain to CarryingReportedAmountFairValueDisclosureMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="EstimateOfFairValueFairValueDisclosureMember" xlink:title="EstimateOfFairValueFairValueDisclosureMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueDisclosureItemAmountsDomain" xlink:to="EstimateOfFairValueFairValueDisclosureMember" xlink:title="definition: FairValueDisclosureItemAmountsDomain to EstimateOfFairValueFairValueDisclosureMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:title="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateFairValueHedgesAbstract" xlink:label="InterestRateFairValueHedgesAbstract" xlink:title="InterestRateFairValueHedgesAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="InterestRateFairValueHedgesAbstract" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to InterestRateFairValueHedgesAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateDerivativeLiabilitiesAtFairValue" xlink:label="InterestRateDerivativeLiabilitiesAtFairValue" xlink:title="InterestRateDerivativeLiabilitiesAtFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="InterestRateDerivativeLiabilitiesAtFairValue" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to InterestRateDerivativeLiabilitiesAtFairValue" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TermOfDebtOnUtilitiesUsedToDiscountProspectiveCashFlows" xlink:label="TermOfDebtOnUtilitiesUsedToDiscountProspectiveCashFlows" xlink:title="TermOfDebtOnUtilitiesUsedToDiscountProspectiveCashFlows" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="TermOfDebtOnUtilitiesUsedToDiscountProspectiveCashFlows" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to TermOfDebtOnUtilitiesUsedToDiscountProspectiveCashFlows" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncreaseDecreaseInFairValueOfSwapLiability" xlink:label="IncreaseDecreaseInFairValueOfSwapLiability" xlink:title="IncreaseDecreaseInFairValueOfSwapLiability" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="IncreaseDecreaseInFairValueOfSwapLiability" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to IncreaseDecreaseInFairValueOfSwapLiability" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" order="5.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="FairValueByMeasurementFrequencyAxis" xlink:title="FairValueByMeasurementFrequencyAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="FairValueByMeasurementFrequencyAxis" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to FairValueByMeasurementFrequencyAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="FairValueMeasurementFrequencyDomain" xlink:title="FairValueMeasurementFrequencyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="FairValueByMeasurementFrequencyAxis" xlink:to="FairValueMeasurementFrequencyDomain" xlink:title="definition: FairValueByMeasurementFrequencyAxis to FairValueMeasurementFrequencyDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="FairValueMeasurementFrequencyDomain_2" xlink:title="FairValueMeasurementFrequencyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="FairValueByMeasurementFrequencyAxis" xlink:to="FairValueMeasurementFrequencyDomain_2" xlink:title="definition: FairValueByMeasurementFrequencyAxis to FairValueMeasurementFrequencyDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="FairValueMeasurementsRecurringMember" xlink:title="FairValueMeasurementsRecurringMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueMeasurementFrequencyDomain" xlink:to="FairValueMeasurementsRecurringMember" xlink:title="definition: FairValueMeasurementFrequencyDomain to FairValueMeasurementsRecurringMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="FairValueByFairValueHierarchyLevelAxis" xlink:title="FairValueByFairValueHierarchyLevelAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="FairValueByFairValueHierarchyLevelAxis" xlink:title="definition: FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to FairValueByFairValueHierarchyLevelAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="FairValueMeasurementsFairValueHierarchyDomain" xlink:title="FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="FairValueByFairValueHierarchyLevelAxis" xlink:to="FairValueMeasurementsFairValueHierarchyDomain" xlink:title="definition: FairValueByFairValueHierarchyLevelAxis to FairValueMeasurementsFairValueHierarchyDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="FairValueMeasurementsFairValueHierarchyDomain_2" xlink:title="FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="FairValueByFairValueHierarchyLevelAxis" xlink:to="FairValueMeasurementsFairValueHierarchyDomain_2" xlink:title="definition: FairValueByFairValueHierarchyLevelAxis to FairValueMeasurementsFairValueHierarchyDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="FairValueInputsLevel2Member" xlink:title="FairValueInputsLevel2Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueMeasurementsFairValueHierarchyDomain" xlink:to="FairValueInputsLevel2Member" xlink:title="definition: FairValueMeasurementsFairValueHierarchyDomain to FairValueInputsLevel2Member" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/CommitmentsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsLineItems" xlink:label="OtherCommitmentsLineItems" xlink:title="OtherCommitmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsAbstract" xlink:label="OtherCommitmentsAbstract" xlink:title="OtherCommitmentsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="OtherCommitmentsAbstract" xlink:title="definition: OtherCommitmentsLineItems to OtherCommitmentsAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:label="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:title="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" xlink:title="definition: OtherCommitmentsLineItems to NumberOfLeadCustomerOwnedServiceLinesToBeReplacedAnnually" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:label="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:title="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" xlink:title="definition: OtherCommitmentsLineItems to TermOfConsentOrderAgreementToReplaceCustomerOwnedLeadServiceLines" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:label="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:title="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" xlink:title="definition: OtherCommitmentsLineItems to RemainingRecoveryPeriodOfRegulatoryAssetsForWhichNoReturnOnInvestmentDuringRecoveryPeriodIsProvided1" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CostsForCustomerOwnedLeadServiceLineReplacementsCostIncurredToDateUnderFourYearTariff" xlink:label="CostsForCustomerOwnedLeadServiceLineReplacementsCostIncurredToDateUnderFourYearTariff" xlink:title="CostsForCustomerOwnedLeadServiceLineReplacementsCostIncurredToDateUnderFourYearTariff" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="CostsForCustomerOwnedLeadServiceLineReplacementsCostIncurredToDateUnderFourYearTariff" xlink:title="definition: OtherCommitmentsLineItems to CostsForCustomerOwnedLeadServiceLineReplacementsCostIncurredToDateUnderFourYearTariff" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CostsForCustomerOwnedLeadServiceLineReplacementsExpectedCostRemainingUnderNineYearTariff" xlink:label="CostsForCustomerOwnedLeadServiceLineReplacementsExpectedCostRemainingUnderNineYearTariff" xlink:title="CostsForCustomerOwnedLeadServiceLineReplacementsExpectedCostRemainingUnderNineYearTariff" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsLineItems" xlink:to="CostsForCustomerOwnedLeadServiceLineReplacementsExpectedCostRemainingUnderNineYearTariff" xlink:title="definition: OtherCommitmentsLineItems to CostsForCustomerOwnedLeadServiceLineReplacementsExpectedCostRemainingUnderNineYearTariff" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsTable" xlink:label="OtherCommitmentsTable" xlink:title="OtherCommitmentsTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="OtherCommitmentsLineItems" xlink:to="OtherCommitmentsTable" xlink:title="definition: OtherCommitmentsLineItems to OtherCommitmentsTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="OtherCommitmentsAxis" xlink:title="OtherCommitmentsAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="OtherCommitmentsTable" xlink:to="OtherCommitmentsAxis" xlink:title="definition: OtherCommitmentsTable to OtherCommitmentsAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="OtherCommitmentsDomain" xlink:title="OtherCommitmentsDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="OtherCommitmentsAxis" xlink:to="OtherCommitmentsDomain" xlink:title="definition: OtherCommitmentsAxis to OtherCommitmentsDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="OtherCommitmentsDomain_2" xlink:title="OtherCommitmentsDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="OtherCommitmentsAxis" xlink:to="OtherCommitmentsDomain_2" xlink:title="definition: OtherCommitmentsAxis to OtherCommitmentsDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CustomerOwnedLeadServiceLinesMember" xlink:label="CustomerOwnedLeadServiceLinesMember" xlink:title="CustomerOwnedLeadServiceLinesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OtherCommitmentsDomain" xlink:to="CustomerOwnedLeadServiceLinesMember" xlink:title="definition: OtherCommitmentsDomain to CustomerOwnedLeadServiceLinesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentLineItems" xlink:label="PurchaseCommitmentExcludingLongtermCommitmentLineItems" xlink:title="PurchaseCommitmentExcludingLongtermCommitmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PurchaseCommitmentCommittedCapitalExpenditures" xlink:label="PurchaseCommitmentCommittedCapitalExpenditures" xlink:title="PurchaseCommitmentCommittedCapitalExpenditures" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentLineItems" xlink:to="PurchaseCommitmentCommittedCapitalExpenditures" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentLineItems to PurchaseCommitmentCommittedCapitalExpenditures" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentRemainingMinimumAmountCommitted" xlink:label="PurchaseCommitmentRemainingMinimumAmountCommitted" xlink:title="PurchaseCommitmentRemainingMinimumAmountCommitted" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentLineItems" xlink:to="PurchaseCommitmentRemainingMinimumAmountCommitted" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentLineItems to PurchaseCommitmentRemainingMinimumAmountCommitted" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentTable" xlink:label="PurchaseCommitmentExcludingLongtermCommitmentTable" xlink:title="PurchaseCommitmentExcludingLongtermCommitmentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentLineItems" xlink:to="PurchaseCommitmentExcludingLongtermCommitmentTable" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentLineItems to PurchaseCommitmentExcludingLongtermCommitmentTable" order="3.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:label="PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:title="PurchaseCommitmentExcludingLongtermCommitmentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentTable" xlink:to="PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentTable to PurchaseCommitmentExcludingLongtermCommitmentAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:label="PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:title="PurchaseCommitmentExcludingLongtermCommitmentDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:to="PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentAxis to PurchaseCommitmentExcludingLongtermCommitmentDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:label="PurchaseCommitmentExcludingLongtermCommitmentDomain_2" xlink:title="PurchaseCommitmentExcludingLongtermCommitmentDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:to="PurchaseCommitmentExcludingLongtermCommitmentDomain_2" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentAxis to PurchaseCommitmentExcludingLongtermCommitmentDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ArmorAndReplaceSpillwayOfLakeWilliamsDamMember" xlink:label="ArmorAndReplaceSpillwayOfLakeWilliamsDamMember" xlink:title="ArmorAndReplaceSpillwayOfLakeWilliamsDamMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:to="ArmorAndReplaceSpillwayOfLakeWilliamsDamMember" xlink:title="definition: PurchaseCommitmentExcludingLongtermCommitmentDomain to ArmorAndReplaceSpillwayOfLakeWilliamsDamMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermPurchaseCommitmentLineItems" xlink:label="LongTermPurchaseCommitmentLineItems" xlink:title="LongTermPurchaseCommitmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermCommitmentExcludingUnconditionalPurchaseObligationAbstract" xlink:label="LongTermCommitmentExcludingUnconditionalPurchaseObligationAbstract" xlink:title="LongTermCommitmentExcludingUnconditionalPurchaseObligationAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LongTermPurchaseCommitmentLineItems" xlink:to="LongTermCommitmentExcludingUnconditionalPurchaseObligationAbstract" xlink:title="definition: LongTermPurchaseCommitmentLineItems to LongTermCommitmentExcludingUnconditionalPurchaseObligationAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="PurchaseObligationDueInNextTwelveMonths" xlink:title="PurchaseObligationDueInNextTwelveMonths" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LongTermPurchaseCommitmentLineItems" xlink:to="PurchaseObligationDueInNextTwelveMonths" xlink:title="definition: LongTermPurchaseCommitmentLineItems to PurchaseObligationDueInNextTwelveMonths" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseObligationDueInSecondYear" xlink:label="PurchaseObligationDueInSecondYear" xlink:title="PurchaseObligationDueInSecondYear" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LongTermPurchaseCommitmentLineItems" xlink:to="PurchaseObligationDueInSecondYear" xlink:title="definition: LongTermPurchaseCommitmentLineItems to PurchaseObligationDueInSecondYear" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermPurchaseCommitmentTable" xlink:label="LongTermPurchaseCommitmentTable" xlink:title="LongTermPurchaseCommitmentTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="LongTermPurchaseCommitmentLineItems" xlink:to="LongTermPurchaseCommitmentTable" xlink:title="definition: LongTermPurchaseCommitmentLineItems to LongTermPurchaseCommitmentTable" order="4.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:title="LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="LongTermPurchaseCommitmentTable" xlink:to="LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:title="definition: LongTermPurchaseCommitmentTable to LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:title="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:to="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:title="definition: LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis to LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_2" xlink:title="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:to="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_2" xlink:title="definition: LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis to LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CapitalAdditionsMember" xlink:label="CapitalAdditionsMember" xlink:title="CapitalAdditionsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:to="CapitalAdditionsMember" xlink:title="definition: LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain to CapitalAdditionsMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RevenueDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="DisaggregationOfRevenueLineItems" xlink:title="DisaggregationOfRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueAbstract" xlink:label="DisaggregationOfRevenueAbstract" xlink:title="DisaggregationOfRevenueAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="DisaggregationOfRevenueAbstract" xlink:title="definition: DisaggregationOfRevenueLineItems to DisaggregationOfRevenueAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="definition: DisaggregationOfRevenueLineItems to RevenueFromContractWithCustomerExcludingAssessedTax" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLeaseIncome" xlink:label="OperatingLeaseLeaseIncome" xlink:title="OperatingLeaseLeaseIncome" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="OperatingLeaseLeaseIncome" xlink:title="definition: DisaggregationOfRevenueLineItems to OperatingLeaseLeaseIncome" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues" xlink:label="Revenues" xlink:title="Revenues" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="Revenues" xlink:title="definition: DisaggregationOfRevenueLineItems to Revenues" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NumberOfMunicipalitiesWithinServiceTerritoryProvidedService" xlink:label="NumberOfMunicipalitiesWithinServiceTerritoryProvidedService" xlink:title="NumberOfMunicipalitiesWithinServiceTerritoryProvidedService" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="NumberOfMunicipalitiesWithinServiceTerritoryProvidedService" xlink:title="definition: DisaggregationOfRevenueLineItems to NumberOfMunicipalitiesWithinServiceTerritoryProvidedService" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TermForCustomerToMakePaymentAfterBeingInvoiced" xlink:label="TermForCustomerToMakePaymentAfterBeingInvoiced" xlink:title="TermForCustomerToMakePaymentAfterBeingInvoiced" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="TermForCustomerToMakePaymentAfterBeingInvoiced" xlink:title="definition: DisaggregationOfRevenueLineItems to TermForCustomerToMakePaymentAfterBeingInvoiced" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="DisaggregationOfRevenueTable" xlink:title="DisaggregationOfRevenueTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DisaggregationOfRevenueLineItems" xlink:to="DisaggregationOfRevenueTable" xlink:title="definition: DisaggregationOfRevenueLineItems to DisaggregationOfRevenueTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis" xlink:label="ProductOrServiceAxis" xlink:title="ProductOrServiceAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DisaggregationOfRevenueTable" xlink:to="ProductOrServiceAxis" xlink:title="definition: DisaggregationOfRevenueTable to ProductOrServiceAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="ProductsAndServicesDomain" xlink:title="ProductsAndServicesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ProductOrServiceAxis" xlink:to="ProductsAndServicesDomain" xlink:title="definition: ProductOrServiceAxis to ProductsAndServicesDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="ProductsAndServicesDomain_2" xlink:title="ProductsAndServicesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ProductOrServiceAxis" xlink:to="ProductsAndServicesDomain_2" xlink:title="definition: ProductOrServiceAxis to ProductsAndServicesDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesMember" xlink:label="PublicUtilitiesMember" xlink:title="PublicUtilitiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="PublicUtilitiesMember" xlink:title="definition: ProductsAndServicesDomain to PublicUtilitiesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_BillingAndRevenueCollectionServicesMember" xlink:label="BillingAndRevenueCollectionServicesMember" xlink:title="BillingAndRevenueCollectionServicesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="BillingAndRevenueCollectionServicesMember" xlink:title="definition: ProductsAndServicesDomain to BillingAndRevenueCollectionServicesMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CollectionServicesMember" xlink:label="CollectionServicesMember" xlink:title="CollectionServicesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="CollectionServicesMember" xlink:title="definition: ProductsAndServicesDomain to CollectionServicesMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ServiceLineProtectionPlanMember" xlink:label="ServiceLineProtectionPlanMember" xlink:title="ServiceLineProtectionPlanMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="ServiceLineProtectionPlanMember" xlink:title="definition: ProductsAndServicesDomain to ServiceLineProtectionPlanMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterUtilityServiceMember" xlink:label="WaterUtilityServiceMember" xlink:title="WaterUtilityServiceMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesMember" xlink:to="WaterUtilityServiceMember" xlink:title="definition: PublicUtilitiesMember to WaterUtilityServiceMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WastewaterUtilityServiceMember" xlink:label="WastewaterUtilityServiceMember" xlink:title="WastewaterUtilityServiceMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesMember" xlink:to="WastewaterUtilityServiceMember" xlink:title="definition: PublicUtilitiesMember to WastewaterUtilityServiceMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MajorCustomersAxis" xlink:label="MajorCustomersAxis" xlink:title="MajorCustomersAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="DisaggregationOfRevenueTable" xlink:to="MajorCustomersAxis" xlink:title="definition: DisaggregationOfRevenueTable to MajorCustomersAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_NameOfMajorCustomerDomain" xlink:label="NameOfMajorCustomerDomain" xlink:title="NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="MajorCustomersAxis" xlink:to="NameOfMajorCustomerDomain" xlink:title="definition: MajorCustomersAxis to NameOfMajorCustomerDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_NameOfMajorCustomerDomain" xlink:label="NameOfMajorCustomerDomain_2" xlink:title="NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="MajorCustomersAxis" xlink:to="NameOfMajorCustomerDomain_2" xlink:title="definition: MajorCustomersAxis to NameOfMajorCustomerDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ResidentialCustomersMember" xlink:label="ResidentialCustomersMember" xlink:title="ResidentialCustomersMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="NameOfMajorCustomerDomain" xlink:to="ResidentialCustomersMember" xlink:title="definition: NameOfMajorCustomerDomain to ResidentialCustomersMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CommercialAndIndustrialCustomersMember" xlink:label="CommercialAndIndustrialCustomersMember" xlink:title="CommercialAndIndustrialCustomersMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="NameOfMajorCustomerDomain" xlink:to="CommercialAndIndustrialCustomersMember" xlink:title="definition: NameOfMajorCustomerDomain to CommercialAndIndustrialCustomersMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_FireProtectionCustomersMember" xlink:label="FireProtectionCustomersMember" xlink:title="FireProtectionCustomersMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="NameOfMajorCustomerDomain" xlink:to="FireProtectionCustomersMember" xlink:title="definition: NameOfMajorCustomerDomain to FireProtectionCustomersMember" order="3.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/RateMattersDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresLineItems" xlink:label="PublicUtilitiesGeneralDisclosuresLineItems" xlink:title="PublicUtilitiesGeneralDisclosuresLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesRateMattersAbstract" xlink:label="PublicUtilitiesRateMattersAbstract" xlink:title="PublicUtilitiesRateMattersAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="PublicUtilitiesRateMattersAbstract" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to PublicUtilitiesRateMattersAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesRequestedRateIncreaseDecreaseAmount" xlink:label="PublicUtilitiesRequestedRateIncreaseDecreaseAmount" xlink:title="PublicUtilitiesRequestedRateIncreaseDecreaseAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="PublicUtilitiesRequestedRateIncreaseDecreaseAmount" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to PublicUtilitiesRequestedRateIncreaseDecreaseAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesApprovedRateIncreaseDecreaseAmount" xlink:label="PublicUtilitiesApprovedRateIncreaseDecreaseAmount" xlink:title="PublicUtilitiesApprovedRateIncreaseDecreaseAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="PublicUtilitiesApprovedRateIncreaseDecreaseAmount" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to PublicUtilitiesApprovedRateIncreaseDecreaseAmount" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DistributionSystemImprovementChargePercentageOverBaseRate" xlink:label="DistributionSystemImprovementChargePercentageOverBaseRate" xlink:title="DistributionSystemImprovementChargePercentageOverBaseRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="DistributionSystemImprovementChargePercentageOverBaseRate" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to DistributionSystemImprovementChargePercentageOverBaseRate" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DistributionSystemImprovementChargeRevenue" xlink:label="DistributionSystemImprovementChargeRevenue" xlink:title="DistributionSystemImprovementChargeRevenue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="DistributionSystemImprovementChargeRevenue" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to DistributionSystemImprovementChargeRevenue" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresTable" xlink:label="PublicUtilitiesGeneralDisclosuresTable" xlink:title="PublicUtilitiesGeneralDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="PublicUtilitiesGeneralDisclosuresLineItems" xlink:to="PublicUtilitiesGeneralDisclosuresTable" xlink:title="definition: PublicUtilitiesGeneralDisclosuresLineItems to PublicUtilitiesGeneralDisclosuresTable" order="6.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingAxis" xlink:label="PublicUtilitiesRegulatoryProceedingAxis" xlink:title="PublicUtilitiesRegulatoryProceedingAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilitiesGeneralDisclosuresTable" xlink:to="PublicUtilitiesRegulatoryProceedingAxis" xlink:title="definition: PublicUtilitiesGeneralDisclosuresTable to PublicUtilitiesRegulatoryProceedingAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingDomain" xlink:label="PublicUtilitiesRegulatoryProceedingDomain" xlink:title="PublicUtilitiesRegulatoryProceedingDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="PublicUtilitiesRegulatoryProceedingAxis" xlink:to="PublicUtilitiesRegulatoryProceedingDomain" xlink:title="definition: PublicUtilitiesRegulatoryProceedingAxis to PublicUtilitiesRegulatoryProceedingDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingDomain" xlink:label="PublicUtilitiesRegulatoryProceedingDomain_2" xlink:title="PublicUtilitiesRegulatoryProceedingDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="PublicUtilitiesRegulatoryProceedingAxis" xlink:to="PublicUtilitiesRegulatoryProceedingDomain_2" xlink:title="definition: PublicUtilitiesRegulatoryProceedingAxis to PublicUtilitiesRegulatoryProceedingDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_RateRequestFiledOnMay272022Member" xlink:label="RateRequestFiledOnMay272022Member" xlink:title="RateRequestFiledOnMay272022Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesRegulatoryProceedingDomain" xlink:to="RateRequestFiledOnMay272022Member" xlink:title="definition: PublicUtilitiesRegulatoryProceedingDomain to RateRequestFiledOnMay272022Member" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DistributionSystemImprovementChargeMember" xlink:label="DistributionSystemImprovementChargeMember" xlink:title="DistributionSystemImprovementChargeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PublicUtilitiesRegulatoryProceedingDomain" xlink:to="DistributionSystemImprovementChargeMember" xlink:title="definition: PublicUtilitiesRegulatoryProceedingDomain to DistributionSystemImprovementChargeMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAgencyAxis" xlink:label="RegulatoryAgencyAxis" xlink:title="RegulatoryAgencyAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilitiesGeneralDisclosuresTable" xlink:to="RegulatoryAgencyAxis" xlink:title="definition: PublicUtilitiesGeneralDisclosuresTable to RegulatoryAgencyAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAgencyDomain" xlink:label="RegulatoryAgencyDomain" xlink:title="RegulatoryAgencyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RegulatoryAgencyAxis" xlink:to="RegulatoryAgencyDomain" xlink:title="definition: RegulatoryAgencyAxis to RegulatoryAgencyDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAgencyDomain" xlink:label="RegulatoryAgencyDomain_2" xlink:title="RegulatoryAgencyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RegulatoryAgencyAxis" xlink:to="RegulatoryAgencyDomain_2" xlink:title="definition: RegulatoryAgencyAxis to RegulatoryAgencyDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PennsylvaniaPublicUtilityCommissionMember" xlink:label="PennsylvaniaPublicUtilityCommissionMember" xlink:title="PennsylvaniaPublicUtilityCommissionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryAgencyDomain" xlink:to="PennsylvaniaPublicUtilityCommissionMember" xlink:title="definition: RegulatoryAgencyDomain to PennsylvaniaPublicUtilityCommissionMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis" xlink:label="ProductOrServiceAxis" xlink:title="ProductOrServiceAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilitiesGeneralDisclosuresTable" xlink:to="ProductOrServiceAxis" xlink:title="definition: PublicUtilitiesGeneralDisclosuresTable to ProductOrServiceAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="ProductsAndServicesDomain" xlink:title="ProductsAndServicesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ProductOrServiceAxis" xlink:to="ProductsAndServicesDomain" xlink:title="definition: ProductOrServiceAxis to ProductsAndServicesDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain" xlink:label="ProductsAndServicesDomain_2" xlink:title="ProductsAndServicesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ProductOrServiceAxis" xlink:to="ProductsAndServicesDomain_2" xlink:title="definition: ProductOrServiceAxis to ProductsAndServicesDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WaterUtilityServiceMember" xlink:label="WaterUtilityServiceMember" xlink:title="WaterUtilityServiceMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="WaterUtilityServiceMember" xlink:title="definition: ProductsAndServicesDomain to WaterUtilityServiceMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_WastewaterUtilityServiceMember" xlink:label="WastewaterUtilityServiceMember" xlink:title="WastewaterUtilityServiceMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ProductsAndServicesDomain" xlink:to="WastewaterUtilityServiceMember" xlink:title="definition: ProductsAndServicesDomain to WastewaterUtilityServiceMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis" xlink:label="RangeAxis" xlink:title="RangeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="PublicUtilitiesGeneralDisclosuresTable" xlink:to="RangeAxis" xlink:title="definition: PublicUtilitiesGeneralDisclosuresTable to RangeAxis" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RangeAxis" xlink:to="RangeMember" xlink:title="definition: RangeAxis to RangeMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember_2" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RangeAxis" xlink:to="RangeMember_2" xlink:title="definition: RangeAxis to RangeMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember" xlink:label="MaximumMember" xlink:title="MaximumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MaximumMember" xlink:title="definition: RangeMember to MaximumMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember" xlink:label="MinimumMember" xlink:title="MinimumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MinimumMember" xlink:title="definition: RangeMember to MinimumMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansChangesInBenefitObligationAndPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAdditionalInformationAbstract" xlink:label="DefinedBenefitPlanAdditionalInformationAbstract" xlink:title="DefinedBenefitPlanAdditionalInformationAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAdditionalInformationAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAdditionalInformationAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MaximumPeriodOfEligibleService" xlink:label="MaximumPeriodOfEligibleService" xlink:title="MaximumPeriodOfEligibleService" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MaximumPeriodOfEligibleService" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MaximumPeriodOfEligibleService" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward" xlink:label="DefinedBenefitPlanChangeInBenefitObligationRollForward" xlink:title="DefinedBenefitPlanChangeInBenefitObligationRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanChangeInBenefitObligationRollForward" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanChangeInBenefitObligationRollForward" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" xlink:label="DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" xlink:title="DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="DefinedBenefitPlanFundedStatusOfPlan" xlink:title="DefinedBenefitPlanFundedStatusOfPlan" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanFundedStatusOfPlan" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanFundedStatusOfPlan" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationIncreaseDecreaseInDiscountRate" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationIncreaseDecreaseInDiscountRate" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationIncreaseDecreaseInDiscountRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationIncreaseDecreaseInDiscountRate" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationIncreaseDecreaseInDiscountRate" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ThresholdForAmortizationOfGainsAndLosses" xlink:label="ThresholdForAmortizationOfGainsAndLosses" xlink:title="ThresholdForAmortizationOfGainsAndLosses" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ThresholdForAmortizationOfGainsAndLosses" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ThresholdForAmortizationOfGainsAndLosses" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ChangesInPlanAssetsAndBenefitObligationsRecognizedInRegulatoryAssetsAbstract" xlink:label="ChangesInPlanAssetsAndBenefitObligationsRecognizedInRegulatoryAssetsAbstract" xlink:title="ChangesInPlanAssetsAndBenefitObligationsRecognizedInRegulatoryAssetsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ChangesInPlanAssetsAndBenefitObligationsRecognizedInRegulatoryAssetsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ChangesInPlanAssetsAndBenefitObligationsRecognizedInRegulatoryAssetsAbstract" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AmountsRecognizedInRegulatoryAssetsThatHaveNotYetBeenRecognizedAsComponentsOfNetPeriodicBenefitCostAbstract" xlink:label="AmountsRecognizedInRegulatoryAssetsThatHaveNotYetBeenRecognizedAsComponentsOfNetPeriodicBenefitCostAbstract" xlink:title="AmountsRecognizedInRegulatoryAssetsThatHaveNotYetBeenRecognizedAsComponentsOfNetPeriodicBenefitCostAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="AmountsRecognizedInRegulatoryAssetsThatHaveNotYetBeenRecognizedAsComponentsOfNetPeriodicBenefitCostAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to AmountsRecognizedInRegulatoryAssetsThatHaveNotYetBeenRecognizedAsComponentsOfNetPeriodicBenefitCostAbstract" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:label="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:title="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanNetGainLossRecognizedInRegulatoryAssets" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:label="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:title="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPriorServiceCostCreditRecognizedInRegulatoryAssets" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanRegulatoryAsset" xlink:label="DefinedBenefitPlanRegulatoryAsset" xlink:title="DefinedBenefitPlanRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanRegulatoryAsset" order="12.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanNetGainLossRecognizedAsRegulatoryAsset" order="13.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanActuarialGainLossRecognizedAsRegulatoryAsset" order="14.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:label="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:title="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPriorServiceCostCreditRecognizedAsRegulatoryAsset" order="15.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_IncreaseDecreaseInRegulatoryAsset" xlink:label="IncreaseDecreaseInRegulatoryAsset" xlink:title="IncreaseDecreaseInRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="IncreaseDecreaseInRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to IncreaseDecreaseInRegulatoryAsset" order="16.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="DefinedBenefitPlanFairValueOfPlanAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanFairValueOfPlanAssets" order="17.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets" xlink:label="DefinedBenefitPlanActualReturnOnPlanAssets" xlink:title="DefinedBenefitPlanActualReturnOnPlanAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanActualReturnOnPlanAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanActualReturnOnPlanAssets" order="18.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="DefinedBenefitPlanContributionsByEmployer" xlink:title="DefinedBenefitPlanContributionsByEmployer" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanContributionsByEmployer" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanContributionsByEmployer" order="19.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:label="DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:title="DefinedBenefitPlanPlanAssetsBenefitsPaid" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPlanAssetsBenefitsPaid" order="20.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="DefinedBenefitPlanBenefitObligation" xlink:title="DefinedBenefitPlanBenefitObligation" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanBenefitObligation" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanBenefitObligation" order="21.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="DefinedBenefitPlanServiceCost" xlink:title="DefinedBenefitPlanServiceCost" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanServiceCost" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanServiceCost" order="22.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="DefinedBenefitPlanInterestCost" xlink:title="DefinedBenefitPlanInterestCost" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanInterestCost" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanInterestCost" order="23.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss" xlink:label="DefinedBenefitPlanActuarialGainLoss" xlink:title="DefinedBenefitPlanActuarialGainLoss" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanActuarialGainLoss" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanActuarialGainLoss" order="24.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid" xlink:label="DefinedBenefitPlanBenefitObligationBenefitsPaid" xlink:title="DefinedBenefitPlanBenefitObligationBenefitsPaid" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanBenefitObligationBenefitsPaid" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanBenefitObligationBenefitsPaid" order="25.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="26.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansComponentsOfNetPeriodicBenefitCostDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:title="DefinedBenefitPlanNetPeriodicBenefitCostAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanNetPeriodicBenefitCostAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanChangeInRegulatoryAssets" xlink:label="DefinedBenefitPlanChangeInRegulatoryAssets" xlink:title="DefinedBenefitPlanChangeInRegulatoryAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanChangeInRegulatoryAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanChangeInRegulatoryAssets" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostAbstract" xlink:label="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostAbstract" xlink:title="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostAbstract" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to EstimatedNetLossToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to NetPriorServiceCreditToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:label="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to AmortizationOfRegulatoryAssetsToBeReclassifiedIntoNetPeriodicBenefitCostDuringNext12Months" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="DefinedBenefitPlanServiceCost" xlink:title="DefinedBenefitPlanServiceCost" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanServiceCost" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanServiceCost" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="DefinedBenefitPlanInterestCost" xlink:title="DefinedBenefitPlanInterestCost" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanInterestCost" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanInterestCost" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:title="DefinedBenefitPlanExpectedReturnOnPlanAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedReturnOnPlanAssets" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="DefinedBenefitPlanAmortizationOfGainsLosses" xlink:title="DefinedBenefitPlanAmortizationOfGainsLosses" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAmortizationOfGainsLosses" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAmortizationOfGainsLosses" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:title="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanChangeInRegulatoryAsset" xlink:label="DefinedBenefitPlanChangeInRegulatoryAsset" xlink:title="DefinedBenefitPlanChangeInRegulatoryAsset" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanChangeInRegulatoryAsset" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanChangeInRegulatoryAsset" order="12.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:title="DefinedBenefitPlanNetPeriodicBenefitCost" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanNetPeriodicBenefitCost" order="13.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="14.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansBenefitPaymentsExpectedToBePaidDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract" xlink:label="DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract" xlink:title="DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" xlink:label="DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" xlink:title="DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:label="DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:title="DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" xlink:label="DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" xlink:title="DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="10.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansProjectedBenefitObligationAccumulatedBenefitObligationAndFairValueOfPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAdditionalInformationAbstract" xlink:label="DefinedBenefitPlanAdditionalInformationAbstract" xlink:title="DefinedBenefitPlanAdditionalInformationAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAdditionalInformationAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAdditionalInformationAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:label="DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:title="DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:label="DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:title="DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation" xlink:label="DefinedBenefitPlanAccumulatedBenefitObligation" xlink:title="DefinedBenefitPlanAccumulatedBenefitObligation" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAccumulatedBenefitObligation" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAccumulatedBenefitObligation" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="DefinedBenefitPlanFairValueOfPlanAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanFairValueOfPlanAssets" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="DefinedBenefitPlanBenefitObligation" xlink:title="DefinedBenefitPlanBenefitObligation" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanBenefitObligation" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanBenefitObligation" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="7.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansWeightedaverageAssumptionsUsedDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract" xlink:label="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract" xlink:title="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" xlink:label="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" xlink:title="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssetsTargetAllocationsAbstract" xlink:label="DefinedBenefitPlanAssetsTargetAllocationsAbstract" xlink:title="DefinedBenefitPlanAssetsTargetAllocationsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssetsTargetAllocationsAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssetsTargetAllocationsAbstract" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations" xlink:label="DefinedBenefitPlanWeightedAverageAssetAllocations" xlink:title="DefinedBenefitPlanWeightedAverageAssetAllocations" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanWeightedAverageAssetAllocations" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanWeightedAverageAssetAllocations" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" xlink:label="DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" xlink:title="DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_InvestmentPerformanceObjectivesBenchmarkPeriod" xlink:label="InvestmentPerformanceObjectivesBenchmarkPeriod" xlink:title="InvestmentPerformanceObjectivesBenchmarkPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="InvestmentPerformanceObjectivesBenchmarkPeriod" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to InvestmentPerformanceObjectivesBenchmarkPeriod" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PercentageByWhichReturnOnPlanAssetsShouldExceedAnnualRateOfInflation" xlink:label="PercentageByWhichReturnOnPlanAssetsShouldExceedAnnualRateOfInflation" xlink:title="PercentageByWhichReturnOnPlanAssetsShouldExceedAnnualRateOfInflation" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="PercentageByWhichReturnOnPlanAssetsShouldExceedAnnualRateOfInflation" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to PercentageByWhichReturnOnPlanAssetsShouldExceedAnnualRateOfInflation" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MaximumEquitySecuritiesHoldingsInAnyOneCompany" xlink:label="MaximumEquitySecuritiesHoldingsInAnyOneCompany" xlink:title="MaximumEquitySecuritiesHoldingsInAnyOneCompany" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MaximumEquitySecuritiesHoldingsInAnyOneCompany" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MaximumEquitySecuritiesHoldingsInAnyOneCompany" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MaximumEquitySecuritiesHoldingsInAnyOneIndustry" xlink:label="MaximumEquitySecuritiesHoldingsInAnyOneIndustry" xlink:title="MaximumEquitySecuritiesHoldingsInAnyOneIndustry" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MaximumEquitySecuritiesHoldingsInAnyOneIndustry" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MaximumEquitySecuritiesHoldingsInAnyOneIndustry" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MinimumNumberOfIndividualStocksThatMustBeIncludedInDomesticStockPortfolio" xlink:label="MinimumNumberOfIndividualStocksThatMustBeIncludedInDomesticStockPortfolio" xlink:title="MinimumNumberOfIndividualStocksThatMustBeIncludedInDomesticStockPortfolio" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MinimumNumberOfIndividualStocksThatMustBeIncludedInDomesticStockPortfolio" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MinimumNumberOfIndividualStocksThatMustBeIncludedInDomesticStockPortfolio" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MinimumNumberOfIndividualStocksThatMustBeIncludedInInternationalStockPortfolio" xlink:label="MinimumNumberOfIndividualStocksThatMustBeIncludedInInternationalStockPortfolio" xlink:title="MinimumNumberOfIndividualStocksThatMustBeIncludedInInternationalStockPortfolio" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MinimumNumberOfIndividualStocksThatMustBeIncludedInInternationalStockPortfolio" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MinimumNumberOfIndividualStocksThatMustBeIncludedInInternationalStockPortfolio" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_MaximumFixedIncomeSecuritiesHoldingsInAnySingleIssuer" xlink:label="MaximumFixedIncomeSecuritiesHoldingsInAnySingleIssuer" xlink:title="MaximumFixedIncomeSecuritiesHoldingsInAnySingleIssuer" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="MaximumFixedIncomeSecuritiesHoldingsInAnySingleIssuer" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to MaximumFixedIncomeSecuritiesHoldingsInAnySingleIssuer" order="12.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" order="13.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" order="14.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" order="15.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" order="16.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" xlink:label="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" xlink:title="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" order="17.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="18.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:label="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:title="DefinedBenefitPlanByPlanAssetCategoriesAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to DefinedBenefitPlanByPlanAssetCategoriesAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="PlanAssetCategoriesDomain" xlink:title="PlanAssetCategoriesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="PlanAssetCategoriesDomain" xlink:title="definition: DefinedBenefitPlanByPlanAssetCategoriesAxis to PlanAssetCategoriesDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="PlanAssetCategoriesDomain_2" xlink:title="PlanAssetCategoriesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="PlanAssetCategoriesDomain_2" xlink:title="definition: DefinedBenefitPlanByPlanAssetCategoriesAxis to PlanAssetCategoriesDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesMember" xlink:label="EquitySecuritiesMember" xlink:title="EquitySecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="EquitySecuritiesMember" xlink:title="definition: PlanAssetCategoriesDomain to EquitySecuritiesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesMember" xlink:label="DebtSecuritiesMember" xlink:title="DebtSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="DebtSecuritiesMember" xlink:title="definition: PlanAssetCategoriesDomain to DebtSecuritiesMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="CashAndCashEquivalentsMember" xlink:title="CashAndCashEquivalentsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="CashAndCashEquivalentsMember" xlink:title="definition: PlanAssetCategoriesDomain to CashAndCashEquivalentsMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="USTreasuryAndGovernmentMember" xlink:title="USTreasuryAndGovernmentMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="USTreasuryAndGovernmentMember" xlink:title="definition: DebtSecuritiesMember to USTreasuryAndGovernmentMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="USGovernmentAgenciesDebtSecuritiesMember" xlink:title="USGovernmentAgenciesDebtSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="USGovernmentAgenciesDebtSecuritiesMember" xlink:title="definition: DebtSecuritiesMember to USGovernmentAgenciesDebtSecuritiesMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="DomesticCorporateDebtSecuritiesMember" xlink:title="DomesticCorporateDebtSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="DomesticCorporateDebtSecuritiesMember" xlink:title="definition: DebtSecuritiesMember to DomesticCorporateDebtSecuritiesMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="MortgageBackedSecuritiesMember" xlink:title="MortgageBackedSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="MortgageBackedSecuritiesMember" xlink:title="definition: DebtSecuritiesMember to MortgageBackedSecuritiesMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DebtSecurityCorporateNonUsMember" xlink:label="DebtSecurityCorporateNonUsMember" xlink:title="DebtSecurityCorporateNonUsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="DebtSecurityCorporateNonUsMember" xlink:title="definition: DebtSecuritiesMember to DebtSecurityCorporateNonUsMember" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BondsMember" xlink:label="BondsMember" xlink:title="BondsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="BondsMember" xlink:title="definition: DebtSecuritiesMember to BondsMember" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesLargeCapMember" xlink:label="DefinedBenefitPlanEquitySecuritiesLargeCapMember" xlink:title="DefinedBenefitPlanEquitySecuritiesLargeCapMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesLargeCapMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesLargeCapMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMidCapMember" xlink:label="DefinedBenefitPlanEquitySecuritiesMidCapMember" xlink:title="DefinedBenefitPlanEquitySecuritiesMidCapMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesMidCapMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesMidCapMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesSmallCapMember" xlink:label="DefinedBenefitPlanEquitySecuritiesSmallCapMember" xlink:title="DefinedBenefitPlanEquitySecuritiesSmallCapMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesSmallCapMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesSmallCapMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanEquitySecuritiesInternationalDevelopedNationsMember" xlink:label="DefinedBenefitPlanEquitySecuritiesInternationalDevelopedNationsMember" xlink:title="DefinedBenefitPlanEquitySecuritiesInternationalDevelopedNationsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesInternationalDevelopedNationsMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesInternationalDevelopedNationsMember" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanEquitySecuritiesInternationalEmergingNationsMember" xlink:label="DefinedBenefitPlanEquitySecuritiesInternationalEmergingNationsMember" xlink:title="DefinedBenefitPlanEquitySecuritiesInternationalEmergingNationsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesInternationalEmergingNationsMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesInternationalEmergingNationsMember" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis" xlink:label="RangeAxis" xlink:title="RangeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RangeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RangeAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RangeAxis" xlink:to="RangeMember" xlink:title="definition: RangeAxis to RangeMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember" xlink:label="RangeMember_2" xlink:title="RangeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RangeAxis" xlink:to="RangeMember_2" xlink:title="definition: RangeAxis to RangeMember_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember" xlink:label="MinimumMember" xlink:title="MinimumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MinimumMember" xlink:title="definition: RangeMember to MinimumMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember" xlink:label="MaximumMember" xlink:title="MaximumMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RangeMember" xlink:to="MaximumMember" xlink:title="definition: RangeMember to MaximumMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansFairValuesOfPensionPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="DefinedBenefitPlanDisclosureLineItems" xlink:title="DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:label="DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:title="DefinedBenefitPlanFundedStatusOfPlanAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanFundedStatusOfPlanAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="DefinedBenefitPlanFairValueOfPlanAssets" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanFairValueOfPlanAssets" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanFairValueOfPlanAssets" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPlanTermToKeepDistributionsInImmediatelyAvailableFunds" xlink:label="DefinedBenefitPlanTermToKeepDistributionsInImmediatelyAvailableFunds" xlink:title="DefinedBenefitPlanTermToKeepDistributionsInImmediatelyAvailableFunds" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="DefinedBenefitPlanTermToKeepDistributionsInImmediatelyAvailableFunds" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to DefinedBenefitPlanTermToKeepDistributionsInImmediatelyAvailableFunds" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="DefinedBenefitPlanDisclosureLineItems" xlink:to="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="definition: DefinedBenefitPlanDisclosureLineItems to ScheduleOfDefinedBenefitPlansDisclosuresTable" order="4.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="RetirementPlanTypeAxis" xlink:title="RetirementPlanTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="RetirementPlanTypeAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to RetirementPlanTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="RetirementPlanTypeDomain_2" xlink:title="RetirementPlanTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RetirementPlanTypeAxis" xlink:to="RetirementPlanTypeDomain_2" xlink:title="definition: RetirementPlanTypeAxis to RetirementPlanTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_DefinedBenefitPensionPlansCombinedMember" xlink:label="DefinedBenefitPensionPlansCombinedMember" xlink:title="DefinedBenefitPensionPlansCombinedMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RetirementPlanTypeDomain" xlink:to="DefinedBenefitPensionPlansCombinedMember" xlink:title="definition: RetirementPlanTypeDomain to DefinedBenefitPensionPlansCombinedMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="FairValueByFairValueHierarchyLevelAxis" xlink:title="FairValueByFairValueHierarchyLevelAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="FairValueByFairValueHierarchyLevelAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to FairValueByFairValueHierarchyLevelAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="FairValueMeasurementsFairValueHierarchyDomain" xlink:title="FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="FairValueByFairValueHierarchyLevelAxis" xlink:to="FairValueMeasurementsFairValueHierarchyDomain" xlink:title="definition: FairValueByFairValueHierarchyLevelAxis to FairValueMeasurementsFairValueHierarchyDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="FairValueMeasurementsFairValueHierarchyDomain_2" xlink:title="FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="FairValueByFairValueHierarchyLevelAxis" xlink:to="FairValueMeasurementsFairValueHierarchyDomain_2" xlink:title="definition: FairValueByFairValueHierarchyLevelAxis to FairValueMeasurementsFairValueHierarchyDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="FairValueInputsLevel1Member" xlink:title="FairValueInputsLevel1Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueMeasurementsFairValueHierarchyDomain" xlink:to="FairValueInputsLevel1Member" xlink:title="definition: FairValueMeasurementsFairValueHierarchyDomain to FairValueInputsLevel1Member" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="FairValueInputsLevel2Member" xlink:title="FairValueInputsLevel2Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="FairValueMeasurementsFairValueHierarchyDomain" xlink:to="FairValueInputsLevel2Member" xlink:title="definition: FairValueMeasurementsFairValueHierarchyDomain to FairValueInputsLevel2Member" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:label="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:title="DefinedBenefitPlanByPlanAssetCategoriesAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:title="definition: ScheduleOfDefinedBenefitPlansDisclosuresTable to DefinedBenefitPlanByPlanAssetCategoriesAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="PlanAssetCategoriesDomain" xlink:title="PlanAssetCategoriesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="PlanAssetCategoriesDomain" xlink:title="definition: DefinedBenefitPlanByPlanAssetCategoriesAxis to PlanAssetCategoriesDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="PlanAssetCategoriesDomain_2" xlink:title="PlanAssetCategoriesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="PlanAssetCategoriesDomain_2" xlink:title="definition: DefinedBenefitPlanByPlanAssetCategoriesAxis to PlanAssetCategoriesDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="CashAndCashEquivalentsMember" xlink:title="CashAndCashEquivalentsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="CashAndCashEquivalentsMember" xlink:title="definition: PlanAssetCategoriesDomain to CashAndCashEquivalentsMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesMember" xlink:label="EquitySecuritiesMember" xlink:title="EquitySecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="EquitySecuritiesMember" xlink:title="definition: PlanAssetCategoriesDomain to EquitySecuritiesMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesMember" xlink:label="DebtSecuritiesMember" xlink:title="DebtSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanAssetCategoriesDomain" xlink:to="DebtSecuritiesMember" xlink:title="definition: PlanAssetCategoriesDomain to DebtSecuritiesMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="USTreasurySecuritiesMember" xlink:title="USTreasurySecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="USTreasurySecuritiesMember" xlink:title="definition: DebtSecuritiesMember to USTreasurySecuritiesMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="CorporateDebtSecuritiesMember" xlink:title="CorporateDebtSecuritiesMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="CorporateDebtSecuritiesMember" xlink:title="definition: DebtSecuritiesMember to CorporateDebtSecuritiesMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FixedIncomeFundsMember" xlink:label="FixedIncomeFundsMember" xlink:title="FixedIncomeFundsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtSecuritiesMember" xlink:to="FixedIncomeFundsMember" xlink:title="definition: DebtSecuritiesMember to FixedIncomeFundsMember" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesCommonStockMember" xlink:label="DefinedBenefitPlanEquitySecuritiesCommonStockMember" xlink:title="DefinedBenefitPlanEquitySecuritiesCommonStockMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="DefinedBenefitPlanEquitySecuritiesCommonStockMember" xlink:title="definition: EquitySecuritiesMember to DefinedBenefitPlanEquitySecuritiesCommonStockMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityFundsMember" xlink:label="EquityFundsMember" xlink:title="EquityFundsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="EquitySecuritiesMember" xlink:to="EquityFundsMember" xlink:title="definition: EquitySecuritiesMember to EquityFundsMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/EmployeeBenefitPlansDefinedContributionPlanDeferredCompensationAndOtherDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/StockbasedCompensationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalGeneralDisclosuresAbstract" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalGeneralDisclosuresAbstract" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalGeneralDisclosuresAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalGeneralDisclosuresAbstract" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalGeneralDisclosuresAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermOfPlan" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardTermOfPlan" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardTermOfPlan" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardTermOfPlan" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardTermOfPlan" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" order="6.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" order="7.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationAbstract" xlink:label="ShareBasedCompensationAbstract" xlink:title="ShareBasedCompensationAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationAbstract" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationAbstract" order="8.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="AllocatedShareBasedCompensationExpense" xlink:title="AllocatedShareBasedCompensationExpense" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="AllocatedShareBasedCompensationExpense" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to AllocatedShareBasedCompensationExpense" order="9.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:title="EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" order="10.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" order="11.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:title="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" order="12.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" order="13.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" order="14.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" order="15.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" order="16.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" order="17.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" order="18.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" order="19.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" order="20.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" order="21.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="definition: ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" order="22.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis" xlink:label="PlanNameAxis" xlink:title="PlanNameAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="PlanNameAxis" xlink:title="definition: ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to PlanNameAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain" xlink:label="PlanNameDomain" xlink:title="PlanNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="PlanNameAxis" xlink:to="PlanNameDomain" xlink:title="definition: PlanNameAxis to PlanNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain" xlink:label="PlanNameDomain_2" xlink:title="PlanNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="PlanNameAxis" xlink:to="PlanNameDomain_2" xlink:title="definition: PlanNameAxis to PlanNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_YorkWaterCompanyLongTermIncentivePlanMember" xlink:label="YorkWaterCompanyLongTermIncentivePlanMember" xlink:title="YorkWaterCompanyLongTermIncentivePlanMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="PlanNameDomain" xlink:to="YorkWaterCompanyLongTermIncentivePlanMember" xlink:title="definition: PlanNameDomain to YorkWaterCompanyLongTermIncentivePlanMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis" xlink:label="AwardTypeAxis" xlink:title="AwardTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="AwardTypeAxis" xlink:title="definition: ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to AwardTypeAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="AwardTypeAxis" xlink:to="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="definition: AwardTypeAxis to ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2" xlink:title="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="AwardTypeAxis" xlink:to="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2" xlink:title="definition: AwardTypeAxis to ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockMember" xlink:label="RestrictedStockMember" xlink:title="RestrictedStockMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="RestrictedStockMember" xlink:title="definition: ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to RestrictedStockMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GranteeStatusAxis" xlink:label="GranteeStatusAxis" xlink:title="GranteeStatusAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="GranteeStatusAxis" xlink:title="definition: ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to GranteeStatusAxis" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GranteeStatusDomain" xlink:label="GranteeStatusDomain" xlink:title="GranteeStatusDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="GranteeStatusAxis" xlink:to="GranteeStatusDomain" xlink:title="definition: GranteeStatusAxis to GranteeStatusDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GranteeStatusDomain" xlink:label="GranteeStatusDomain_2" xlink:title="GranteeStatusDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="GranteeStatusAxis" xlink:to="GranteeStatusDomain_2" xlink:title="definition: GranteeStatusAxis to GranteeStatusDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedPaymentArrangementEmployeeMember" xlink:label="ShareBasedPaymentArrangementEmployeeMember" xlink:title="ShareBasedPaymentArrangementEmployeeMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="GranteeStatusDomain" xlink:to="ShareBasedPaymentArrangementEmployeeMember" xlink:title="definition: GranteeStatusDomain to ShareBasedPaymentArrangementEmployeeMember" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/TaxesOtherThanIncomeTaxesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxContingencyLineItems" xlink:label="IncomeTaxContingencyLineItems" xlink:title="IncomeTaxContingencyLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxUncertaintiesAbstract" xlink:label="IncomeTaxUncertaintiesAbstract" xlink:title="IncomeTaxUncertaintiesAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="IncomeTaxContingencyLineItems" xlink:to="IncomeTaxUncertaintiesAbstract" xlink:title="definition: IncomeTaxContingencyLineItems to IncomeTaxUncertaintiesAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OpenTaxYear" xlink:label="OpenTaxYear" xlink:title="OpenTaxYear" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="IncomeTaxContingencyLineItems" xlink:to="OpenTaxYear" xlink:title="definition: IncomeTaxContingencyLineItems to OpenTaxYear" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxContingencyTable" xlink:label="IncomeTaxContingencyTable" xlink:title="IncomeTaxContingencyTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="IncomeTaxContingencyLineItems" xlink:to="IncomeTaxContingencyTable" xlink:title="definition: IncomeTaxContingencyLineItems to IncomeTaxContingencyTable" order="3.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxPeriodAxis" xlink:label="TaxPeriodAxis" xlink:title="TaxPeriodAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="IncomeTaxContingencyTable" xlink:to="TaxPeriodAxis" xlink:title="definition: IncomeTaxContingencyTable to TaxPeriodAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxPeriodDomain" xlink:label="TaxPeriodDomain" xlink:title="TaxPeriodDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="TaxPeriodAxis" xlink:to="TaxPeriodDomain" xlink:title="definition: TaxPeriodAxis to TaxPeriodDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxPeriodDomain" xlink:label="TaxPeriodDomain_2" xlink:title="TaxPeriodDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="TaxPeriodAxis" xlink:to="TaxPeriodDomain_2" xlink:title="definition: TaxPeriodAxis to TaxPeriodDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarliestTaxYearMember" xlink:label="EarliestTaxYearMember" xlink:title="EarliestTaxYearMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxPeriodDomain" xlink:to="EarliestTaxYearMember" xlink:title="definition: TaxPeriodDomain to EarliestTaxYearMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LatestTaxYearMember" xlink:label="LatestTaxYearMember" xlink:title="LatestTaxYearMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxPeriodDomain" xlink:to="LatestTaxYearMember" xlink:title="definition: TaxPeriodDomain to LatestTaxYearMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardLineItems" xlink:label="TaxCreditCarryforwardLineItems" xlink:title="TaxCreditCarryforwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TaxCreditCarryforwardsAbstract" xlink:label="TaxCreditCarryforwardsAbstract" xlink:title="TaxCreditCarryforwardsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxCreditCarryforwardLineItems" xlink:to="TaxCreditCarryforwardsAbstract" xlink:title="definition: TaxCreditCarryforwardLineItems to TaxCreditCarryforwardsAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="TaxCreditCarryforwardAmount" xlink:title="TaxCreditCarryforwardAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxCreditCarryforwardLineItems" xlink:to="TaxCreditCarryforwardAmount" xlink:title="definition: TaxCreditCarryforwardLineItems to TaxCreditCarryforwardAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardExpirationDate" xlink:label="TaxCreditCarryforwardExpirationDate" xlink:title="TaxCreditCarryforwardExpirationDate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxCreditCarryforwardLineItems" xlink:to="TaxCreditCarryforwardExpirationDate" xlink:title="definition: TaxCreditCarryforwardLineItems to TaxCreditCarryforwardExpirationDate" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardTable" xlink:label="TaxCreditCarryforwardTable" xlink:title="TaxCreditCarryforwardTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="TaxCreditCarryforwardLineItems" xlink:to="TaxCreditCarryforwardTable" xlink:title="definition: TaxCreditCarryforwardLineItems to TaxCreditCarryforwardTable" order="4.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardAxis" xlink:label="TaxCreditCarryforwardAxis" xlink:title="TaxCreditCarryforwardAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="TaxCreditCarryforwardTable" xlink:to="TaxCreditCarryforwardAxis" xlink:title="definition: TaxCreditCarryforwardTable to TaxCreditCarryforwardAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="TaxCreditCarryforwardNameDomain" xlink:title="TaxCreditCarryforwardNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="TaxCreditCarryforwardAxis" xlink:to="TaxCreditCarryforwardNameDomain" xlink:title="definition: TaxCreditCarryforwardAxis to TaxCreditCarryforwardNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="TaxCreditCarryforwardNameDomain_2" xlink:title="TaxCreditCarryforwardNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="TaxCreditCarryforwardAxis" xlink:to="TaxCreditCarryforwardNameDomain_2" xlink:title="definition: TaxCreditCarryforwardAxis to TaxCreditCarryforwardNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_CorporateContributionCarryoverMember" xlink:label="CorporateContributionCarryoverMember" xlink:title="CorporateContributionCarryoverMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="TaxCreditCarryforwardNameDomain" xlink:to="CorporateContributionCarryoverMember" xlink:title="definition: TaxCreditCarryforwardNameDomain to CorporateContributionCarryoverMember" order="1.0" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="TaxCreditCarryforwardTable" xlink:to="TaxPeriodAxis" xlink:title="definition: TaxCreditCarryforwardTable to TaxPeriodAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="OperatingLossCarryforwardsLineItems" xlink:title="OperatingLossCarryforwardsLineItems" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_OperatingLossTaxCarryforwardsAbstract" xlink:label="OperatingLossTaxCarryforwardsAbstract" xlink:title="OperatingLossTaxCarryforwardsAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OperatingLossCarryforwardsLineItems" xlink:to="OperatingLossTaxCarryforwardsAbstract" xlink:title="definition: OperatingLossCarryforwardsLineItems to OperatingLossTaxCarryforwardsAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="OperatingLossCarryforwards" xlink:title="OperatingLossCarryforwards" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OperatingLossCarryforwardsLineItems" xlink:to="OperatingLossCarryforwards" xlink:title="definition: OperatingLossCarryforwardsLineItems to OperatingLossCarryforwards" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLossCarryforwardsExpirationDate" xlink:label="OperatingLossCarryforwardsExpirationDate" xlink:title="OperatingLossCarryforwardsExpirationDate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="OperatingLossCarryforwardsLineItems" xlink:to="OperatingLossCarryforwardsExpirationDate" xlink:title="definition: OperatingLossCarryforwardsLineItems to OperatingLossCarryforwardsExpirationDate" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="OperatingLossCarryforwardsTable" xlink:title="OperatingLossCarryforwardsTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="OperatingLossCarryforwardsLineItems" xlink:to="OperatingLossCarryforwardsTable" xlink:title="definition: OperatingLossCarryforwardsLineItems to OperatingLossCarryforwardsTable" order="4.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="IncomeTaxAuthorityAxis" xlink:title="IncomeTaxAuthorityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="OperatingLossCarryforwardsTable" xlink:to="IncomeTaxAuthorityAxis" xlink:title="definition: OperatingLossCarryforwardsTable to IncomeTaxAuthorityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="IncomeTaxAuthorityDomain" xlink:title="IncomeTaxAuthorityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="IncomeTaxAuthorityAxis" xlink:to="IncomeTaxAuthorityDomain" xlink:title="definition: IncomeTaxAuthorityAxis to IncomeTaxAuthorityDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="IncomeTaxAuthorityDomain_2" xlink:title="IncomeTaxAuthorityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="IncomeTaxAuthorityAxis" xlink:to="IncomeTaxAuthorityDomain_2" xlink:title="definition: IncomeTaxAuthorityAxis to IncomeTaxAuthorityDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DomesticCountryMember" xlink:label="DomesticCountryMember" xlink:title="DomesticCountryMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="IncomeTaxAuthorityDomain" xlink:to="DomesticCountryMember" xlink:title="definition: IncomeTaxAuthorityDomain to DomesticCountryMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="StateAndLocalJurisdictionMember" xlink:title="StateAndLocalJurisdictionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="IncomeTaxAuthorityDomain" xlink:to="StateAndLocalJurisdictionMember" xlink:title="definition: IncomeTaxAuthorityDomain to StateAndLocalJurisdictionMember" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilitiesLineItems" xlink:label="RegulatoryLiabilitiesLineItems" xlink:title="RegulatoryLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:label="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:title="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryAssetsAndLiabilitiesOtherDisclosuresAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilities" xlink:label="RegulatoryLiabilities" xlink:title="RegulatoryLiabilities" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryLiabilities" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryLiabilities" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_PublicUtilitiesApprovedAmortizationPeriod" xlink:label="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="PublicUtilitiesApprovedAmortizationPeriod" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="PublicUtilitiesApprovedAmortizationPeriod" xlink:title="definition: RegulatoryLiabilitiesLineItems to PublicUtilitiesApprovedAmortizationPeriod" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_RegulatoryLiabilityAmortizationOfCatchUpDeduction" xlink:label="RegulatoryLiabilityAmortizationOfCatchUpDeduction" xlink:title="RegulatoryLiabilityAmortizationOfCatchUpDeduction" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryLiabilityAmortizationOfCatchUpDeduction" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryLiabilityAmortizationOfCatchUpDeduction" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_RegulatoryLiabilityOngoingDeduction" xlink:label="RegulatoryLiabilityOngoingDeduction" xlink:title="RegulatoryLiabilityOngoingDeduction" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="RegulatoryLiabilityOngoingDeduction" xlink:title="definition: RegulatoryLiabilitiesLineItems to RegulatoryLiabilityOngoingDeduction" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRegulatoryLiabilitiesTable" xlink:label="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="ScheduleOfRegulatoryLiabilitiesTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="RegulatoryLiabilitiesLineItems" xlink:to="ScheduleOfRegulatoryLiabilitiesTable" xlink:title="definition: RegulatoryLiabilitiesLineItems to ScheduleOfRegulatoryLiabilitiesTable" order="6.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityAxis" xlink:label="RegulatoryLiabilityAxis" xlink:title="RegulatoryLiabilityAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ScheduleOfRegulatoryLiabilitiesTable" xlink:to="RegulatoryLiabilityAxis" xlink:title="definition: ScheduleOfRegulatoryLiabilitiesTable to RegulatoryLiabilityAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RegulatoryLiabilityDomain" xlink:label="RegulatoryLiabilityDomain_2" xlink:title="RegulatoryLiabilityDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="RegulatoryLiabilityAxis" xlink:to="RegulatoryLiabilityDomain_2" xlink:title="definition: RegulatoryLiabilityAxis to RegulatoryLiabilityDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TangiblePropertyRegulationsCatchUpDeductionMember" xlink:label="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="TangiblePropertyRegulationsCatchUpDeductionMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="TangiblePropertyRegulationsCatchUpDeductionMember" xlink:title="definition: RegulatoryLiabilityDomain to TangiblePropertyRegulationsCatchUpDeductionMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_TangiblePropertyRegulationsOngoingDeductionsMember" xlink:label="TangiblePropertyRegulationsOngoingDeductionsMember" xlink:title="TangiblePropertyRegulationsOngoingDeductionsMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="RegulatoryLiabilityDomain" xlink:to="TangiblePropertyRegulationsOngoingDeductionsMember" xlink:title="definition: RegulatoryLiabilityDomain to TangiblePropertyRegulationsOngoingDeductionsMember" order="2.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/IncomeTaxesDetailsCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/SubsequentEventDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventLineItems" xlink:label="SubsequentEventLineItems" xlink:title="SubsequentEventLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtCurrentAndNoncurrentAbstract" xlink:label="LongtermDebtCurrentAndNoncurrentAbstract" xlink:title="LongtermDebtCurrentAndNoncurrentAbstract" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventLineItems" xlink:to="LongtermDebtCurrentAndNoncurrentAbstract" xlink:title="definition: SubsequentEventLineItems to LongtermDebtCurrentAndNoncurrentAbstract" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="DebtInstrumentFaceAmount" xlink:title="DebtInstrumentFaceAmount" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventLineItems" xlink:to="DebtInstrumentFaceAmount" xlink:title="definition: SubsequentEventLineItems to DebtInstrumentFaceAmount" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="DebtInstrumentInterestRateStatedPercentage" xlink:title="DebtInstrumentInterestRateStatedPercentage" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventLineItems" xlink:to="DebtInstrumentInterestRateStatedPercentage" xlink:title="definition: SubsequentEventLineItems to DebtInstrumentInterestRateStatedPercentage" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="DebtInstrumentMaturityDate" xlink:title="DebtInstrumentMaturityDate" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventLineItems" xlink:to="DebtInstrumentMaturityDate" xlink:title="definition: SubsequentEventLineItems to DebtInstrumentMaturityDate" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:label="ProceedsFromDebtNetOfIssuanceCosts" xlink:title="ProceedsFromDebtNetOfIssuanceCosts" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventLineItems" xlink:to="ProceedsFromDebtNetOfIssuanceCosts" xlink:title="definition: SubsequentEventLineItems to ProceedsFromDebtNetOfIssuanceCosts" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTable" xlink:label="SubsequentEventTable" xlink:title="SubsequentEventTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="SubsequentEventLineItems" xlink:to="SubsequentEventTable" xlink:title="definition: SubsequentEventLineItems to SubsequentEventTable" order="6.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="SubsequentEventTypeAxis" xlink:title="SubsequentEventTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="SubsequentEventTable" xlink:to="SubsequentEventTypeAxis" xlink:title="definition: SubsequentEventTable to SubsequentEventTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="SubsequentEventTypeDomain" xlink:title="SubsequentEventTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="SubsequentEventTypeAxis" xlink:to="SubsequentEventTypeDomain" xlink:title="definition: SubsequentEventTypeAxis to SubsequentEventTypeDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="SubsequentEventTypeDomain_2" xlink:title="SubsequentEventTypeDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="SubsequentEventTypeAxis" xlink:to="SubsequentEventTypeDomain_2" xlink:title="definition: SubsequentEventTypeAxis to SubsequentEventTypeDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsequentEventMember" xlink:label="SubsequentEventMember" xlink:title="SubsequentEventMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="SubsequentEventTypeDomain" xlink:to="SubsequentEventMember" xlink:title="definition: SubsequentEventTypeDomain to SubsequentEventMember" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis" xlink:label="DebtInstrumentAxis" xlink:title="DebtInstrumentAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="SubsequentEventTable" xlink:to="DebtInstrumentAxis" xlink:title="definition: SubsequentEventTable to DebtInstrumentAxis" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain_2" xlink:title="DebtInstrumentNameDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="DebtInstrumentAxis" xlink:to="DebtInstrumentNameDomain_2" xlink:title="definition: DebtInstrumentAxis to DebtInstrumentNameDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="yorw-20221231.xsd#yorw_SeniorNotesDue2053Member" xlink:label="SeniorNotesDue2053Member" xlink:title="SeniorNotesDue2053Member" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="DebtInstrumentNameDomain" xlink:to="SeniorNotesDue2053Member" xlink:title="definition: DebtInstrumentNameDomain to SeniorNotesDue2053Member" order="1.0" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://yorkwater.com/role/ScheduleIiValuationAndQualifyingAccountsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ValuationAndQualifyingAccountsDisclosureLineItems" xlink:label="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:title="ValuationAndQualifyingAccountsDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward" xlink:label="MovementInValuationAllowancesAndReservesRollForward" xlink:title="MovementInValuationAllowancesAndReservesRollForward" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="MovementInValuationAllowancesAndReservesRollForward" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to MovementInValuationAllowancesAndReservesRollForward" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesBalance" xlink:label="ValuationAllowancesAndReservesBalance" xlink:title="ValuationAllowancesAndReservesBalance" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="ValuationAllowancesAndReservesBalance" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to ValuationAllowancesAndReservesBalance" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:label="ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:title="ValuationAllowancesAndReservesChargedToCostAndExpense" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to ValuationAllowancesAndReservesChargedToCostAndExpense" order="3.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesRecoveries" xlink:label="ValuationAllowancesAndReservesRecoveries" xlink:title="ValuationAllowancesAndReservesRecoveries" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="ValuationAllowancesAndReservesRecoveries" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to ValuationAllowancesAndReservesRecoveries" order="4.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesDeductions" xlink:label="ValuationAllowancesAndReservesDeductions" xlink:title="ValuationAllowancesAndReservesDeductions" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="ValuationAllowancesAndReservesDeductions" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to ValuationAllowancesAndReservesDeductions" order="5.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ValuationAndQualifyingAccountsDisclosureTable" xlink:label="ValuationAndQualifyingAccountsDisclosureTable" xlink:title="ValuationAndQualifyingAccountsDisclosureTable" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ValuationAndQualifyingAccountsDisclosureLineItems" xlink:to="ValuationAndQualifyingAccountsDisclosureTable" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureLineItems to ValuationAndQualifyingAccountsDisclosureTable" order="6.0" t1:closed="true" t1:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="ValuationAllowancesAndReservesTypeAxis" xlink:title="ValuationAllowancesAndReservesTypeAxis" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ValuationAndQualifyingAccountsDisclosureTable" xlink:to="ValuationAllowancesAndReservesTypeAxis" xlink:title="definition: ValuationAndQualifyingAccountsDisclosureTable to ValuationAllowancesAndReservesTypeAxis" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="ValuationAllowancesAndReservesDomain" xlink:title="ValuationAllowancesAndReservesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ValuationAllowancesAndReservesTypeAxis" xlink:to="ValuationAllowancesAndReservesDomain" xlink:title="definition: ValuationAllowancesAndReservesTypeAxis to ValuationAllowancesAndReservesDomain" order="1.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="ValuationAllowancesAndReservesDomain_2" xlink:title="ValuationAllowancesAndReservesDomain" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ValuationAllowancesAndReservesTypeAxis" xlink:to="ValuationAllowancesAndReservesDomain_2" xlink:title="definition: ValuationAllowancesAndReservesTypeAxis to ValuationAllowancesAndReservesDomain_2" order="2.0" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForCreditLossMember" xlink:label="AllowanceForCreditLossMember" xlink:title="AllowanceForCreditLossMember" />
    <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ValuationAllowancesAndReservesDomain" xlink:to="AllowanceForCreditLossMember" xlink:title="definition: ValuationAllowancesAndReservesDomain to AllowanceForCreditLossMember" order="1.0" />
  </link:definitionLink>
</link:linkbase>
