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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e6a00-1c2a-7d7f-b0d9-7e8b9acf4a2e,g:4afc3456-ae1b-4846-84c1-344073d30413-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:bmrc="http://www.bankofmarin.com/20260630" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.bankofmarin.com/20260630">
  <xs:import namespace="http://fasb.org/srt/2026" schemaLocation="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2026" schemaLocation="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2026" schemaLocation="https://xbrl.sec.gov/dei/2026/dei-2026.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2026" schemaLocation="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="bmrc-20260630_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="bmrc-20260630_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="bmrc-20260630_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="bmrc-20260630_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="Cover" roleURI="http://www.bankofmarin.com/role/Cover">
        <link:definition>0000001 - Document - Cover</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCONDITION" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCONDITION">
        <link:definition>9952151 - Statement - CONSOLIDATED STATEMENTS OF CONDITION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCONDITIONParenthetical" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCONDITIONParenthetical">
        <link:definition>9952152 - Statement - CONSOLIDATED STATEMENTS OF CONDITION (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS">
        <link:definition>9952153 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY">
        <link:definition>9952154 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical">
        <link:definition>9952155 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCASHFLOWS" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS">
        <link:definition>9952156 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentation" roleURI="http://www.bankofmarin.com/role/BasisofPresentation">
        <link:definition>9952157 - Disclosure - Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RecentlyAdoptedandIssuedAccountingStandards" roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedandIssuedAccountingStandards">
        <link:definition>9952158 - Disclosure - Recently Adopted and Issued Accounting Standards</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofAssetsandLiabilities" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilities">
        <link:definition>9952159 - Disclosure - Fair Value of Assets and Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecurities" roleURI="http://www.bankofmarin.com/role/InvestmentSecurities">
        <link:definition>9952160 - Disclosure - Investment Securities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoans" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoans">
        <link:definition>9952161 - Disclosure - Loans and Allowance for Credit Losses on Loans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BorrowingsandOtherObligations" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligations">
        <link:definition>9952162 - Disclosure - Borrowings and Other Obligations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquity" roleURI="http://www.bankofmarin.com/role/StockholdersEquity">
        <link:definition>9952163 - Disclosure - Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilities" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilities">
        <link:definition>9952164 - Disclosure - Commitments and Contingent Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SubordinatedNotes" roleURI="http://www.bankofmarin.com/role/SubordinatedNotes">
        <link:definition>9952165 - Disclosure - Subordinated Notes</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivities" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivities">
        <link:definition>9952166 - Disclosure - Derivative Financial Instruments and Hedging Activities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentationPolicies" roleURI="http://www.bankofmarin.com/role/BasisofPresentationPolicies">
        <link:definition>9955511 - Disclosure - Basis of Presentation (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentationTables" roleURI="http://www.bankofmarin.com/role/BasisofPresentationTables">
        <link:definition>9955512 - Disclosure - Basis of Presentation (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofAssetsandLiabilitiesTables" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesTables">
        <link:definition>9955513 - Disclosure - Fair Value of Assets and Liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesTables" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesTables">
        <link:definition>9955514 - Disclosure - Investment Securities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansTables" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansTables">
        <link:definition>9955515 - Disclosure - Loans and Allowance for Credit Losses on Loans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BorrowingsandOtherObligationsTables" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsTables">
        <link:definition>9955516 - Disclosure - Borrowings and Other Obligations (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityTables" roleURI="http://www.bankofmarin.com/role/StockholdersEquityTables">
        <link:definition>9955517 - Disclosure - Stockholders' Equity (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesTables" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesTables">
        <link:definition>9955518 - Disclosure - Commitments and Contingent Liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivitiesTables" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesTables">
        <link:definition>9955519 - Disclosure - Derivative Financial Instruments and Hedging Activities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentationNarrativeDetails" roleURI="http://www.bankofmarin.com/role/BasisofPresentationNarrativeDetails">
        <link:definition>9955520 - Disclosure - Basis of Presentation - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentationScheduleofSegmentRevenueProfitorLossSignificantSegmentExpensesandOtherSegmentItemsDetails" roleURI="http://www.bankofmarin.com/role/BasisofPresentationScheduleofSegmentRevenueProfitorLossSignificantSegmentExpensesandOtherSegmentItemsDetails">
        <link:definition>9955521 - Disclosure - Basis of Presentation - Schedule of Segment Revenue, Profit or Loss, Significant Segment Expenses and Other Segment Items (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentationScheduleofEarningsLossPerShareReconciliationDetails" roleURI="http://www.bankofmarin.com/role/BasisofPresentationScheduleofEarningsLossPerShareReconciliationDetails">
        <link:definition>9955522 - Disclosure - Basis of Presentation - Schedule of Earnings (Loss) Per Share Reconciliation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofAssetsandLiabilitiesScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetails">
        <link:definition>9955523 - Disclosure - Fair Value of Assets and Liabilities - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofAssetsandLiabilitiesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesNarrativeDetails">
        <link:definition>9955524 - Disclosure - Fair Value of Assets and Liabilities - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofAssetsandLiabilitiesScheduleofFairValueofFinancialInstrumentsDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesScheduleofFairValueofFinancialInstrumentsDetails">
        <link:definition>9955525 - Disclosure - Fair Value of Assets and Liabilities - Schedule of Fair Value of Financial Instruments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails">
        <link:definition>9955526 - Disclosure - Investment Securities - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails">
        <link:definition>9955527 - Disclosure - Investment Securities - Schedule of Available-for-Sale Securities Amortized Cost and Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesScheduleofInvestmentsClassifiedbyContractualMaturityDateDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofInvestmentsClassifiedbyContractualMaturityDateDetails">
        <link:definition>9955528 - Disclosure - Investment Securities - Schedule of Investments Classified by Contractual Maturity Date (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesScheduleofSaleofInvestmentSecuritiesandGrossGainsandLossesDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofSaleofInvestmentSecuritiesandGrossGainsandLossesDetails">
        <link:definition>9955529 - Disclosure - Investment Securities - Schedule of Sale of Investment Securities and Gross Gains and Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesScheduleofFinancialInstrumentsOwnedandPledgedasCollateralDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofFinancialInstrumentsOwnedandPledgedasCollateralDetails">
        <link:definition>9955530 - Disclosure - Investment Securities - Schedule of Financial Instruments Owned and Pledged as Collateral (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesScheduleofUnrealizedLossonInvestmentsDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossonInvestmentsDetails">
        <link:definition>9955531 - Disclosure - Investment Securities - Schedule of Unrealized Loss on Investments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentSecuritiesNonMarketableSecuritiesIncludedinOtherAssetsNarrativeDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesIncludedinOtherAssetsNarrativeDetails">
        <link:definition>9955532 - Disclosure - Investment Securities - Non-Marketable Securities Included in Other Assets Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyClassDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyClassDetails">
        <link:definition>9955533 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Loans by Class (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails">
        <link:definition>9955534 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Loans by Risk Grade and Origination Year (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofLoansOutstandingandAgingAnalysisDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansOutstandingandAgingAnalysisDetails">
        <link:definition>9955535 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Loans Outstanding and Aging Analysis (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofCollateralDependentNonAccrualLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofCollateralDependentNonAccrualLoansDetails">
        <link:definition>9955536 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Collateral-Dependent Non-Accrual Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostofLoansModifiedDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostofLoansModifiedDetails">
        <link:definition>9955537 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Amortized Cost of Loans Modified (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofFinancialEffectofLoanModificationsDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofFinancialEffectofLoanModificationsDetails">
        <link:definition>9955538 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Financial Effect of Loan Modifications (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostandPaymentStatusofLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostandPaymentStatusofLoansDetails">
        <link:definition>9955539 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Amortized Cost and Payment Status of Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofAllocationoftheAllowanceforCreditLossesonLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofAllocationoftheAllowanceforCreditLossesonLoansDetails">
        <link:definition>9955540 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Allocation of the Allowance for Credit Losses on Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansScheduleofAllowanceforCreditLossesonLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofAllowanceforCreditLossesonLoansDetails">
        <link:definition>9955541 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Allowance for Credit Losses on Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansPledgedLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansPledgedLoansDetails">
        <link:definition>9955542 - Disclosure - Loans and Allowance for Credit Losses on Loans - Pledged Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansDetails">
        <link:definition>9955543 - Disclosure - Loans and Allowance for Credit Losses on Loans - Related Party Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BorrowingsandOtherObligationsBorrowingsNarrativeDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsBorrowingsNarrativeDetails">
        <link:definition>9955544 - Disclosure - Borrowings and Other Obligations - Borrowings Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BorrowingsandOtherObligationsOtherObligationsNarrativeDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsOtherObligationsNarrativeDetails">
        <link:definition>9955545 - Disclosure - Borrowings and Other Obligations- Other Obligations Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BorrowingsandOtherObligationsScheduleofDebtDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsScheduleofDebtDetails">
        <link:definition>9955546 - Disclosure - Borrowings and Other Obligations - Schedule of Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityNarrativeDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityNarrativeDetails">
        <link:definition>9955547 - Disclosure - Stockholders' Equity - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofInformationofCashlessExercisePricesDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityScheduleofInformationofCashlessExercisePricesDetails">
        <link:definition>9955548 - Disclosure - Stockholders' Equity - Schedule of Information of Cashless Exercise Prices (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofUndrawnLoanCommitmentsandStandbyLettersofCreditDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofUndrawnLoanCommitmentsandStandbyLettersofCreditDetails">
        <link:definition>9955549 - Disclosure - Commitments and Contingent Liabilities - Schedule of Undrawn Loan Commitments and Standby Letters of Credit (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesNarrativeDetails">
        <link:definition>9955550 - Disclosure - Commitments and Contingent Liabilities - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails">
        <link:definition>9955551 - Disclosure - Commitments and Contingent Liabilities - Schedule of Operating and Finance Lease Right-of-Use Assets and Lease Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofNoncashInvestingandFinancingActivitiesDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofNoncashInvestingandFinancingActivitiesDetails">
        <link:definition>9955552 - Disclosure - Commitments and Contingent Liabilities - Schedule of Noncash Investing and Financing Activities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofLeaseCostDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofLeaseCostDetails">
        <link:definition>9955553 - Disclosure - Commitments and Contingent Liabilities - Schedule of Lease Cost (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseLiabilityMaturitiesDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseLiabilityMaturitiesDetails">
        <link:definition>9955554 - Disclosure - Commitments and Contingent Liabilities - Schedule of Operating and Finance Lease Liability Maturities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseLiabilityMaturitiesDetails_1" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingentLiabilitiesScheduleofOperatingandFinanceLeaseLiabilityMaturitiesDetails_1">
        <link:definition>9955554 - Disclosure - Commitments and Contingent Liabilities - Schedule of Operating and Finance Lease Liability Maturities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SubordinatedNotesDetails" roleURI="http://www.bankofmarin.com/role/SubordinatedNotesDetails">
        <link:definition>9955555 - Disclosure - Subordinated Notes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivitiesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesNarrativeDetails">
        <link:definition>9955556 - Disclosure - Derivative Financial Instruments and Hedging Activities - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInformationonDerivativesDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInformationonDerivativesDetails">
        <link:definition>9955557 - Disclosure - Derivative Financial Instruments and Hedging Activities - Schedule of Information on Derivatives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails">
        <link:definition>9955558 - Disclosure - Derivative Financial Instruments and Hedging Activities - Schedule of Interest Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsandLiabilitiesDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsandLiabilitiesDetails">
        <link:definition>9955559 - Disclosure - Derivative Financial Instruments and Hedging Activities - Schedule of Offsetting of Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="bmrc_OtherDebtAndLeaseObligations" abstract="false" name="OtherDebtAndLeaseObligations" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_MerchantInterchangeFeesNetMember" abstract="true" name="MerchantInterchangeFeesNetMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_InterestExpenseBorrowingsAndOtherObligations" abstract="false" name="InterestExpenseBorrowingsAndOtherObligations" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DividendIncomeFederalHomeLoanBank" abstract="false" name="DividendIncomeFederalHomeLoanBank" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits" abstract="false" name="EarningsOnBankOwnedLifeInsuranceDeathBenefits" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OccupancyAndEquipment" abstract="false" name="OccupancyAndEquipment" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DataProcessing" abstract="false" name="DataProcessing" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_InformationTechnology" abstract="false" name="InformationTechnology" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets" abstract="false" name="DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_CharitableContributionsExpense" abstract="false" name="CharitableContributionsExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DepositNetworkFees" abstract="false" name="DepositNetworkFees" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" abstract="false" name="AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" abstract="false" name="SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="bmrc_StockIssuedDuringPeriodValueStockOptionsExercisedNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" abstract="false" name="StockIssuedDuringPeriodValueStockOptionsExercisedNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_StockIssuedInPaymentOfDirectorFeesShares" abstract="false" name="StockIssuedInPaymentOfDirectorFeesShares" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="bmrc_StockIssuedInPaymentOfDirectorFees" abstract="false" name="StockIssuedInPaymentOfDirectorFees" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_CompensationExpenseCommonStockForDirectorFees" abstract="false" name="CompensationExpenseCommonStockForDirectorFees" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AccretionOfDiscountOnAcquiredLoans" abstract="false" name="AccretionOfDiscountOnAcquiredLoans" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_WriteDownOfOtherRealEstateOwned" abstract="false" name="WriteDownOfOtherRealEstateOwned" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DepreciationDepletionAmortizationNonproductionExcludingAmortizationOfIntangibleAssets" abstract="false" name="DepreciationDepletionAmortizationNonproductionExcludingAmortizationOfIntangibleAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_IncreaseDecreaseInFinanceReceivableNet" abstract="false" name="IncreaseDecreaseInFinanceReceivableNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DebtSecuritiesAvailableForSaleAndHeldToMaturityContinuousUnrealizedLossPositionFairValueTableTextBlock" abstract="false" name="DebtSecuritiesAvailableForSaleAndHeldToMaturityContinuousUnrealizedLossPositionFairValueTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="bmrc_ScheduleOfCollateralDependentLoansTableTextBlock" abstract="false" name="ScheduleOfCollateralDependentLoansTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="bmrc_ShareBasedPaymentArrangementShareInformationAboutCashlessExercisesTableTextBlock" abstract="false" name="ShareBasedPaymentArrangementShareInformationAboutCashlessExercisesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="bmrc_ScheduleOfContractualAmountOffBalanceSheetRisksTableTextBlock" abstract="false" name="ScheduleOfContractualAmountOffBalanceSheetRisksTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="bmrc_AssetsAndLiabilitiesLesseeTableTextBlock" abstract="false" name="AssetsAndLiabilitiesLesseeTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="bmrc_CommunityBankingSegmentMember" abstract="true" name="CommunityBankingSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_WealthManagementAndTrustServicesSegmentMember" abstract="true" name="WealthManagementAndTrustServicesSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_OtherIncomeLossSegmentReconciliation" abstract="false" name="OtherIncomeLossSegmentReconciliation" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LaborAndRelatedExpenseAdjusted" abstract="false" name="LaborAndRelatedExpenseAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OccupancyAndEquipmentAdjusted" abstract="false" name="OccupancyAndEquipmentAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DataProcessingAdjusted" abstract="false" name="DataProcessingAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ProfessionalFeesAdjusted" abstract="false" name="ProfessionalFeesAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssetsAdjusted" abstract="false" name="DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssetsAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherNoninterestExpenseAdjusted" abstract="false" name="OtherNoninterestExpenseAdjusted" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherNonSegmentIncomeLoss" abstract="false" name="OtherNonSegmentIncomeLoss" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_NumberOfFormsOfOutstandingCommonStock" abstract="false" name="NumberOfFormsOfOutstandingCommonStock" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_PotentiallyDilutiveCommonSharesRelatedToAbstract" abstract="true" name="PotentiallyDilutiveCommonSharesRelatedToAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_CommercialMortgageBackedSecuritiesMortgageBackedSecuritiesAndCollateralizedMortgageObligationsIssuedByU.S.GovernmentSponsoredAgenciesMember" abstract="true" name="CommercialMortgageBackedSecuritiesMortgageBackedSecuritiesAndCollateralizedMortgageObligationsIssuedByU.S.GovernmentSponsoredAgenciesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_InterestRateContractsLoansMember" abstract="true" name="InterestRateContractsLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesNumberOfSecurities" abstract="false" name="MarketableSecuritiesNumberOfSecurities" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_InterestReceivableFairValueDisclosure" abstract="false" name="InterestReceivableFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_InterestPayableFairValueDisclosure" abstract="false" name="InterestPayableFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" abstract="false" name="MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLongerThan12Months" abstract="false" name="MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLongerThan12Months" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThan12Months" abstract="false" name="MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThan12Months" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAllowanceForCreditLoss" abstract="false" name="DebtSecuritiesAvailableForSaleUnrealizedLossPositionAllowanceForCreditLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_SecuritiesOfUSGovernmentSponsoredEnterprisesAbstract" abstract="true" name="SecuritiesOfUSGovernmentSponsoredEnterprisesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_PledgedToStateOfCaliforniaMember" abstract="true" name="PledgedToStateOfCaliforniaMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_PublicDepositsMember" abstract="true" name="PublicDepositsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_TrustDepositsMember" abstract="true" name="TrustDepositsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_CheckingAccountWealthManagementAndTrustServicesMember" abstract="true" name="CheckingAccountWealthManagementAndTrustServicesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_BankruptcyTrusteeDepositsPledgedWithFederalReserveBankMember" abstract="true" name="BankruptcyTrusteeDepositsPledgedWithFederalReserveBankMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FHLBSecuritiesBackedCreditProgramMember" abstract="true" name="FHLBSecuritiesBackedCreditProgramMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FederalReserveDiscountWindowMember" abstract="true" name="FederalReserveDiscountWindowMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" abstract="true" name="ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems" abstract="true" name="ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionFairValueAbstract" abstract="true" name="DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionFairValueAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_ClassB1SharesMember" abstract="true" name="ClassB1SharesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ClassB2SharesMember" abstract="true" name="ClassB2SharesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_LegacyClassBFHLBStockMember" abstract="true" name="LegacyClassBFHLBStockMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ClassBAndClassB1StockMember" abstract="true" name="ClassBAndClassB1StockMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FederalHomeLoanBankStockParValue" abstract="false" name="FederalHomeLoanBankStockParValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="bmrc_FederalHomeLoanBankDividendRatePercentage" abstract="false" name="FederalHomeLoanBankDividendRatePercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="bmrc_CommercialAndIndustrialMember" abstract="true" name="CommercialAndIndustrialMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_CommercialRealEstateLoanOwnerOccupiedMember" abstract="true" name="CommercialRealEstateLoanOwnerOccupiedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_CommercialRealEstateLoanNonOwnerOccupiedMember" abstract="true" name="CommercialRealEstateLoanNonOwnerOccupiedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_OtherResidentialLoanMember" abstract="true" name="OtherResidentialLoanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_InstallmentAndOtherConsumerMember" abstract="true" name="InstallmentAndOtherConsumerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FinancingReceivable90DaysOrMorePastDueStillAccruingNumberOfLoans" abstract="false" name="FinancingReceivable90DaysOrMorePastDueStillAccruingNumberOfLoans" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_FinancingReceivableNonaccrualEarningInterestOnCashBasis" abstract="false" name="FinancingReceivableNonaccrualEarningInterestOnCashBasis" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherCollateralHeldMember" abstract="true" name="OtherCollateralHeldMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FinancingReceivableNonaccrualInProcessOfForeclosure" abstract="false" name="FinancingReceivableNonaccrualInProcessOfForeclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_WeightedAverageRatioOfLoansValueToCollateralDependentLoansValue" abstract="false" name="WeightedAverageRatioOfLoansValueToCollateralDependentLoansValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="bmrc_TotalLoanRestructuringModificationMember" abstract="true" name="TotalLoanRestructuringModificationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FinancingReceivableNonaccrualModifiedInPeriodAmount" abstract="false" name="FinancingReceivableNonaccrualModifiedInPeriodAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AllowanceForCreditLossAllocationAxis" abstract="true" name="AllowanceForCreditLossAllocationAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_AllowanceForCreditLossAllocationDomain" abstract="true" name="AllowanceForCreditLossAllocationDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ModeledExpectedCreditLossesMember" abstract="true" name="ModeledExpectedCreditLossesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_QualitativeAdjustmentsMember" abstract="true" name="QualitativeAdjustmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_SpecificAllocationsMember" abstract="true" name="SpecificAllocationsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FederalReserveBankMember" abstract="true" name="FederalReserveBankMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FederalReserveBankOfSanFranciscoMember" abstract="true" name="FederalReserveBankOfSanFranciscoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FederalReserveBankTermFundingProgramMember" abstract="true" name="FederalReserveBankTermFundingProgramMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_A2035NotesMember" abstract="true" name="A2035NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_FinanceLeaseLiabilityAverageAmountOutstanding" abstract="false" name="FinanceLeaseLiabilityAverageAmountOutstanding" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DebtAndLeaseObligationAverageAmountOutstanding" abstract="false" name="DebtAndLeaseObligationAverageAmountOutstanding" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinanceLeaseLiabilityWeightedAverageInterestRate" abstract="false" name="FinanceLeaseLiabilityWeightedAverageInterestRate" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="bmrc_DebtAndFinanceLeaseLiabilityWeightedAverageInterestRate" abstract="false" name="DebtAndFinanceLeaseLiabilityWeightedAverageInterestRate" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="bmrc_AdjustmentsRelatedToTaxWithholdingAndExerciseOfOptionsForShareBasedCompensation" abstract="false" name="AdjustmentsRelatedToTaxWithholdingAndExerciseOfOptionsForShareBasedCompensation" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice" abstract="false" name="SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember" abstract="true" name="LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_CommercialLinesOfCreditMember" abstract="true" name="CommercialLinesOfCreditMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_UndisbursedConstructionLoansMember" abstract="true" name="UndisbursedConstructionLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ConsumerAndOtherLinesOfCreditMember" abstract="true" name="ConsumerAndOtherLinesOfCreditMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_OffBalanceSheetArrangementsLiabilitiesCurrentExposure" abstract="false" name="OffBalanceSheetArrangementsLiabilitiesCurrentExposure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OperatingLeasesAbstract" abstract="true" name="OperatingLeasesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_FinanceLeasesAbstract" abstract="true" name="FinanceLeasesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_FinanceLeaseCost1Abstract" abstract="true" name="FinanceLeaseCost1Abstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_FinanceLeaseCost" abstract="false" name="FinanceLeaseCost" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour" abstract="false" name="LesseeOperatingLeaseLiabilityToBePaidAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinanceLeaseLiabilityToBePaidAfterYearFour" abstract="false" name="FinanceLeaseLiabilityToBePaidAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DebtInstrumentIssuanceDownstreamedAsCommonEquity" abstract="false" name="DebtInstrumentIssuanceDownstreamedAsCommonEquity" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DecreaseIncreaseInFairValueOfInterestRateFairValueHedgingInstruments" abstract="false" name="DecreaseIncreaseInFairValueOfInterestRateFairValueHedgingInstruments" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DerivativeHedgedInterestEarnedPaid" abstract="false" name="DerivativeHedgedInterestEarnedPaid" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" abstract="false" name="DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
</xs:schema>
