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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:5e52992d-6909-4bb5-bc07-2db53debac06,g:33a68087-104e-469b-a7c2-36e1a0b11b72-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:bmrc="http://www.bankofmarin.com/20231231" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.bankofmarin.com/20231231">
  <xs:import namespace="http://fasb.org/srt/2023" schemaLocation="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2023" schemaLocation="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.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/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-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/2023" schemaLocation="https://xbrl.sec.gov/dei/2023/dei-2023.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-20231231_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-20231231_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-20231231_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-20231231_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="AuditInformation" roleURI="http://www.bankofmarin.com/role/AuditInformation">
        <link:definition>0000002 - Document - Audit Information</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>0000003 - 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>0000004 - 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>0000005 - 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="CONSOLIDATEDSTATEMENTOFCHANGESINSTOCKHOLDERSEQUITY" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTOFCHANGESINSTOCKHOLDERSEQUITY">
        <link:definition>0000006 - Statement - CONSOLIDATED STATEMENT 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="CONSOLIDATEDSTATEMENTOFCHANGESINSTOCKHOLDERSEQUITYParenthetical" roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTOFCHANGESINSTOCKHOLDERSEQUITYParenthetical">
        <link:definition>0000007 - Statement - CONSOLIDATED STATEMENT 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>0000008 - 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="SummaryofSignificantAccountingPolicies" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPolicies">
        <link:definition>0000009 - Disclosure - Summary of Significant Accounting 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="InvestmentSecurities" roleURI="http://www.bankofmarin.com/role/InvestmentSecurities">
        <link:definition>0000010 - 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>0000011 - 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="BankPremisesandEquipment" roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipment">
        <link:definition>0000012 - Disclosure - Bank Premises and Equipment</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="BankOwnedLifeInsurance" roleURI="http://www.bankofmarin.com/role/BankOwnedLifeInsurance">
        <link:definition>0000013 - Disclosure - Bank Owned Life Insurance</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="Deposits" roleURI="http://www.bankofmarin.com/role/Deposits">
        <link:definition>0000014 - Disclosure - Deposits</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>0000015 - 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="StockholdersEquityandStockPlans" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlans">
        <link:definition>0000016 - Disclosure - Stockholders' Equity and Stock Plans</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>0000017 - 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="BenefitPlans" roleURI="http://www.bankofmarin.com/role/BenefitPlans">
        <link:definition>0000018 - Disclosure - Benefit Plans</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="IncomeTaxes" roleURI="http://www.bankofmarin.com/role/IncomeTaxes">
        <link:definition>0000019 - Disclosure - Income Taxes</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="CommitmentsandContingencies" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingencies">
        <link:definition>0000020 - Disclosure - Commitments and Contingencies</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="ConcentrationsofCreditRisk" roleURI="http://www.bankofmarin.com/role/ConcentrationsofCreditRisk">
        <link:definition>0000021 - Disclosure - Concentrations of Credit Risk</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>0000022 - 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="RegulatoryMatters" roleURI="http://www.bankofmarin.com/role/RegulatoryMatters">
        <link:definition>0000023 - Disclosure - Regulatory Matters</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="FinancialInstrumentswithOffBalanceSheetRisk" roleURI="http://www.bankofmarin.com/role/FinancialInstrumentswithOffBalanceSheetRisk">
        <link:definition>0000024 - Disclosure - Financial Instruments with Off-Balance Sheet Risk</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="CondensedBankofMarinBancorpParentOnlyFinancialStatements" roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatements">
        <link:definition>0000025 - Disclosure - Condensed Bank of Marin Bancorp Parent Only Financial Statements</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="Merger" roleURI="http://www.bankofmarin.com/role/Merger">
        <link:definition>0000026 - Disclosure - Merger</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="SummaryofSignificantAccountingPoliciesPolicies" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesPolicies">
        <link:definition>9954471 - Disclosure - Summary of Significant Accounting Policies (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="SummaryofSignificantAccountingPoliciesTables" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesTables">
        <link:definition>9954472 - Disclosure - Summary of Significant Accounting Policies (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>9954473 - 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>9954474 - 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="BankPremisesandEquipmentTables" roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipmentTables">
        <link:definition>9954475 - Disclosure - Bank Premises and Equipment (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="DepositsTables" roleURI="http://www.bankofmarin.com/role/DepositsTables">
        <link:definition>9954476 - Disclosure - Deposits (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>9954477 - 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="StockholdersEquityandStockPlansTables" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansTables">
        <link:definition>9954478 - Disclosure - Stockholders' Equity and Stock Plans (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>9954479 - 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="IncomeTaxesTables" roleURI="http://www.bankofmarin.com/role/IncomeTaxesTables">
        <link:definition>9954480 - Disclosure - Income Taxes (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="CommitmentsandContingenciesTables" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesTables">
        <link:definition>9954481 - Disclosure - Commitments and Contingencies (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>9954482 - 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="RegulatoryMattersTables" roleURI="http://www.bankofmarin.com/role/RegulatoryMattersTables">
        <link:definition>9954483 - Disclosure - Regulatory Matters (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="FinancialInstrumentswithOffBalanceSheetRiskTables" roleURI="http://www.bankofmarin.com/role/FinancialInstrumentswithOffBalanceSheetRiskTables">
        <link:definition>9954484 - Disclosure - Financial Instruments with Off-Balance Sheet Risk (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="CondensedBankofMarinBancorpParentOnlyFinancialStatementsTables" roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsTables">
        <link:definition>9954485 - Disclosure - Condensed Bank of Marin Bancorp Parent Only Financial Statements (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="MergerTables" roleURI="http://www.bankofmarin.com/role/MergerTables">
        <link:definition>9954486 - Disclosure - Merger (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="SummaryofSignificantAccountingPoliciesNatureofOperationsandBasisofPresentationDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesNatureofOperationsandBasisofPresentationDetails">
        <link:definition>9954487 - Disclosure - Summary of Significant Accounting Policies - Nature of Operations and Basis of Presentation (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="SummaryofSignificantAccountingPoliciesFinancingReceivableNarrativeDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesFinancingReceivableNarrativeDetails">
        <link:definition>9954488 - Disclosure - Summary of Significant Accounting Policies - Financing Receivable 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="SummaryofSignificantAccountingPoliciesTransferofFinancialAssetsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesTransferofFinancialAssetsDetails">
        <link:definition>9954489 - Disclosure - Summary of Significant Accounting Policies - Transfer of Financial Assets (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="SummaryofSignificantAccountingPoliciesPremisesandEquipmentDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesPremisesandEquipmentDetails">
        <link:definition>9954490 - Disclosure - Summary of Significant Accounting Policies - Premises and Equipment (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="SummaryofSignificantAccountingPoliciesGoodwillandOtherIntangibleAssetsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesGoodwillandOtherIntangibleAssetsDetails">
        <link:definition>9954491 - Disclosure - Summary of Significant Accounting Policies - Goodwill and Other Intangible Assets (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="SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails">
        <link:definition>9954492 - Disclosure - Summary of Significant Accounting Policies - Future Amortization Expense of Core Deposits (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="SummaryofSignificantAccountingPoliciesOtherRealEstateOwnedDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesOtherRealEstateOwnedDetails">
        <link:definition>9954493 - Disclosure - Summary of Significant Accounting Policies - Other Real Estate Owned (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="SummaryofSignificantAccountingPoliciesInvestmentsinLowIncomeHousingTaxCreditFundsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesInvestmentsinLowIncomeHousingTaxCreditFundsDetails">
        <link:definition>9954494 - Disclosure - Summary of Significant Accounting Policies - Investments in Low Income Housing Tax Credit Funds (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="SummaryofSignificantAccountingPoliciesEarningsPerShareDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesEarningsPerShareDetails">
        <link:definition>9954495 - Disclosure - Summary of Significant Accounting Policies - Earnings Per Share (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="SummaryofSignificantAccountingPoliciesAdvertisingCostsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesAdvertisingCostsDetails">
        <link:definition>9954496 - Disclosure - Summary of Significant Accounting Policies - Advertising Costs (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="SummaryofSignificantAccountingPoliciesOtherRecentlyAdoptedAccountingStandardsDetails" roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesOtherRecentlyAdoptedAccountingStandardsDetails">
        <link:definition>9954497 - Disclosure - Summary of Significant Accounting Policies - Other Recently Adopted Accounting Standards (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="InvestmentSecuritiesHeldtoMaturityAmortizedCostandFairValueDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesHeldtoMaturityAmortizedCostandFairValueDetails">
        <link:definition>9954498 - Disclosure - Investment Securities - Held-to-Maturity 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="InvestmentSecuritiesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails">
        <link:definition>9954499 - 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="InvestmentSecuritiesScheduleofBondRatingsForHeldtoMaturitySecuritiesDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofBondRatingsForHeldtoMaturitySecuritiesDetails">
        <link:definition>9954500 - Disclosure - Investment Securities - Schedule of Bond Ratings For Held-to-Maturity Securities (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>9954501 - 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="InvestmentSecuritiesScheduleofMaturitiesDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofMaturitiesDetails">
        <link:definition>9954502 - Disclosure - Investment Securities - Schedule of 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="InvestmentSecuritiesScheduleofSaleofInvestmentSecuritiesandGrossGainsandLossesDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofSaleofInvestmentSecuritiesandGrossGainsandLossesDetails">
        <link:definition>9954503 - 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="InvestmentSecuritiesScheduleofPledgedandTransferredSecuritiesDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofPledgedandTransferredSecuritiesDetails">
        <link:definition>9954504 - Disclosure - Investment Securities - Schedule of Pledged and Transferred Securities (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="InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails" roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails">
        <link:definition>9954505 - Disclosure - Investment Securities - Schedule of Unrealized Loss Positions (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>9954506 - 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>9954507 - 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="LoansandAllowanceforCreditLossesonLoansConcentrationsofCreditNarrativeDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansConcentrationsofCreditNarrativeDetails">
        <link:definition>9954508 - Disclosure - Loans and Allowance for Credit Losses on Loans - Concentrations of Credit 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="LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails">
        <link:definition>9954509 - 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="LoansandAllowanceforCreditLossesonLoansLoansOutstandingandAgingAnalysisDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansLoansOutstandingandAgingAnalysisDetails">
        <link:definition>9954510 - Disclosure - Loans and Allowance for Credit Losses on Loans - 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>9954511 - 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="LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostofLoanDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofAmortizedCostofLoanDetails">
        <link:definition>9954512 - Disclosure - Loans and Allowance for Credit Losses on Loans - Schedule of Amortized Cost of Loan (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>9954513 - 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>9954514 - 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>9954515 - 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>9954516 - 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="LoansandAllowanceforCreditLossesonLoansPledgedLoansNarrativeDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansPledgedLoansNarrativeDetails">
        <link:definition>9954517 - Disclosure - Loans and Allowance for Credit Losses on Loans - Pledged Loans 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="LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansDetails">
        <link:definition>9954518 - 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="LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansNarrativeDetails" roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansRelatedPartyLoansNarrativeDetails">
        <link:definition>9954519 - Disclosure - Loans and Allowance for Credit Losses on Loans - Related Party Loans 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="BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails" roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails">
        <link:definition>9954520 - Disclosure - Bank Premises and Equipment - Schedule of Bank Premises and Equipment (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="BankPremisesandEquipmentNarrativeDetails" roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipmentNarrativeDetails">
        <link:definition>9954521 - Disclosure - Bank Premises and Equipment - 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="BankOwnedLifeInsuranceDetails" roleURI="http://www.bankofmarin.com/role/BankOwnedLifeInsuranceDetails">
        <link:definition>9954522 - Disclosure - Bank Owned Life Insurance (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="DepositsScheduleofStratificationofTimeDepositsDetails" roleURI="http://www.bankofmarin.com/role/DepositsScheduleofStratificationofTimeDepositsDetails">
        <link:definition>9954523 - Disclosure - Deposits - Schedule of Stratification of Time Deposits (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="DepositsNarrativeDetails" roleURI="http://www.bankofmarin.com/role/DepositsNarrativeDetails">
        <link:definition>9954524 - Disclosure - Deposits - 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="DepositsScheduleofTimeDepositMaturitiesDetails" roleURI="http://www.bankofmarin.com/role/DepositsScheduleofTimeDepositMaturitiesDetails">
        <link:definition>9954525 - Disclosure - Deposits - Schedule of Time Deposit 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="DepositsScheduleofCompositionofNetworkDepositsDetails" roleURI="http://www.bankofmarin.com/role/DepositsScheduleofCompositionofNetworkDepositsDetails">
        <link:definition>9954526 - Disclosure - Deposits - Schedule of Composition of Network Deposits (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="BorrowingsandOtherObligationsLinesofCreditandBorrowingAgreementsDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsLinesofCreditandBorrowingAgreementsDetails">
        <link:definition>9954527 - Disclosure - Borrowings and Other Obligations - Lines of Credit and Borrowing Agreements (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="BorrowingsandOtherObligationsSubordinatedDebentureandOtherObligationsDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsSubordinatedDebentureandOtherObligationsDetails">
        <link:definition>9954528 - Disclosure - Borrowings and Other Obligations - Subordinated Debenture and Other Obligations (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="BorrowingsandOtherObligationsScheduleofBorrowingsDetails" roleURI="http://www.bankofmarin.com/role/BorrowingsandOtherObligationsScheduleofBorrowingsDetails">
        <link:definition>9954529 - Disclosure - Borrowings and Other Obligations - Schedule of Borrowings (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="StockholdersEquityandStockPlansNarrativeDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansNarrativeDetails">
        <link:definition>9954530 - Disclosure - Stockholders' Equity and Stock Plans - 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="StockholdersEquityandStockPlansScheduleofCashlessExerciseInformationDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofCashlessExerciseInformationDetails">
        <link:definition>9954531 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Cashless Exercise Information (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="StockholdersEquityandStockPlansScheduleofOptionsOutstandingRollforwardDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofOptionsOutstandingRollforwardDetails">
        <link:definition>9954532 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Options Outstanding Rollforward (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="StockholdersEquityandStockPlansScheduleofOptionsOutstandingbyPriceRangeDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofOptionsOutstandingbyPriceRangeDetails">
        <link:definition>9954533 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Options Outstanding by Price Range (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="StockholdersEquityandStockPlansScheduleofNonvestedAwardsActivityDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofNonvestedAwardsActivityDetails">
        <link:definition>9954534 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Non-vested Awards Activity (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="StockholdersEquityandStockPlansScheduleofValuationAssumptionsDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofValuationAssumptionsDetails">
        <link:definition>9954535 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Valuation Assumptions (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="StockholdersEquityandStockPlansScheduleofDividendsDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofDividendsDetails">
        <link:definition>9954536 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Dividends (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="StockholdersEquityandStockPlansScheduleofShareRepurchasesDetails" roleURI="http://www.bankofmarin.com/role/StockholdersEquityandStockPlansScheduleofShareRepurchasesDetails">
        <link:definition>9954537 - Disclosure - Stockholders' Equity and Stock Plans - Schedule of Share Repurchases (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="FairValueofAssetsandLiabilitiesScheduleofRecordedonaRecurringBasisDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesScheduleofRecordedonaRecurringBasisDetails">
        <link:definition>9954538 - Disclosure - Fair Value of Assets and Liabilities - Schedule of Recorded on a 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>9954539 - 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="FairValueofAssetsandLiabilitiesScheduleofFairValueAssetsMeasuredonNonrecurringBasisDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesScheduleofFairValueAssetsMeasuredonNonrecurringBasisDetails">
        <link:definition>9954540 - Disclosure - Fair Value of Assets and Liabilities - Schedule of Fair Value Assets Measured on Non-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="FairValueofAssetsandLiabilitiesScheduleofFairValueofFinancialInstrumentsDetails" roleURI="http://www.bankofmarin.com/role/FairValueofAssetsandLiabilitiesScheduleofFairValueofFinancialInstrumentsDetails">
        <link:definition>9954541 - 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="BenefitPlansDeferredCompensationPlanDetails" roleURI="http://www.bankofmarin.com/role/BenefitPlansDeferredCompensationPlanDetails">
        <link:definition>9954542 - Disclosure - Benefit Plans - Deferred Compensation Plan (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="BenefitPlansDefinedContributionPlanandEmployeeStockOwnershipPlanDetails" roleURI="http://www.bankofmarin.com/role/BenefitPlansDefinedContributionPlanandEmployeeStockOwnershipPlanDetails">
        <link:definition>9954543 - Disclosure - Benefit Plans - Defined Contribution Plan and Employee Stock Ownership Plan (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="BenefitPlansSupplementalExecutiveRetirementPlanDetails" roleURI="http://www.bankofmarin.com/role/BenefitPlansSupplementalExecutiveRetirementPlanDetails">
        <link:definition>9954544 - Disclosure - Benefit Plans - Supplemental Executive Retirement Plan (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="IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails" roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails">
        <link:definition>9954545 - Disclosure - Income Taxes - Schedule of Components of Income Tax Provision (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="IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails" roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails">
        <link:definition>9954546 - Disclosure - Income Taxes - Schedule of Deferred Tax Asset and Liability (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="IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails" roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails">
        <link:definition>9954547 - Disclosure - Income Taxes - Schedule of Effective Income Tax 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="CommitmentsandContingenciesNarrativeDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesNarrativeDetails">
        <link:definition>9954548 - Disclosure - Commitments and Contingencies - 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="CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails">
        <link:definition>9954549 - Disclosure - Commitments and Contingencies - 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="CommitmentsandContingenciesScheduleofNoncashInvestingandFinancingActivitiesDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofNoncashInvestingandFinancingActivitiesDetails">
        <link:definition>9954550 - Disclosure - Commitments and Contingencies - 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="CommitmentsandContingenciesScheduleofLeaseCostDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseCostDetails">
        <link:definition>9954551 - Disclosure - Commitments and Contingencies - 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="CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails">
        <link:definition>9954552 - Disclosure - Commitments and Contingencies - Schedule of Lease Liability Maturity Schedule (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="CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1" roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1">
        <link:definition>9954552 - Disclosure - Commitments and Contingencies - Schedule of Lease Liability Maturity Schedule (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="ConcentrationsofCreditRiskDetails" roleURI="http://www.bankofmarin.com/role/ConcentrationsofCreditRiskDetails">
        <link:definition>9954553 - Disclosure - Concentrations of Credit Risk (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>9954554 - 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>9954555 - 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>9954556 - 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="DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails">
        <link:definition>9954557 - Disclosure - Derivative Financial Instruments and Hedging Activities - Schedule of Offsetting of Assets (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="DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails" roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails">
        <link:definition>9954558 - Disclosure - Derivative Financial Instruments and Hedging Activities - Schedule of Offsetting of 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="RegulatoryMattersScheduleofCapitalAdequacyRatiosDetails" roleURI="http://www.bankofmarin.com/role/RegulatoryMattersScheduleofCapitalAdequacyRatiosDetails">
        <link:definition>9954559 - Disclosure - Regulatory Matters - Schedule of Capital Adequacy Ratios (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="FinancialInstrumentswithOffBalanceSheetRiskDetails" roleURI="http://www.bankofmarin.com/role/FinancialInstrumentswithOffBalanceSheetRiskDetails">
        <link:definition>9954560 - Disclosure - Financial Instruments with Off-Balance Sheet Risk (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="CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidatedStatementsofConditionDetails" roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidatedStatementsofConditionDetails">
        <link:definition>9954561 - Disclosure - Condensed Bank of Marin Bancorp Parent Only Financial Statements - Condensed Uncosolidated Statements of Condition (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="CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofIncomeDetails" roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofIncomeDetails">
        <link:definition>9954562 - Disclosure - Condensed Bank of Marin Bancorp Parent Only Financial Statements - Condensed Unconsolidated Statements of 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="CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails" roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails">
        <link:definition>9954563 - Disclosure - Condensed Bank of Marin Bancorp Parent Only Financial Statements - Condensed Unconsolidated Statements of Cash Flows (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="MergerNarrativeDetails" roleURI="http://www.bankofmarin.com/role/MergerNarrativeDetails">
        <link:definition>9954564 - Disclosure - Merger - 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="MergerScheduleofConsiderationPaidforAMRBDetails" roleURI="http://www.bankofmarin.com/role/MergerScheduleofConsiderationPaidforAMRBDetails">
        <link:definition>9954565 - Disclosure - Merger - Schedule of Consideration Paid for AMRB (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="MergerScheduleofMergerRelatedOneTimeandConversionCostsDetails" roleURI="http://www.bankofmarin.com/role/MergerScheduleofMergerRelatedOneTimeandConversionCostsDetails">
        <link:definition>9954566 - Disclosure - Merger - Schedule of Merger-Related One-Time and Conversion Costs (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_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" abstract="false" name="MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <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_CollateralDependentLoansPolicyTextBlock" abstract="false" name="CollateralDependentLoansPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARSOneWay" abstract="false" name="TimeDepositsCertificateOfDepositAccountRegistryServiceCDARSOneWay" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_TierOneCommonEquityRequiredforCapitalAdequacy" abstract="false" name="TierOneCommonEquityRequiredforCapitalAdequacy" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_PublicDepositsMember" abstract="true" name="PublicDepositsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_OneWayAbstract" abstract="true" name="OneWayAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember" abstract="true" name="SmallBusinessAdministrationSBABackedSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_InstallmentAndOtherConsumerMember" abstract="true" name="InstallmentAndOtherConsumerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_LoansandLeasesReceivableNonperformingNumberOfConsecutivePaymentsConsideredSustainedRepaymentPerformance" abstract="false" name="LoansandLeasesReceivableNonperformingNumberOfConsecutivePaymentsConsideredSustainedRepaymentPerformance" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <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_DepositNetworkFees" abstract="false" name="DepositNetworkFees" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DeferredCompensationArrangementwithIndividualDeferredInterestEarnedPercent" abstract="false" name="DeferredCompensationArrangementwithIndividualDeferredInterestEarnedPercent" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleAcquisitionRelatedExpenses" abstract="false" name="EffectiveIncomeTaxRateReconciliationNonDeductibleAcquisitionRelatedExpenses" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <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_TimeDeposits250000OrMore" abstract="false" name="TimeDeposits250000OrMore" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_CertainLoansAcquiredInTransferWithoutEvidenceOfDeterioratedCreditUnrecognizedPurchaseDiscounts" abstract="false" name="CertainLoansAcquiredInTransferWithoutEvidenceOfDeterioratedCreditUnrecognizedPurchaseDiscounts" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ReciprocalAbstract" abstract="true" name="ReciprocalAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge" abstract="false" name="OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OfficersAndEmployeesMember" abstract="true" name="OfficersAndEmployeesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_EmployeeStockPurchasePlan2007Member" abstract="true" name="EmployeeStockPurchasePlan2007Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBufferToRiskWeightedAssets" abstract="false" name="TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBufferToRiskWeightedAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="bmrc_BusinessCombinationConsiderationTransferredAdditionalEquityInterestsIssuedAndIssuable" abstract="false" name="BusinessCombinationConsiderationTransferredAdditionalEquityInterestsIssuedAndIssuable" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" abstract="true" name="ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" abstract="false" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" nillable="true" xbrli:periodType="instant" 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-types1:textBlockItemType"/>
  <xs:element id="bmrc_ThePlan2020Member" abstract="true" name="ThePlan2020Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_FederalReserveBankMember" abstract="true" name="FederalReserveBankMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ProceedsInExcessOfCashSurrenderValuesOnBankOwnedLifeInsurance" abstract="false" name="ProceedsInExcessOfCashSurrenderValuesOnBankOwnedLifeInsurance" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ProfessionalServicesMember" abstract="true" name="ProfessionalServicesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1: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_OffBalanceSheetArrangementsLiabilitiesCurrentExposure" abstract="false" name="OffBalanceSheetArrangementsLiabilitiesCurrentExposure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanMinimumEmploymentPeriodToQualifyForPlan" abstract="false" name="DefinedContributionPlanMinimumEmploymentPeriodToQualifyForPlan" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_OtherResidentialLoanMember" abstract="true" name="OtherResidentialLoanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplace" abstract="false" name="DepositsMoneyMarketDepositsDemandDepositMarketplace" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract" abstract="true" name="SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_SecuritiesOfUSGovernmentSponsoredEnterprisesAbstract" abstract="true" name="SecuritiesOfUSGovernmentSponsoredEnterprisesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringInYearTwoThroughSeven" abstract="false" name="LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringInYearTwoThroughSeven" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_MoodysAndOrStandardPoorsAARatingMember" abstract="true" name="MoodysAndOrStandardPoorsAARatingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1: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_DividendIncomeFromSubsidiariesOperating" abstract="false" name="DividendIncomeFromSubsidiariesOperating" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARS" abstract="false" name="TimeDepositsCertificateOfDepositAccountRegistryServiceCDARS" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" 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_FederalFundsLinesOfCreditMember" abstract="true" name="FederalFundsLinesOfCreditMember" 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-types1:perShareItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" abstract="true" name="MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <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_BankOfMarinMember" abstract="true" name="BankOfMarinMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_CreditRatingMoodysAndOrStandardPoorsDomain" abstract="true" name="CreditRatingMoodysAndOrStandardPoorsDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_DividendsCashDividendPeriodRestrictedPaymentAmountIsDetermined" abstract="false" name="DividendsCashDividendPeriodRestrictedPaymentAmountIsDetermined" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_DefinedBenefitPlanPaymentPeriodDeterminedByServicePeriod" abstract="false" name="DefinedBenefitPlanPaymentPeriodDeterminedByServicePeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanEmployerMatchingContributionMaximumAmount" abstract="false" name="DefinedContributionPlanEmployerMatchingContributionMaximumAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" 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_OperatingLeaseAndFinanceLeaseLiability" abstract="false" name="OperatingLeaseAndFinanceLeaseLiability" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" 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-types1:domainItemType"/>
  <xs:element id="bmrc_BorrowingsAndOtherObligationsAverageBalance" abstract="false" name="BorrowingsAndOtherObligationsAverageBalance" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinancingReceivableChargeOffsPolicyPolicyTextBlock" abstract="false" name="FinancingReceivableChargeOffsPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <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_TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBuffer" abstract="false" name="TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBuffer" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DataProcessingMember" abstract="true" name="DataProcessingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice" abstract="false" name="SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="bmrc_CapitalContributionToSubsidiaryBank" abstract="false" name="CapitalContributionToSubsidiaryBank" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_AccretionOfDiscountOnAcquiredLoans" abstract="false" name="AccretionOfDiscountOnAcquiredLoans" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinancialInstrumentsWithOffBalanceSheetRiskTextBlock" abstract="false" name="FinancialInstrumentsWithOffBalanceSheetRiskTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_RepurchaseOfStockNotYetSettled" abstract="false" name="RepurchaseOfStockNotYetSettled" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation" abstract="false" name="FinanceLeaseRightOfUseAssetAccumulatedDepreciation" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherRealEstateOwnedExpense" abstract="false" name="OtherRealEstateOwnedExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FederalHomeLoanBankDividendRatePercentage" abstract="false" name="FederalHomeLoanBankDividendRatePercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_PotentiallyDilutiveCommonSharesRelatedToAbstract" abstract="true" name="PotentiallyDilutiveCommonSharesRelatedToAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_FederalReserveBankTermFundingProgramMember" abstract="true" name="FederalReserveBankTermFundingProgramMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_LoansAndLeasesReceivableRelatedPartiesAcquisition" abstract="false" name="LoansAndLeasesReceivableRelatedPartiesAcquisition" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DefinedBenefitsPlanAgeRatableVestingEnds" abstract="false" name="DefinedBenefitsPlanAgeRatableVestingEnds" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_AffordableHousingProgramPolicyPolicyTextBlock" abstract="false" name="AffordableHousingProgramPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_AuditorInformationAbstract" abstract="true" name="AuditorInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" 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_MoodysAndOrStandardPoorsARatingMember" abstract="true" name="MoodysAndOrStandardPoorsARatingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_TierOneCommonEquityRequiredtobeWellCapitalized" abstract="false" name="TierOneCommonEquityRequiredtobeWellCapitalized" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionFairValueAbstract" abstract="true" name="DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionFairValueAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_DefinedBenefitsPlanPeriodBeforeRatableVestingBegins" abstract="false" name="DefinedBenefitsPlanPeriodBeforeRatableVestingBegins" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="bmrc_NorCalCommunityBancorpTrustIIMember" abstract="true" name="NorCalCommunityBancorpTrustIIMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_AffordableHousingTaxCreditsInvestmentOwnershipPercentage" abstract="false" name="AffordableHousingTaxCreditsInvestmentOwnershipPercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_WeightedAverageRatioOfLoansValueToCollateralDependentLoansValue" abstract="false" name="WeightedAverageRatioOfLoansValueToCollateralDependentLoansValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_CheckingAccountWealthManagementAndTrustServicesMember" abstract="true" name="CheckingAccountWealthManagementAndTrustServicesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_The2017EquityPlanMember" abstract="true" name="The2017EquityPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ConcentrationRiskPercentageThresholdForMajorBorrower" abstract="false" name="ConcentrationRiskPercentageThresholdForMajorBorrower" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" abstract="false" name="DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LoansAndLeasesReceivableRatioOfClassToAllLoans" abstract="false" name="LoansAndLeasesReceivableRatioOfClassToAllLoans" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_OtherCollateralHeldMember" abstract="true" name="OtherCollateralHeldMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_LifeInsuranceCorporateOrBankOwnedDeathBenefits" abstract="false" name="LifeInsuranceCorporateOrBankOwnedDeathBenefits" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_DeferredTaxLiabilitiesDeferredLoanOriginationCosts" abstract="false" name="DeferredTaxLiabilitiesDeferredLoanOriginationCosts" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_PriceRangeThreeMember" abstract="true" name="PriceRangeThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <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_FinanceLeaseCost" abstract="false" name="FinanceLeaseCost" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationDeductionShareBasedCompensationAndExcessTaxBenefits" abstract="false" name="EffectiveIncomeTaxRateReconciliationDeductionShareBasedCompensationAndExcessTaxBenefits" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DirectorsOfficersPrincipalShareholdersAndAssociatesMember" abstract="true" name="DirectorsOfficersPrincipalShareholdersAndAssociatesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_TrustDepositsMember" abstract="true" name="TrustDepositsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_UndisbursedConstructionLoansMember" abstract="true" name="UndisbursedConstructionLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ScheduleOfDefinedContributionPlansDisclosuresLineItems" abstract="true" name="ScheduleOfDefinedContributionPlansDisclosuresLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_DeferredCompensationArrangementWithIndividualMaximumElectedDeferralByEmployeePercent" abstract="false" name="DeferredCompensationArrangementWithIndividualMaximumElectedDeferralByEmployeePercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeEarningsOnBankOwnedLifeInsurance" abstract="false" name="EffectiveIncomeTaxRateReconciliationTaxExemptIncomeEarningsOnBankOwnedLifeInsurance" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_TotalExpense" abstract="false" name="TotalExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinanceLeaseCost1Abstract" abstract="true" name="FinanceLeaseCost1Abstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_ScheduleOfMaturitiesForTimeDepositsTableTextBlock" abstract="false" name="ScheduleOfMaturitiesForTimeDepositsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_InterestDueFromBanksAndOther" abstract="false" name="InterestDueFromBanksAndOther" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FHLBSecuritiesBackedCreditProgramMember" abstract="true" name="FHLBSecuritiesBackedCreditProgramMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ScheduleOfContractualAmountOffBalanceSheetRisksTableTextBlock" abstract="false" name="ScheduleOfContractualAmountOffBalanceSheetRisksTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansAtAmortizedCost" abstract="false" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansAtAmortizedCost" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ShareBasedCompensationArrangementByShareBasedPaymentAwardApprovedPayrollDeductionToPurchaseSharesPercentage" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardApprovedPayrollDeductionToPurchaseSharesPercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss" abstract="false" name="AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleExecutiveCompensation" abstract="false" name="EffectiveIncomeTaxRateReconciliationNonDeductibleExecutiveCompensation" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_CommercialLinesOfCreditMember" abstract="true" name="CommercialLinesOfCreditMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_LifeInsuranceCorporateorBankOwnedPolicyPolicyTextBlock" abstract="false" name="LifeInsuranceCorporateorBankOwnedPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_PledgedToStateOfCaliforniaMember" abstract="true" name="PledgedToStateOfCaliforniaMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_CommercialRealEstateLoanOwnerOccupiedMember" abstract="true" name="CommercialRealEstateLoanOwnerOccupiedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments" abstract="false" name="ProvisionForReversalOfLossesOnUnfundedLoanCommitments" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_InterestOnInvestmentSecuritiesMember" abstract="true" name="InterestOnInvestmentSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_NumberOfDerivativeInstrumentsTerminated" abstract="false" name="NumberOfDerivativeInstrumentsTerminated" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_AffordableHousingCreditsInvestmentImpairmentLoss" abstract="false" name="AffordableHousingCreditsInvestmentImpairmentLoss" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_InterestAndFeesOnLoansMember" abstract="true" name="InterestAndFeesOnLoansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <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_TierOneCommonEquityRequiredtobeWellCapitalizedtoAverageAssets" abstract="false" name="TierOneCommonEquityRequiredtobeWellCapitalizedtoAverageAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICS" abstract="false" name="DepositsMoneyMarketDepositsInsuredCashSweepICS" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived" abstract="false" name="EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_FinanceLeasesAbstract" abstract="true" name="FinanceLeasesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_TermExtensionMember" abstract="true" name="TermExtensionMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationTaxCreditAffordableHousing" abstract="false" name="EffectiveIncomeTaxRateReconciliationTaxCreditAffordableHousing" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplaceOneWay" abstract="false" name="DepositsMoneyMarketDepositsDemandDepositMarketplaceOneWay" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" 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_OtherRealEstateOwned" abstract="false" name="OtherRealEstateOwned" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesNumberOfSecurities" abstract="false" name="MarketableSecuritiesNumberOfSecurities" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeInterestOnMunicipalSecuritiesAndLoans" abstract="false" name="EffectiveIncomeTaxRateReconciliationTaxExemptIncomeInterestOnMunicipalSecuritiesAndLoans" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DebtSecuritiesAvailableForSaleMember" abstract="true" name="DebtSecuritiesAvailableForSaleMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_ShareBasedPaymentArrangementShareInformationAboutCashlessExercisesTableTextBlock" abstract="false" name="ShareBasedPaymentArrangementShareInformationAboutCashlessExercisesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember" abstract="true" name="LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary" abstract="false" name="IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AffordableHousingProgramUnfundedCommitments" abstract="false" name="AffordableHousingProgramUnfundedCommitments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_TotalNetworkDepositsOneWay" abstract="false" name="TotalNetworkDepositsOneWay" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" 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_LesseeOperatingLeaseLeaseNotYetCommencedLiability" abstract="false" name="LesseeOperatingLeaseLeaseNotYetCommencedLiability" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_InvestmentInSubsidiary" abstract="false" name="InvestmentInSubsidiary" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AmericanRiverBankARBMergerMember" abstract="true" name="AmericanRiverBankARBMergerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_PriceRangeFourMember" abstract="true" name="PriceRangeFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_NumberOfCounties" abstract="false" name="NumberOfCounties" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanthe401kPlanMember" abstract="true" name="DefinedContributionPlanthe401kPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_StockIssuedInPaymentOfDirectorFeesAndToESOP" abstract="false" name="StockIssuedInPaymentOfDirectorFeesAndToESOP" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanNumberOfYearsToBeFullyVested" abstract="false" name="DefinedContributionPlanNumberOfYearsToBeFullyVested" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" abstract="false" name="AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" 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_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries" abstract="false" name="IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_MiscellaneousIncome" abstract="false" name="MiscellaneousIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_NumberOfCommercialBankingOffices" abstract="false" name="NumberOfCommercialBankingOffices" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_CashAndDueFromSubsidiary" abstract="false" name="CashAndDueFromSubsidiary" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_BankruptcyTrusteeDepositsPledgedWithFederalReserveBankMember" abstract="true" name="BankruptcyTrusteeDepositsPledgedWithFederalReserveBankMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_InterestRateContractsMember" abstract="true" name="InterestRateContractsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_AllowanceForOffBalanceSheetCommitments" abstract="false" name="AllowanceForOffBalanceSheetCommitments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_SanFranciscoMember" abstract="true" name="SanFranciscoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <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_AssetsAndLiabilitiesLesseeTableTextBlock" abstract="false" name="AssetsAndLiabilitiesLesseeTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss" abstract="false" name="AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_BorrowingsAndOtherObligationsAverageRate" abstract="false" name="BorrowingsAndOtherObligationsAverageRate" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="bmrc_ThresholdPeriodPastDueForWriteOffOfDepositLiabilitiesReclassifiedAsLoansReceivable" abstract="false" name="ThresholdPeriodPastDueForWriteOffOfDepositLiabilitiesReclassifiedAsLoansReceivable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_ScheduleOfDefinedContributionPlansDisclosuresTable" abstract="true" name="ScheduleOfDefinedContributionPlansDisclosuresTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <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_DefinedBenefitPlanPercentageOfSalaryPaidUponRetirement" abstract="false" name="DefinedBenefitPlanPercentageOfSalaryPaidUponRetirement" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet" abstract="false" name="DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_AnnualSalaryMember" abstract="true" name="AnnualSalaryMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_StockIssuedDuringPeriodSharesNonemployeeDirectorStockPurchasePlans" abstract="false" name="StockIssuedDuringPeriodSharesNonemployeeDirectorStockPurchasePlans" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="bmrc_TransferOfLoanToLoansHeldForSaleAtFairValue" abstract="false" name="TransferOfLoanToLoansHeldForSaleAtFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanMinimumAnnualContributionPerEmployeePercent" abstract="false" name="DefinedContributionPlanMinimumAnnualContributionPerEmployeePercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" abstract="true" name="MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_AvailableForSaleSecuritiesTransferredToHeldToMaturitySecurities" abstract="false" name="AvailableForSaleSecuritiesTransferredToHeldToMaturitySecurities" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OperatingLeaseCostNet" abstract="false" name="OperatingLeaseCostNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases" abstract="false" name="ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinanceLeaseRightOfUseAssetsMember" abstract="true" name="FinanceLeaseRightOfUseAssetsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal" abstract="false" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" abstract="false" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DividendsCashDividendAmountRetainedEarningsAvailableForDividendPaymentsUnderRestriction" abstract="false" name="DividendsCashDividendAmountRetainedEarningsAvailableForDividendPaymentsUnderRestriction" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringAfterYearSeven" abstract="false" name="LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringAfterYearSeven" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_NumberOfRetailBranches" abstract="false" name="NumberOfRetailBranches" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_MoodysAndOrStandardPoorsAAARatingMember" abstract="true" name="MoodysAndOrStandardPoorsAAARatingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_ScheduleOfCollateralDependentLoansTableTextBlock" abstract="false" name="ScheduleOfCollateralDependentLoansTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <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_IncreaseDecreaseInLoansReceivableNet" abstract="false" name="IncreaseDecreaseInLoansReceivableNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_TierOneCommonEquity" abstract="false" name="TierOneCommonEquity" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_FinancingReceivable90DaysOrMorePastDueStillAccruingNumberOfLoans" abstract="false" name="FinancingReceivable90DaysOrMorePastDueStillAccruingNumberOfLoans" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="bmrc_BusinessCombinationFixedExchangeRatio" abstract="false" name="BusinessCombinationFixedExchangeRatio" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="bmrc_VisaInc.ClassBCommonStockMember" abstract="true" name="VisaInc.ClassBCommonStockMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsTaxCredits" abstract="false" name="AmortizationMethodQualifiedAffordableHousingProjectInvestmentsTaxCredits" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" 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_StockIssuedDuringPeriodValueNonemployeeDirectorStockPurchasePlans" abstract="false" name="StockIssuedDuringPeriodValueNonemployeeDirectorStockPurchasePlans" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_BorrowingsAndOtherObligations" abstract="false" name="BorrowingsAndOtherObligations" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_TierOneCommonEquityToAverageAssets" abstract="false" name="TierOneCommonEquityToAverageAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_CommercialAndIndustrialMember" abstract="true" name="CommercialAndIndustrialMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeposits" abstract="false" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeposits" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LoansAndLeasesReceivableReclassifiedDueToChangeInBorrowerStatus" abstract="false" name="LoansAndLeasesReceivableReclassifiedDueToChangeInBorrowerStatus" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset" abstract="false" name="OperatingLeaseAndFinanceLeaseRightOfUseAsset" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <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_OtherObligationsCarryingValue" abstract="false" name="OtherObligationsCarryingValue" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherObligationsAverageBalance" abstract="false" name="OtherObligationsAverageBalance" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringInNextTwelveMonths" abstract="false" name="LoanCommitmentsAndStandbyLettersOfCreditPercentageExpiringInNextTwelveMonths" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_ScheduleofTimeDepositsTableTextBlock" abstract="false" name="ScheduleofTimeDepositsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_DefinedContributionPlanMinimumAgeofEligibleEmployee" abstract="false" name="DefinedContributionPlanMinimumAgeofEligibleEmployee" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="bmrc_CounterpartyMember" abstract="true" name="CounterpartyMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <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_USGovernmentAndGovernmentSponsoredEnterprisesMember" abstract="true" name="USGovernmentAndGovernmentSponsoredEnterprisesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICSOneWay" abstract="false" name="DepositsMoneyMarketDepositsInsuredCashSweepICSOneWay" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_CreditRatingMoodysAndOrStandardPoorsAxis" abstract="true" name="CreditRatingMoodysAndOrStandardPoorsAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="bmrc_ConsumerAndOtherLinesOfCreditMember" abstract="true" name="ConsumerAndOtherLinesOfCreditMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <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_PriceRangeOneMember" abstract="true" name="PriceRangeOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsOutstandingWeightedAverageGrantDateFairValueRollForward" abstract="true" name="SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsOutstandingWeightedAverageGrantDateFairValueRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <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_NonEmployeeDirectorsMember" abstract="true" name="NonEmployeeDirectorsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="bmrc_EquityInUndistributedNetIncomeOfSubsidiary" abstract="false" name="EquityInUndistributedNetIncomeOfSubsidiary" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_TotalNetworkDepositsReciprocal" abstract="false" name="TotalNetworkDepositsReciprocal" 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_ScheduleofNetworkDepositsTableTextBlock" abstract="false" name="ScheduleofNetworkDepositsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="bmrc_BankOfMarinEmployeeStockOwnershipAndSavingsPlanMember" abstract="true" name="BankOfMarinEmployeeStockOwnershipAndSavingsPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_AccumulatedOtherComprehensiveIncomeLossNetOfTaxMember" abstract="true" name="AccumulatedOtherComprehensiveIncomeLossNetOfTaxMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssets" abstract="false" name="TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="bmrc_TimeDepositsLessThanOrEqualTo250000" abstract="false" name="TimeDepositsLessThanOrEqualTo250000" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_PriceRangeTwoMember" abstract="true" name="PriceRangeTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="bmrc_FinancingReceivableNetDeferredLoanOriginationCostsFees" abstract="false" name="FinancingReceivableNetDeferredLoanOriginationCostsFees" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax" abstract="false" name="OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable" abstract="false" name="DeferredTaxAssetFairValueAdjustmentLoansReceivable" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
</xs:schema>
