<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.bankofmarin.com/role/Acquisition" xlink:href="bmrc-20180930.xsd#Acquisition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionNarrativeDetails" xlink:href="bmrc-20180930.xsd#AcquisitionNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:href="bmrc-20180930.xsd#AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionTables" xlink:href="bmrc-20180930.xsd#AcquisitionTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentation" xlink:href="bmrc-20180930.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationPolicies" xlink:href="bmrc-20180930.xsd#BasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:href="bmrc-20180930.xsd#BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationSummaryOfProformaEpsDetails" xlink:href="bmrc-20180930.xsd#BasisOfPresentationSummaryOfProformaEpsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:href="bmrc-20180930.xsd#BasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/Borrowings" xlink:href="bmrc-20180930.xsd#Borrowings" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsLinesOfCreditDetails" xlink:href="bmrc-20180930.xsd#BorrowingsLinesOfCreditDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsSubordinatedDebtDetails" xlink:href="bmrc-20180930.xsd#BorrowingsSubordinatedDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsTables" xlink:href="bmrc-20180930.xsd#BorrowingsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingencies" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesDetails" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesTables" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCondition" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfCondition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfConditionParenthetical" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfConditionParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivities" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DocumentAndEntityInformation" xlink:href="bmrc-20180930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilities" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesTables" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecurities" xlink:href="bmrc-20180930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesMaturitiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesTables" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLosses" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTables" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandards" xlink:href="bmrc-20180930.xsd#RecentlyAdoptedAndIssuedAccountingStandards" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandardsDetails" xlink:href="bmrc-20180930.xsd#RecentlyAdoptedAndIssuedAccountingStandardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquity" xlink:href="bmrc-20180930.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquityDetails" xlink:href="bmrc-20180930.xsd#StockholdersEquityDetails" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/Acquisition" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/AcquisitionNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_188DF4287733E48AB78FE01C490D1380" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_188DF4287733E48AB78FE01C490D1380" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EFE4129DA1BF7233C6E6E01C490E8E1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_188DF4287733E48AB78FE01C490D1380" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EFE4129DA1BF7233C6E6E01C490E8E1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50474A7CAE42557D1669E01C490E42D9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EFE4129DA1BF7233C6E6E01C490E8E1A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50474A7CAE42557D1669E01C490E42D9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50474A7CAE42557D1669E01C490E42D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_EFE4129DA1BF7233C6E6E01C490E8E1A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50474A7CAE42557D1669E01C490E42D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CoreDepositsMember" xlink:label="loc_us-gaap_CoreDepositsMember_73D96AA3FCF558A4D049E01C490F61CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50474A7CAE42557D1669E01C490E42D9" xlink:to="loc_us-gaap_CoreDepositsMember_73D96AA3FCF558A4D049E01C490F61CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_622F27D8516D70DF56C3E01C490F1E03" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_188DF4287733E48AB78FE01C490D1380" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_622F27D8516D70DF56C3E01C490F1E03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5626B7D56B9FAFD4DBC2E01C490F9361_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_622F27D8516D70DF56C3E01C490F1E03" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5626B7D56B9FAFD4DBC2E01C490F9361_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5626B7D56B9FAFD4DBC2E01C490F9361" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_622F27D8516D70DF56C3E01C490F1E03" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5626B7D56B9FAFD4DBC2E01C490F9361" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_BankofNapaN.A.NapaMember" xlink:label="loc_bmrc_BankofNapaN.A.NapaMember_E00F1E9B1BD598C858BBE01C490F5F0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5626B7D56B9FAFD4DBC2E01C490F9361" xlink:to="loc_bmrc_BankofNapaN.A.NapaMember_E00F1E9B1BD598C858BBE01C490F5F0C" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_NumberofOperatingLocations" xlink:label="loc_bmrc_NumberofOperatingLocations_E830648521F3955919A2E01C49108CF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_bmrc_NumberofOperatingLocations_E830648521F3955919A2E01C49108CF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_14C11D4DC675AB4FAAC1E01C49101C78" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_14C11D4DC675AB4FAAC1E01C49101C78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialLiabilities_AFAB942C829DB9A497D7E01C49102E54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialLiabilities_AFAB942C829DB9A497D7E01C49102E54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities_E69FF22AB08DC29C8353E01C4910E08F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities_E69FF22AB08DC29C8353E01C4910E08F" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_BusinessCombinationConsiderationTransferredEquityInterestsIssuedandIssuableEntitySharesIssuedPerAcquireeShareRatio" xlink:label="loc_bmrc_BusinessCombinationConsiderationTransferredEquityInterestsIssuedandIssuableEntitySharesIssuedPerAcquireeShareRatio_6478B306C631AC8FC79EE01C4911E424" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_bmrc_BusinessCombinationConsiderationTransferredEquityInterestsIssuedandIssuableEntitySharesIssuedPerAcquireeShareRatio_6478B306C631AC8FC79EE01C4911E424" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_CC4B06024DAB1105A963E01C49115186" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_Goodwill_CC4B06024DAB1105A963E01C49115186" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_010543876590502AA622E01C49119546" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_010543876590502AA622E01C49119546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_80085508120365A7475BE01C4911DCCF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_80085508120365A7475BE01C4911DCCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_382C96ACD9368B541672E01C491136B5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_382C96ACD9368B541672E01C491136B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_7FF4D040047EB56E49CDE01C4911D9FD" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8A1F9875A95F811E8BB8E01C49100ECB" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_7FF4D040047EB56E49CDE01C4911D9FD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4D15F49E00842C838081E06B6BAAE314" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4D15F49E00842C838081E06B6BAAE314" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_247E8AFD78E25C715150E06B6BABD3C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4D15F49E00842C838081E06B6BAAE314" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_247E8AFD78E25C715150E06B6BABD3C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AF28968AFCE1514BC799E06B6BAB17F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_247E8AFD78E25C715150E06B6BABD3C5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AF28968AFCE1514BC799E06B6BAB17F6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AF28968AFCE1514BC799E06B6BAB17F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_247E8AFD78E25C715150E06B6BABD3C5" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AF28968AFCE1514BC799E06B6BAB17F6" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_BankofNapaN.A.NapaMember" xlink:label="loc_bmrc_BankofNapaN.A.NapaMember_FCA2075544AE9C02E555E06B6BAB4D4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AF28968AFCE1514BC799E06B6BAB17F6" xlink:to="loc_bmrc_BankofNapaN.A.NapaMember_FCA2075544AE9C02E555E06B6BAB4D4D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DataProcessing" xlink:label="loc_bmrc_DataProcessing_B46FAEBE4418ABAD146DE06B6BAC0323" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_bmrc_DataProcessing_B46FAEBE4418ABAD146DE06B6BAC0323" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_098DC41125A1FF1176D0E06B6BACD4F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_us-gaap_ProfessionalFees_098DC41125A1FF1176D0E06B6BACD4F5" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_PersonnelSeverance" xlink:label="loc_bmrc_PersonnelSeverance_0448329E52B23FB57C5EE06B6BAC2CA0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_bmrc_PersonnelSeverance_0448329E52B23FB57C5EE06B6BAC2CA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_DF6D64CB5E1386F9581AE06B6BAC5D7E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_us-gaap_OtherNoninterestExpense_DF6D64CB5E1386F9581AE06B6BAC5D7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_2C113D61FEC375465BA9E06B6BACB3A5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_557A76AF85513277014CE06B6BABC2DD" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_2C113D61FEC375465BA9E06B6BACB3A5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/AcquisitionTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationSummaryOfProformaEpsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_11AD4F8C33C507CCF30BE07CDD37CF05" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_88A4D8727AABC4DECCFDE07CDD3727C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_11AD4F8C33C507CCF30BE07CDD37CF05" xlink:to="loc_us-gaap_SubsequentEventTable_88A4D8727AABC4DECCFDE07CDD3727C2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_DF2CA1CD1E3ED6BB1BA6E07D025EE821" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_88A4D8727AABC4DECCFDE07CDD3727C2" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_DF2CA1CD1E3ED6BB1BA6E07D025EE821" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_54EA292F22AE422F4B93E07D02651F87_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_DF2CA1CD1E3ED6BB1BA6E07D025EE821" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_54EA292F22AE422F4B93E07D02651F87_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_54EA292F22AE422F4B93E07D02651F87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_DF2CA1CD1E3ED6BB1BA6E07D025EE821" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_54EA292F22AE422F4B93E07D02651F87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_0CA2F2A5E0E2977014CAE07EABE45F20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_54EA292F22AE422F4B93E07D02651F87" xlink:to="loc_us-gaap_SubsequentEventMember_0CA2F2A5E0E2977014CAE07EABE45F20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_B91961743931793F25BFE06B6D3BCCD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_11AD4F8C33C507CCF30BE07CDD37CF05" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_B91961743931793F25BFE06B6D3BCCD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BasicEarningsPerShareProForma" xlink:label="loc_us-gaap_BasicEarningsPerShareProForma_54A0E43B362B87090EE3E06B6D3C3FA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_11AD4F8C33C507CCF30BE07CDD37CF05" xlink:to="loc_us-gaap_BasicEarningsPerShareProForma_54A0E43B362B87090EE3E06B6D3C3FA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DilutedEarningsPerShareProForma" xlink:label="loc_us-gaap_DilutedEarningsPerShareProForma_2E00AB8ED35891A292E8E06B6D3C6D75" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_11AD4F8C33C507CCF30BE07CDD37CF05" xlink:to="loc_us-gaap_DilutedEarningsPerShareProForma_2E00AB8ED35891A292E8E06B6D3C6D75" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/Borrowings" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BorrowingsLinesOfCreditDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_5E553C299278D276209DF3A0C4456462" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_82027A7C2C6205FDE6F9F3A0C4423923" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_5E553C299278D276209DF3A0C4456462" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_82027A7C2C6205FDE6F9F3A0C4423923" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_F3E511DD0FC8A0B6E9FDF3A0C44264CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_82027A7C2C6205FDE6F9F3A0C4423923" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_F3E511DD0FC8A0B6E9FDF3A0C44264CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3BD731F4646B8E3EEB12F3A0C442F27E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_F3E511DD0FC8A0B6E9FDF3A0C44264CB" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3BD731F4646B8E3EEB12F3A0C442F27E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3BD731F4646B8E3EEB12F3A0C442F27E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_F3E511DD0FC8A0B6E9FDF3A0C44264CB" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3BD731F4646B8E3EEB12F3A0C442F27E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnsecuredDebtMember" xlink:label="loc_us-gaap_UnsecuredDebtMember_A5765797972A4DC13B0AF3A0C4423618" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3BD731F4646B8E3EEB12F3A0C442F27E" xlink:to="loc_us-gaap_UnsecuredDebtMember_A5765797972A4DC13B0AF3A0C4423618" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_0DB10CD99E77647FFC1EF3A0C4434623" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_82027A7C2C6205FDE6F9F3A0C4423923" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_0DB10CD99E77647FFC1EF3A0C4434623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_0DB10CD99E77647FFC1EF3A0C4434623" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_0DB10CD99E77647FFC1EF3A0C4434623" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsPurchasedMember" xlink:label="loc_us-gaap_FederalFundsPurchasedMember_5A5374A376ED4FD62B25F3A0C4430B6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:to="loc_us-gaap_FederalFundsPurchasedMember_5A5374A376ED4FD62B25F3A0C4430B6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankBorrowingsMember" xlink:label="loc_us-gaap_FederalHomeLoanBankBorrowingsMember_AE62FB4B474E75614A7EF3A0C444A39B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:to="loc_us-gaap_FederalHomeLoanBankBorrowingsMember_AE62FB4B474E75614A7EF3A0C444A39B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FederalHomeLoanBankOvernightBorrowingsMember" xlink:label="loc_bmrc_FederalHomeLoanBankOvernightBorrowingsMember_BFE33B3BE54940F63912F3A0C4447DD1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:to="loc_bmrc_FederalHomeLoanBankOvernightBorrowingsMember_BFE33B3BE54940F63912F3A0C4447DD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalReserveBankAdvancesMember" xlink:label="loc_us-gaap_FederalReserveBankAdvancesMember_81E1B06734E9D492079DF3A0C444D502" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_3037ACCDE272EE0BD068F3A0C4432F86" xlink:to="loc_us-gaap_FederalReserveBankAdvancesMember_81E1B06734E9D492079DF3A0C444D502" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_60A6357A185B2ECC137DF3A0C444C97F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_82027A7C2C6205FDE6F9F3A0C4423923" xlink:to="loc_us-gaap_CreditFacilityAxis_60A6357A185B2ECC137DF3A0C444C97F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_DBBABA89A691E0848BF6F3A0C4451EFD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_60A6357A185B2ECC137DF3A0C444C97F" xlink:to="loc_us-gaap_CreditFacilityDomain_DBBABA89A691E0848BF6F3A0C4451EFD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_DBBABA89A691E0848BF6F3A0C4451EFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_60A6357A185B2ECC137DF3A0C444C97F" xlink:to="loc_us-gaap_CreditFacilityDomain_DBBABA89A691E0848BF6F3A0C4451EFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_45B088D10378BAD84241F3A0C445B8F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_DBBABA89A691E0848BF6F3A0C4451EFD" xlink:to="loc_us-gaap_LineOfCreditMember_45B088D10378BAD84241F3A0C445B8F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_FAF9ADCF23178F87EA67F3A0C445981B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_5E553C299278D276209DF3A0C4456462" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_FAF9ADCF23178F87EA67F3A0C445981B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_205416231D9951666126F3A0C445FD30" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_5E553C299278D276209DF3A0C4456462" xlink:to="loc_us-gaap_LineOfCredit_205416231D9951666126F3A0C445FD30" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BorrowingsSubordinatedDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_28F7160A3DF40242B55EE01C49BD44FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_28F7160A3DF40242B55EE01C49BD44FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_42D681F7B21F4227055AE01C49BE9A71_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_28F7160A3DF40242B55EE01C49BD44FF" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_42D681F7B21F4227055AE01C49BE9A71_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_42D681F7B21F4227055AE01C49BE9A71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_28F7160A3DF40242B55EE01C49BD44FF" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_42D681F7B21F4227055AE01C49BE9A71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_D183F474E2973CFFAD70E01C49BEB321" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_42D681F7B21F4227055AE01C49BE9A71" xlink:to="loc_us-gaap_SubsequentEventMember_D183F474E2973CFFAD70E01C49BEB321" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_A00C099D89B9667A3D5AE01C49BEC49D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:to="loc_us-gaap_VariableRateAxis_A00C099D89B9667A3D5AE01C49BEC49D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_62F23D9A36F4E50DC6C3E01C49BE92CA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_A00C099D89B9667A3D5AE01C49BEC49D" xlink:to="loc_us-gaap_VariableRateDomain_62F23D9A36F4E50DC6C3E01C49BE92CA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_62F23D9A36F4E50DC6C3E01C49BE92CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_A00C099D89B9667A3D5AE01C49BEC49D" xlink:to="loc_us-gaap_VariableRateDomain_62F23D9A36F4E50DC6C3E01C49BE92CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_18884DC6C4668614C74DE01C49BFDA3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_62F23D9A36F4E50DC6C3E01C49BE92CA" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_18884DC6C4668614C74DE01C49BFDA3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_5BFF4048F3578A68A9F0E01C49BFA266" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_5BFF4048F3578A68A9F0E01C49BFA266" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_B8A1737E3912DD54A26CE01C49BFC578_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5BFF4048F3578A68A9F0E01C49BFA266" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_B8A1737E3912DD54A26CE01C49BFC578_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_B8A1737E3912DD54A26CE01C49BFC578" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5BFF4048F3578A68A9F0E01C49BFA266" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_B8A1737E3912DD54A26CE01C49BFC578" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubordinatedDebtMember" xlink:label="loc_us-gaap_SubordinatedDebtMember_95EC28952DBCB5FA15F0E01C49C0A624" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_B8A1737E3912DD54A26CE01C49BFC578" xlink:to="loc_us-gaap_SubordinatedDebtMember_95EC28952DBCB5FA15F0E01C49C0A624" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_356EEB3EC2B369FB05C4E01C49C00527" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CC5DDC5BDADA646A5924E01C49BD3065" xlink:to="loc_us-gaap_DebtInstrumentAxis_356EEB3EC2B369FB05C4E01C49C00527" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_356EEB3EC2B369FB05C4E01C49C00527" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_356EEB3EC2B369FB05C4E01C49C00527" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_NorCalCommunityBancorpTrustIMember" xlink:label="loc_bmrc_NorCalCommunityBancorpTrustIMember_854058852E1A6FDA22EFE01C49C0F473" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324" xlink:to="loc_bmrc_NorCalCommunityBancorpTrustIMember_854058852E1A6FDA22EFE01C49C0F473" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_NorCalCommunityBancorpTrustIIMember" xlink:label="loc_bmrc_NorCalCommunityBancorpTrustIIMember_0FD781EDB1197BC57D61E01C49C1C86B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_57B1FD7DEADD454847FAE01C49C01324" xlink:to="loc_bmrc_NorCalCommunityBancorpTrustIIMember_0FD781EDB1197BC57D61E01C49C1C86B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_BusinessCombinationsNumberofDebtInstrumentsAcquired" xlink:label="loc_bmrc_BusinessCombinationsNumberofDebtInstrumentsAcquired_8488829607A75E936AB8E01C49C1C1B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_bmrc_BusinessCombinationsNumberofDebtInstrumentsAcquired_8488829607A75E936AB8E01C49C1C1B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_080710264B53AC3E626CE01C49C209E4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_080710264B53AC3E626CE01C49C209E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_06FB8419386C83D73DA1E01C49C2FD5A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_06FB8419386C83D73DA1E01C49C2FD5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_5608C4FA233228F12DBDE01C49C20802" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_5608C4FA233228F12DBDE01C49C20802" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DebtInstrumentDistributionDeferralPeriod" xlink:label="loc_bmrc_DebtInstrumentDistributionDeferralPeriod_D5A0D979983E424240A6E01C49C2E0D4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_bmrc_DebtInstrumentDistributionDeferralPeriod_D5A0D979983E424240A6E01C49C2E0D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust" xlink:label="loc_us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_89EFDE0FB03894EA8147E01C49C20D11" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_89EFDE0FB03894EA8147E01C49C20D11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_05D73DB6BE655D940611E01C49C27D34" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_05D73DB6BE655D940611E01C49C27D34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_17C46BC9DB71659DEA5CE01C49C3F697" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2FD196D2CCCC6A56F5D2E01C49C12F8C" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_17C46BC9DB71659DEA5CE01C49C3F697" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/BorrowingsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable" xlink:label="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:to="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_86FF8C05E946FE29339FDB43E42CE512" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:to="loc_us-gaap_FinancialInstrumentAxis_86FF8C05E946FE29339FDB43E42CE512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A4E3F4C935BC07D3E6BDB43E42CC6FE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_86FF8C05E946FE29339FDB43E42CE512" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A4E3F4C935BC07D3E6BDB43E42CC6FE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A4E3F4C935BC07D3E6BDB43E42CC6FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_86FF8C05E946FE29339FDB43E42CE512" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A4E3F4C935BC07D3E6BDB43E42CC6FE" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember" xlink:label="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_2A4E3F4C935BC07D3E6BDB43E42CC6FE" xlink:to="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialLinesOfCreditMember" xlink:label="loc_bmrc_CommercialLinesOfCreditMember_A5786424D3422FCB73BDDB43E42D0404" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:to="loc_bmrc_CommercialLinesOfCreditMember_A5786424D3422FCB73BDDB43E42D0404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityMember" xlink:label="loc_us-gaap_HomeEquityMember_F6DB870439F6D663FD89DB43E42DA4B2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:to="loc_us-gaap_HomeEquityMember_F6DB870439F6D663FD89DB43E42DA4B2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_UndisbursedConstructionLoansMember" xlink:label="loc_bmrc_UndisbursedConstructionLoansMember_C8A7C02A717802D14E4EDB43E42D3231" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:to="loc_bmrc_UndisbursedConstructionLoansMember_C8A7C02A717802D14E4EDB43E42D3231" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ConsumerAndOtherLinesOfCreditMember" xlink:label="loc_bmrc_ConsumerAndOtherLinesOfCreditMember_3BA803FDD50AFE4A1001DB43E42D20AE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:to="loc_bmrc_ConsumerAndOtherLinesOfCreditMember_3BA803FDD50AFE4A1001DB43E42D20AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialStandbyLetterOfCreditMember" xlink:label="loc_us-gaap_FinancialStandbyLetterOfCreditMember_342126554018E675814ADB43E42D3877" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_LinesOfCreditAndLettersOfCreditUnusedCommitmentsMember_02A29F6D85F2D2169962DB43E42CC8A5" xlink:to="loc_us-gaap_FinancialStandbyLetterOfCreditMember_342126554018E675814ADB43E42D3877" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_8B837EAB905A340CC7FBDB43E42E1ACB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:to="loc_dei_LegalEntityAxis_8B837EAB905A340CC7FBDB43E42E1ACB" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_86F1F83CCB85A1CB4E31DB43E42E1A67_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8B837EAB905A340CC7FBDB43E42E1ACB" xlink:to="loc_dei_EntityDomain_86F1F83CCB85A1CB4E31DB43E42E1A67_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_86F1F83CCB85A1CB4E31DB43E42E1A67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8B837EAB905A340CC7FBDB43E42E1ACB" xlink:to="loc_dei_EntityDomain_86F1F83CCB85A1CB4E31DB43E42E1A67" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_VisaIncMember" xlink:label="loc_bmrc_VisaIncMember_A6B775E60C44DEF4A6C4DB43E42E70E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_86F1F83CCB85A1CB4E31DB43E42E1A67" xlink:to="loc_bmrc_VisaIncMember_A6B775E60C44DEF4A6C4DB43E42E70E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_BD7AD0FE7492CF8FA5AADB43E42FAB08" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_BD7AD0FE7492CF8FA5AADB43E42FAB08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1D5164A22472658500E2DB43E42F5F3D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_BD7AD0FE7492CF8FA5AADB43E42FAB08" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1D5164A22472658500E2DB43E42F5F3D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1D5164A22472658500E2DB43E42F5F3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_BD7AD0FE7492CF8FA5AADB43E42FAB08" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1D5164A22472658500E2DB43E42F5F3D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InterestPayableAndOtherLiabilitiesMember" xlink:label="loc_bmrc_InterestPayableAndOtherLiabilitiesMember_8C87DDC117E7DD2B0065DB43E42FBFBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1D5164A22472658500E2DB43E42F5F3D" xlink:to="loc_bmrc_InterestPayableAndOtherLiabilitiesMember_8C87DDC117E7DD2B0065DB43E42FBFBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LitigationStatusAxis" xlink:label="loc_us-gaap_LitigationStatusAxis_13E2F7940FBE91C1E20FDB43E42F6FE6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_5F8C8D18C21A8CECA243DB43E42BA487" xlink:to="loc_us-gaap_LitigationStatusAxis_13E2F7940FBE91C1E20FDB43E42F6FE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LitigationStatusDomain" xlink:label="loc_us-gaap_LitigationStatusDomain_B5E7938E32C81E31F8C9DB43E42F82E5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationStatusAxis_13E2F7940FBE91C1E20FDB43E42F6FE6" xlink:to="loc_us-gaap_LitigationStatusDomain_B5E7938E32C81E31F8C9DB43E42F82E5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LitigationStatusDomain" xlink:label="loc_us-gaap_LitigationStatusDomain_B5E7938E32C81E31F8C9DB43E42F82E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationStatusAxis_13E2F7940FBE91C1E20FDB43E42F6FE6" xlink:to="loc_us-gaap_LitigationStatusDomain_B5E7938E32C81E31F8C9DB43E42F82E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PendingLitigationMember" xlink:label="loc_us-gaap_PendingLitigationMember_8BD4832643C099A4C28CDB43E430A987" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LitigationStatusDomain_B5E7938E32C81E31F8C9DB43E42F82E5" xlink:to="loc_us-gaap_PendingLitigationMember_8BD4832643C099A4C28CDB43E430A987" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OffBalanceSheetArrangementsLiabilitiesCurrentExposure" xlink:label="loc_bmrc_OffBalanceSheetArrangementsLiabilitiesCurrentExposure_126D7130B4C2FE13FA75DB43E430BAC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:to="loc_bmrc_OffBalanceSheetArrangementsLiabilitiesCurrentExposure_126D7130B4C2FE13FA75DB43E430BAC2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AllowanceForOffBalanceSheetCommitments" xlink:label="loc_bmrc_AllowanceForOffBalanceSheetCommitments_1F4BC991470E9774F68EDB43E431AD57" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:to="loc_bmrc_AllowanceForOffBalanceSheetCommitments_1F4BC991470E9774F68EDB43E431AD57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_ECB721C602B8438FF0F2DB43E43116E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_ECB721C602B8438FF0F2DB43E43116E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_B81AA5EA6085A6032B15DB43E4314132" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_B81AA5EA6085A6032B15DB43E4314132" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_63AA8A7474DF606818AEDB43E432CCAB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_63AA8A7474DF606818AEDB43E432CCAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_FCE8C03BD619B896FBEDDB43E4325771" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_FCE8C03BD619B896FBEDDB43E4325771" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_4631075CBA4A7569FA5DDB43E4327CC6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_4631075CBA4A7569FA5DDB43E4327CC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_C405D42B791D8D4A683EDB43E4320C8A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_C405D42B791D8D4A683EDB43E4320C8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_7E090E5B73629CBD5003DB43E433775C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_7E090E5B73629CBD5003DB43E433775C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="loc_us-gaap_LeaseAndRentalExpense_B6FD8ECCF855B46DD560DB43E4332686" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract_804D03EDFE2AD629A31ADB43E431F7C0" xlink:to="loc_us-gaap_LeaseAndRentalExpense_B6FD8ECCF855B46DD560DB43E4332686" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyAbstract" xlink:label="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_01952B9D724DD39A7856DB43E4303BFF" xlink:to="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyDamagesSoughtValue" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_355DB104014C8C4C4BCCDB43E433DCE8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_355DB104014C8C4C4BCCDB43E433DCE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyAccrualPayments" xlink:label="loc_us-gaap_LossContingencyAccrualPayments_2EF49EAA4F72D00DEA7BDB43E433A1E5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:to="loc_us-gaap_LossContingencyAccrualPayments_2EF49EAA4F72D00DEA7BDB43E433A1E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_B1B20B62E45DCCB3E25FDB43E433445C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_B1B20B62E45DCCB3E25FDB43E433445C" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LossContingencySalesVolumeOfOptOutMerchantsWithSettledAgreementsPercentage" xlink:label="loc_bmrc_LossContingencySalesVolumeOfOptOutMerchantsWithSettledAgreementsPercentage_1BE5D3ED92C7E7D25B88DB43E43357F7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyAbstract_897FB9D2DDB6C3D397F8DB43E433D0FE" xlink:to="loc_bmrc_LossContingencySalesVolumeOfOptOutMerchantsWithSettledAgreementsPercentage_1BE5D3ED92C7E7D25B88DB43E43357F7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_617D916A4E361E978F6CE51B67C7503B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_B5989C5BF02F80A79485E51B67C3F024" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_617D916A4E361E978F6CE51B67C7503B" xlink:to="loc_us-gaap_StatementTable_B5989C5BF02F80A79485E51B67C3F024" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_FD8BD98BF64F7C0779B3E51B67C45F1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B5989C5BF02F80A79485E51B67C3F024" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_FD8BD98BF64F7C0779B3E51B67C45F1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FD8BD98BF64F7C0779B3E51B67C45F1D" xlink:to="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FD8BD98BF64F7C0779B3E51B67C45F1D" xlink:to="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_FC7F7F5D977937EED732E51B67C5CBFE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828" xlink:to="loc_us-gaap_CommonStockMember_FC7F7F5D977937EED732E51B67C5CBFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_E152C6FD9C6436D24144E51B67C5EF16" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828" xlink:to="loc_us-gaap_RetainedEarningsMember_E152C6FD9C6436D24144E51B67C5EF16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_68E7B0CB0AA8B4D8566FE51B67C764A7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_DF8B7DC891BE6801A30DE51B67C49828" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_68E7B0CB0AA8B4D8566FE51B67C764A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_617D916A4E361E978F6CE51B67C7503B" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_11BC4199F97808FCC3D1E51B67C769A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_11BC4199F97808FCC3D1E51B67C769A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_7090861C842F6AD965F1E51B67C88DC8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockholdersEquity_7090861C842F6AD965F1E51B67C88DC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_48071516477E2AC969FCE51B67C8A443" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_NetIncomeLoss_48071516477E2AC969FCE51B67C8A443" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8133CE1626298180A95EE51B67C8E5B0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8133CE1626298180A95EE51B67C8E5B0" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" xlink:label="loc_bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings_E6E2031043C0B6136EC0E51B67C8F914" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings_E6E2031043C0B6136EC0E51B67C8F914" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_StockIssuedDuringPeriodValueStockOptionsExercisedNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings" xlink:label="loc_bmrc_StockIssuedDuringPeriodValueStockOptionsExercisedNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings_7A37D72DC41C1C1FD469E51B67C968C1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_StockIssuedDuringPeriodValueStockOptionsExercisedNetOfSharesSurrenderedForCashlessExercisesAndTaxWithholdings_7A37D72DC41C1C1FD469E51B67C968C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_AA674CA2F3029C0A4475E51B67C90D8F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_AA674CA2F3029C0A4475E51B67C90D8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_D602D87DF430A401EEE8E51B67C9C03C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_D602D87DF430A401EEE8E51B67C9C03C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockOwnershipPlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockOwnershipPlan_BC59B6F2A5D6B413052BE51B67CA912A" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockOwnershipPlan_BC59B6F2A5D6B413052BE51B67CA912A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockOwnershipPlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockOwnershipPlan_B6661A8576779D00CAC9E51B67CA632D" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockOwnershipPlan_B6661A8576779D00CAC9E51B67CA632D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition_DD896DC0B8CD091AC367E51B67CB3451" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition_DD896DC0B8CD091AC367E51B67CB3451" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_1912FB93C64EDE8F44E9E51B67CBD970" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_1912FB93C64EDE8F44E9E51B67CBD970" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_4F0ECC6C43A704E84843E51B67CCC2B9" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_DividendsCommonStockCash_4F0ECC6C43A704E84843E51B67CCC2B9" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_StockIssuedDuringPeriodSharesNonemployeeDirectorStockPurchasePlans" xlink:label="loc_bmrc_StockIssuedDuringPeriodSharesNonemployeeDirectorStockPurchasePlans_F87BA1F12D7C82891887E51B67CCB27B" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_StockIssuedDuringPeriodSharesNonemployeeDirectorStockPurchasePlans_F87BA1F12D7C82891887E51B67CCB27B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_StockIssuedDuringPeriodValueNonemployeeDirectorStockPurchasePlans" xlink:label="loc_bmrc_StockIssuedDuringPeriodValueNonemployeeDirectorStockPurchasePlans_6B1A38D3B9759B9EBD7DE51B67CCCF1A" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_StockIssuedDuringPeriodValueNonemployeeDirectorStockPurchasePlans_6B1A38D3B9759B9EBD7DE51B67CCCF1A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_StockIssuedInPaymentOfDirectorFeesShares" xlink:label="loc_bmrc_StockIssuedInPaymentOfDirectorFeesShares_E7D2D126943FC1DD4D24E51B67CCDC72" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_StockIssuedInPaymentOfDirectorFeesShares_E7D2D126943FC1DD4D24E51B67CCDC72" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_StockIssuedInPaymentOfDirectorFees" xlink:label="loc_bmrc_StockIssuedInPaymentOfDirectorFees_08E8F07AD29D0F3D729EE51B67CC84A6" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_StockIssuedInPaymentOfDirectorFees_08E8F07AD29D0F3D729EE51B67CC84A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_9519E9108950EF4CC663E51B67CCB5D2" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_9519E9108950EF4CC663E51B67CCB5D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_F0BE6FF4846F87092966E51B67CD000D" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_F0BE6FF4846F87092966E51B67CD000D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect" xlink:label="loc_bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect_9FB6FEFE62DE8AB46B9FE51B67CE73ED" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect_9FB6FEFE62DE8AB46B9FE51B67CE73ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_948780D337D5D4C6259DE51B67CEE178" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_948780D337D5D4C6259DE51B67CEE178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_789BF87389381BC78260E51B67CE3C9C" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_789BF87389381BC78260E51B67CE3C9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_7BEDC8133A6F84DC29FDE51B67CE289D" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_7BEDC8133A6F84DC29FDE51B67CE289D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_114206BC6AB7CDC76CC0E51B67CE55B0" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_114206BC6AB7CDC76CC0E51B67CE55B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_8AF69B95ADDE5A05685BE51B67CE8BFC" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited_8AF69B95ADDE5A05685BE51B67CE8BFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_5BAE041FF739B76D9C26E51B67CF24BA" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0BC8FA69F2CEBEB53D4CE51B67C774D1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures_5BAE041FF739B76D9C26E51B67CF24BA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_E4178E50AB31F5CB0B98E01C4BC0334E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_StatementTable_E4178E50AB31F5CB0B98E01C4BC0334E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_D989070048DF3EAB98F3E01C4BC00515" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_E4178E50AB31F5CB0B98E01C4BC0334E" xlink:to="loc_srt_ProductOrServiceAxis_D989070048DF3EAB98F3E01C4BC00515" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_D989070048DF3EAB98F3E01C4BC00515" xlink:to="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_D989070048DF3EAB98F3E01C4BC00515" xlink:to="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositAccountMember" xlink:label="loc_us-gaap_DepositAccountMember_FB5C186702D7021DFE0EE01C4BC131DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672" xlink:to="loc_us-gaap_DepositAccountMember_FB5C186702D7021DFE0EE01C4BC131DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiduciaryAndTrustMember" xlink:label="loc_us-gaap_FiduciaryAndTrustMember_AAC1E21B33D5665C1B25E01C4BC1B1C8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672" xlink:to="loc_us-gaap_FiduciaryAndTrustMember_AAC1E21B33D5665C1B25E01C4BC1B1C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebitCardMember" xlink:label="loc_us-gaap_DebitCardMember_F4A224948F745CC7B337E01C4BC138AF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8352701D20DD065B028DE01C4BC18672" xlink:to="loc_us-gaap_DebitCardMember_F4A224948F745CC7B337E01C4BC138AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeOperatingAbstract" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_C6ED0618F4884A0C2E06E01C4BC2E4A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_C6ED0618F4884A0C2E06E01C4BC2E4A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract" xlink:label="loc_us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract_FA9DC6C63471478A7CCFE01C4BC2F3B9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:to="loc_us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract_FA9DC6C63471478A7CCFE01C4BC2F3B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeSecuritiesOtherUSGovernment" xlink:label="loc_us-gaap_InterestIncomeSecuritiesOtherUSGovernment_580ABD21F73551DC9F65E01C4BC28A72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract_FA9DC6C63471478A7CCFE01C4BC2F3B9" xlink:to="loc_us-gaap_InterestIncomeSecuritiesOtherUSGovernment_580ABD21F73551DC9F65E01C4BC28A72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeSecuritiesStateAndMunicipal" xlink:label="loc_us-gaap_InterestIncomeSecuritiesStateAndMunicipal_D1D55902FA1AB598A52EE01C4BC357F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract_FA9DC6C63471478A7CCFE01C4BC2F3B9" xlink:to="loc_us-gaap_InterestIncomeSecuritiesStateAndMunicipal_D1D55902FA1AB598A52EE01C4BC357F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesOther" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesOther_8D93C9B90807115BD7A0E01C4BC32498" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract_FA9DC6C63471478A7CCFE01C4BC2F3B9" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesOther_8D93C9B90807115BD7A0E01C4BC32498" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InterestDueFromBanksAndOther" xlink:label="loc_bmrc_InterestDueFromBanksAndOther_5544D46A534077F82E30E01C4BC3923E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:to="loc_bmrc_InterestDueFromBanksAndOther_5544D46A534077F82E30E01C4BC3923E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_0A08B1B90AA96E993C25E01C4BC4BD6B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_123AC40C8D53D3D69A7CE01C4BC22960" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_0A08B1B90AA96E993C25E01C4BC4BD6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseAbstract" xlink:label="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits" xlink:label="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_503A0934099918FD03CBE01C4BC49050" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_503A0934099918FD03CBE01C4BC49050" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseSavingsDeposits" xlink:label="loc_us-gaap_InterestExpenseSavingsDeposits_D8B14AABFB2FD3A8AB33E01C4BC47E11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseSavingsDeposits_D8B14AABFB2FD3A8AB33E01C4BC47E11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseMoneyMarketDeposits" xlink:label="loc_us-gaap_InterestExpenseMoneyMarketDeposits_E334399F261734F487C2E01C4BC486B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseMoneyMarketDeposits_E334399F261734F487C2E01C4BC486B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseTimeDeposits" xlink:label="loc_us-gaap_InterestExpenseTimeDeposits_86A0D6A98E613B49374CE01C4BC5129C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseTimeDeposits_86A0D6A98E613B49374CE01C4BC5129C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaap_InterestExpenseBorrowings_E296A836640D0595A949E01C4BC50DAD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseBorrowings_E296A836640D0595A949E01C4BC50DAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseTrustPreferredSecurities" xlink:label="loc_us-gaap_InterestExpenseTrustPreferredSecurities_7C025D8A19435DD4397FE01C4BC52D10" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpenseTrustPreferredSecurities_7C025D8A19435DD4397FE01C4BC52D10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_7733B74D5879626C308CE01C4BC5340F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_6169EF136E4881537D58E01C4BC4AE76" xlink:to="loc_us-gaap_InterestExpense_7733B74D5879626C308CE01C4BC5340F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_1BE0633EE85B417CB631E01C4BC50C9B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_1BE0633EE85B417CB631E01C4BC50C9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_F886FBCC0E1C124AE083E01C4BC50E56" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_F886FBCC0E1C124AE083E01C4BC50E56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_1263DB88F737AF994EF5E01C4BC588E2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_1263DB88F737AF994EF5E01C4BC588E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncomeAbstract" xlink:label="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_4A7AAC1243F5A2F0AC8CE01C4BC64F4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_4A7AAC1243F5A2F0AC8CE01C4BC64F4F" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MerchantInterchangeFees" xlink:label="loc_bmrc_MerchantInterchangeFees_96F98F070DA1392262E8E01C4BC6FA12" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_bmrc_MerchantInterchangeFees_96F98F070DA1392262E8E01C4BC6FA12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_B08101684073EB5555C9E01C4BC67CD4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_B08101684073EB5555C9E01C4BC67CD4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DividendIncomeFederalHomeLoanBank" xlink:label="loc_bmrc_DividendIncomeFederalHomeLoanBank_A55DB1AF545837937649E01C4BC6CF8E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_bmrc_DividendIncomeFederalHomeLoanBank_A55DB1AF545837937649E01C4BC6CF8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_707744D6DAA691AA4DCBE01C4BC7AC0A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_707744D6DAA691AA4DCBE01C4BC7AC0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_61D07E8CE6473D0D011FE01C4BC7FC71" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_61D07E8CE6473D0D011FE01C4BC7FC71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_2D24468DE019798927BFE01C4BC71F97" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_6F1808080629D65D1835E01C4BC639A2" xlink:to="loc_us-gaap_NoninterestIncome_2D24468DE019798927BFE01C4BC71F97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpenseAbstract" xlink:label="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_9FA5CBFC921384992114E01C4BC74582" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_LaborAndRelatedExpense_9FA5CBFC921384992114E01C4BC74582" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OccupancyAndEquipment" xlink:label="loc_bmrc_OccupancyAndEquipment_B58C5BA3AD7E8FA3484BE01C4BC8DAD1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_bmrc_OccupancyAndEquipment_B58C5BA3AD7E8FA3484BE01C4BC8DAD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_C39E42C06B17C5289764E01C4BC8F82C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_DepreciationAndAmortization_C39E42C06B17C5289764E01C4BC8F82C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_E124B183B988E9804BA8E01C4BC801A4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_E124B183B988E9804BA8E01C4BC801A4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DataProcessing" xlink:label="loc_bmrc_DataProcessing_6FBF6FC4DBD843829CF3E01C4BC87F61" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_bmrc_DataProcessing_6FBF6FC4DBD843829CF3E01C4BC87F61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_9964FD41BF1D49C76EB8E01C4BC892FC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_ProfessionalFees_9964FD41BF1D49C76EB8E01C4BC892FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpenseDirectorsFees" xlink:label="loc_us-gaap_NoninterestExpenseDirectorsFees_ABE790108ECEDCD5536DE01C4BC9B023" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_NoninterestExpenseDirectorsFees_ABE790108ECEDCD5536DE01C4BC9B023" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InformationTechnology" xlink:label="loc_bmrc_InformationTechnology_520F7BC04311B7FD818DE01C4BC95173" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_bmrc_InformationTechnology_520F7BC04311B7FD818DE01C4BC95173" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_C92459B24096DA3E236AE01C4BC9B79B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_C92459B24096DA3E236AE01C4BC9B79B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_68CF0BB641F8017E07D4E01C4BC9168F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_OtherNoninterestExpense_68CF0BB641F8017E07D4E01C4BC9168F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_F21CA3C1800F9D26334BE01C4BC913C8" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_2C453A43C0F954A086E3E01C4BC79903" xlink:to="loc_us-gaap_NoninterestExpense_F21CA3C1800F9D26334BE01C4BC913C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_CEF3A3FD642F1D6F8E40E01C4BC90808" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_CEF3A3FD642F1D6F8E40E01C4BC90808" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_85A27C3EF63FF6B18E7DE01C4BC93059" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_85A27C3EF63FF6B18E7DE01C4BC93059" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_CD40C38CD29D4EE80E9DE01C4BCAAA83" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_NetIncomeLoss_CD40C38CD29D4EE80E9DE01C4BCAAA83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareAbstract" xlink:label="loc_us-gaap_EarningsPerShareAbstract_FBF074F9862630F9C01AE01C4BCADBAB" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_EarningsPerShareAbstract_FBF074F9862630F9C01AE01C4BCADBAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_CCF5B8A753B302DE0816E01C4BCA6D9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_FBF074F9862630F9C01AE01C4BCADBAB" xlink:to="loc_us-gaap_EarningsPerShareBasic_CCF5B8A753B302DE0816E01C4BCA6D9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_13D26B3D03372B7B6507E01C4BCAFE8E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_FBF074F9862630F9C01AE01C4BCADBAB" xlink:to="loc_us-gaap_EarningsPerShareDiluted_13D26B3D03372B7B6507E01C4BCAFE8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_AA32BA35C5D0B920C439E01C4BCA0D6F" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_AA32BA35C5D0B920C439E01C4BCA0D6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_F23AE85887F6E12AD4FCE01C4BCBE911" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_AA32BA35C5D0B920C439E01C4BCA0D6F" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_F23AE85887F6E12AD4FCE01C4BCBE911" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_612EE944B5768E9ECB62E01C4BCBACB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_AA32BA35C5D0B920C439E01C4BCA0D6F" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_612EE944B5768E9ECB62E01C4BCBACB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAbstract" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAbstract_3B100C3C1C0BA1470C0CE01C4BCB2097" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2954C678296C35E6591FE01C4BC197A9" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAbstract_3B100C3C1C0BA1470C0CE01C4BCB2097" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxAbstract_3B100C3C1C0BA1470C0CE01C4BCB2097" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_2CD521E8E882EC90BC15E01C4BCC26F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_2CD521E8E882EC90BC15E01C4BCC26F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_8CDEBB46260A4BCD2C76E01C4BCC8BC4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_8CDEBB46260A4BCD2C76E01C4BCC8BC4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_3FD74ABAE38847EE5275E01C4BCC21FD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_3FD74ABAE38847EE5275E01C4BCC21FD" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_2F2542C854C9C6E851CBE01C4BCC0117" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_2F2542C854C9C6E851CBE01C4BCC0117" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_9BC0EB89BC6303B4BFDAE01C4BCC0129" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_9BC0EB89BC6303B4BFDAE01C4BCC0129" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_D638753D10C4B1938CB4E01C4BCDB781" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_D638753D10C4B1938CB4E01C4BCDB781" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_A5FF9ABFE8E87D13BB2BE01C4BCD4ABC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_954BB0E5373E6E83A230E01C4BCCEDFA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_A5FF9ABFE8E87D13BB2BE01C4BCD4ABC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_ADB8F53FFA2C624AF792E01C4BCDA956" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxAbstract_3B100C3C1C0BA1470C0CE01C4BCB2097" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_ADB8F53FFA2C624AF792E01C4BCDA956" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCondition" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfConditionParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_6A0002A346CCB7F1C347E01C495072CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_6A0002A346CCB7F1C347E01C495072CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_40A42986D104048A27C1E01C4951D70B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_6A0002A346CCB7F1C347E01C495072CB" xlink:to="loc_us-gaap_HedgingRelationshipDomain_40A42986D104048A27C1E01C4951D70B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_40A42986D104048A27C1E01C4951D70B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_6A0002A346CCB7F1C347E01C495072CB" xlink:to="loc_us-gaap_HedgingRelationshipDomain_40A42986D104048A27C1E01C4951D70B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_61FAE6866F5AF705105CE01C4951BB3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_40A42986D104048A27C1E01C4951D70B" xlink:to="loc_us-gaap_FairValueHedgingMember_61FAE6866F5AF705105CE01C4951BB3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_D6EF3F3E3F33F8F33091E01C495117BA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:to="loc_us-gaap_HedgingDesignationAxis_D6EF3F3E3F33F8F33091E01C495117BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_EEF42EB3AAE20E2E4C88E01C4952ADBA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_D6EF3F3E3F33F8F33091E01C495117BA" xlink:to="loc_us-gaap_HedgingDesignationDomain_EEF42EB3AAE20E2E4C88E01C4952ADBA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_EEF42EB3AAE20E2E4C88E01C4952ADBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_D6EF3F3E3F33F8F33091E01C495117BA" xlink:to="loc_us-gaap_HedgingDesignationDomain_EEF42EB3AAE20E2E4C88E01C4952ADBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_FB83B9705FFCF4215A43E01C4952E402" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_EEF42EB3AAE20E2E4C88E01C4952ADBA" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_FB83B9705FFCF4215A43E01C4952E402" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_EC7384A1A38654C2058BE01C49524842" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_EC7384A1A38654C2058BE01C49524842" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_EC7384A1A38654C2058BE01C49524842" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_EC7384A1A38654C2058BE01C49524842" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_4E63DD2D9040E2194018E01C495376B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E" xlink:to="loc_us-gaap_InterestRateSwapMember_4E63DD2D9040E2194018E01C495376B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_E876D31CC466FE3AF2BEE01C4953E286" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_F771BA1F24D522562438E01C4952DF0E" xlink:to="loc_us-gaap_InterestRateContractMember_E876D31CC466FE3AF2BEE01C4953E286" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_817B93FA5A3424344FCDE01C4953C041" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_817B93FA5A3424344FCDE01C4953C041" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_817B93FA5A3424344FCDE01C4953C041" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_817B93FA5A3424344FCDE01C4953C041" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_FF59E03265988E7C73E7E01C495453EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37" xlink:to="loc_us-gaap_OtherAssetsMember_FF59E03265988E7C73E7E01C495453EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesMember" xlink:label="loc_us-gaap_OtherLiabilitiesMember_1C33D168AF94C2EC3F91E01C4959CE6C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_65F5292AE699020899C4E01C4953FE37" xlink:to="loc_us-gaap_OtherLiabilitiesMember_1C33D168AF94C2EC3F91E01C4959CE6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_B101FBC8965EFC2C15C3E01C4959D9A6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_E960A9DA65F8766724BBE01C4950D762" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B101FBC8965EFC2C15C3E01C4959D9A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_A658B7F7CBE088BB6A7CE01C4959D9EC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B101FBC8965EFC2C15C3E01C4959D9A6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A658B7F7CBE088BB6A7CE01C4959D9EC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_A658B7F7CBE088BB6A7CE01C4959D9EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B101FBC8965EFC2C15C3E01C4959D9A6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A658B7F7CBE088BB6A7CE01C4959D9EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeMember" xlink:label="loc_us-gaap_InterestIncomeMember_F697B1FD1CD1EAFC8BC8E01C495A3665" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_A658B7F7CBE088BB6A7CE01C4959D9EC" xlink:to="loc_us-gaap_InterestIncomeMember_F697B1FD1CD1EAFC8BC8E01C495A3665" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeNumberOfInstrumentsHeld" xlink:label="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_5346637EDCC86E440007E01C495A3483" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_5346637EDCC86E440007E01C495A3483" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativeAccruedInterestInterestRateSwaps" xlink:label="loc_bmrc_DerivativeAccruedInterestInterestRateSwaps_E28FC54CEBDD0E3A9864E01C495ACC6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_bmrc_DerivativeAccruedInterestInterestRateSwaps_E28FC54CEBDD0E3A9864E01C495ACC6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetNotionalAmount" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_890AB545D4DAF4D7A58AE01C495BF344" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_890AB545D4DAF4D7A58AE01C495BF344" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityNotionalAmount" xlink:label="loc_us-gaap_DerivativeLiabilityNotionalAmount_83E7D8A912D111EDD856E01C495B12DF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeLiabilityNotionalAmount_83E7D8A912D111EDD856E01C495B12DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_E9F3FC77E105AEB47277E01C495B88A9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeAssets_E9F3FC77E105AEB47277E01C495B88A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_0754CA86D56067C92757E01C495B25DD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeLiabilities_0754CA86D56067C92757E01C495B25DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgedAssetFairValueHedge" xlink:label="loc_us-gaap_HedgedAssetFairValueHedge_BF1747A4EAC74C34A642E01C495B182C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_HedgedAssetFairValueHedge_BF1747A4EAC74C34A642E01C495B182C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease" xlink:label="loc_us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease_09D16187ABF797C5603FE01C495C2E2A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease_09D16187ABF797C5603FE01C495C2E2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_462E2AD37A6F03E0790EE01C495CE7AF" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_462E2AD37A6F03E0790EE01C495CE7AF" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativePaymentOnInterestRateDerivative" xlink:label="loc_bmrc_DerivativePaymentOnInterestRateDerivative_5594671384E2B827FAD9E01C495CB1A5" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_bmrc_DerivativePaymentOnInterestRateDerivative_5594671384E2B827FAD9E01C495CB1A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_C1984CC229F5F626587BE01C495CF0A0" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_C1984CC229F5F626587BE01C495CF0A0" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" xlink:label="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_4D44BE50C954AEB62894E01C495C4155" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_4D44BE50C954AEB62894E01C495C4155" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_8A820C8D1096D0EA569AE01C495CCA3B" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9543FF9A159332DBFD46E01C495A2DB6" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_8A820C8D1096D0EA569AE01C495CCA3B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OffsettingAssetsLineItems" xlink:label="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OffsettingAssetsTable" xlink:label="loc_us-gaap_OffsettingAssetsTable_5A338CEF37445A71BCD55113D8A01DEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_OffsettingAssetsTable_5A338CEF37445A71BCD55113D8A01DEC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srt_CounterpartyNameAxis_49412BD8AACD53F3BE19BE09D4EC600E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingAssetsTable_5A338CEF37445A71BCD55113D8A01DEC" xlink:to="loc_srt_CounterpartyNameAxis_49412BD8AACD53F3BE19BE09D4EC600E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F142ABE12B729AE147F9A9FE0DD1E328_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_49412BD8AACD53F3BE19BE09D4EC600E" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F142ABE12B729AE147F9A9FE0DD1E328_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_28FF10CE7AA55B89A4062EC2D80D121D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_49412BD8AACD53F3BE19BE09D4EC600E" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_28FF10CE7AA55B89A4062EC2D80D121D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CounterpartyMember" xlink:label="loc_bmrc_CounterpartyMember_286088D5460A50C1811F5148F1995C6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_28FF10CE7AA55B89A4062EC2D80D121D" xlink:to="loc_bmrc_CounterpartyMember_286088D5460A50C1811F5148F1995C6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_0E798CB641705431B3DF3BE247D2EB89" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingAssetsTable_5A338CEF37445A71BCD55113D8A01DEC" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_0E798CB641705431B3DF3BE247D2EB89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_25D598095878B734E588A9FE0DD1E907_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0E798CB641705431B3DF3BE247D2EB89" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_25D598095878B734E588A9FE0DD1E907_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_D451DE80EC165147B80DA9E3C57BCD2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0E798CB641705431B3DF3BE247D2EB89" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_D451DE80EC165147B80DA9E3C57BCD2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_5CEEB4326A0D58E3A9FC40725B718AFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D451DE80EC165147B80DA9E3C57BCD2B" xlink:to="loc_us-gaap_InterestRateSwapMember_5CEEB4326A0D58E3A9FC40725B718AFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_F732B66C60685A73BCDC7334161127D4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingAssetsTable_5A338CEF37445A71BCD55113D8A01DEC" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_F732B66C60685A73BCDC7334161127D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_05BEAA20916CC760936FA9FE0DD261E5_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_F732B66C60685A73BCDC7334161127D4" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_05BEAA20916CC760936FA9FE0DD261E5_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_15E6DF0DD9A35F85B3764547DFBADA94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_F732B66C60685A73BCDC7334161127D4" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_15E6DF0DD9A35F85B3764547DFBADA94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_15FEF34A0B1F58529F5F80726C4BDDE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_15E6DF0DD9A35F85B3764547DFBADA94" xlink:to="loc_us-gaap_OtherAssetsMember_15FEF34A0B1F58529F5F80726C4BDDE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_D24CE8DA5B785488863BDEFC59384EF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_D24CE8DA5B785488863BDEFC59384EF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_7DC510B1D1B057A29EC34993BABE4600" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_7DC510B1D1B057A29EC34993BABE4600" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_6370D81EEA845A27ACA7E89930282E3A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_6370D81EEA845A27ACA7E89930282E3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_3714C83AEF0855F58742C80801E3122B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_3714C83AEF0855F58742C80801E3122B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnCash" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_DDDA0BFA7EF85791B2CEDBF8AFDC1164" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_DDDA0BFA7EF85791B2CEDBF8AFDC1164" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_BA722439926655AC9C15BA662D76FAC9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_BA722439926655AC9C15BA662D76FAC9" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativeAssetAccruedInterestInterestRateSwaps" xlink:label="loc_bmrc_DerivativeAssetAccruedInterestInterestRateSwaps_E6A3CF91CF285454BB7F3942123DCD49" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_CD77DF7CC3BF5E778460020112AFDA3A" xlink:to="loc_bmrc_DerivativeAssetAccruedInterestInterestRateSwaps_E6A3CF91CF285454BB7F3942123DCD49" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OffsettingLiabilitiesLineItems" xlink:label="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OffsettingLiabilitiesTable" xlink:label="loc_us-gaap_OffsettingLiabilitiesTable_87F14524EC682C501241ECE6C1EE26B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_OffsettingLiabilitiesTable_87F14524EC682C501241ECE6C1EE26B8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srt_CounterpartyNameAxis_19CCE812F074494D570EECE6C1EE2C66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingLiabilitiesTable_87F14524EC682C501241ECE6C1EE26B8" xlink:to="loc_srt_CounterpartyNameAxis_19CCE812F074494D570EECE6C1EE2C66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F2CACF741F6F93629985ECE6C1EE02D7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_19CCE812F074494D570EECE6C1EE2C66" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F2CACF741F6F93629985ECE6C1EE02D7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F2CACF741F6F93629985ECE6C1EE02D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_19CCE812F074494D570EECE6C1EE2C66" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F2CACF741F6F93629985ECE6C1EE02D7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CounterpartyMember" xlink:label="loc_bmrc_CounterpartyMember_8A71DC45B611BF3BB93AECE6C1EF79F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_F2CACF741F6F93629985ECE6C1EE02D7" xlink:to="loc_bmrc_CounterpartyMember_8A71DC45B611BF3BB93AECE6C1EF79F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_26D99597F43E93F07B6AECE6C1EF6CB3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingLiabilitiesTable_87F14524EC682C501241ECE6C1EE26B8" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_26D99597F43E93F07B6AECE6C1EF6CB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_97FF54B69329AE0A0BA9ECE6C1EF3482_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_26D99597F43E93F07B6AECE6C1EF6CB3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_97FF54B69329AE0A0BA9ECE6C1EF3482_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_97FF54B69329AE0A0BA9ECE6C1EF3482" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_26D99597F43E93F07B6AECE6C1EF6CB3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_97FF54B69329AE0A0BA9ECE6C1EF3482" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_70C50F9009219B4EDB2CECE6C1EF39EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_97FF54B69329AE0A0BA9ECE6C1EF3482" xlink:to="loc_us-gaap_InterestRateSwapMember_70C50F9009219B4EDB2CECE6C1EF39EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_7E9C7BE0FADAAB50D696ECE6C1F001F8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OffsettingLiabilitiesTable_87F14524EC682C501241ECE6C1EE26B8" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_7E9C7BE0FADAAB50D696ECE6C1F001F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_11D7328A28F28F1C4739ECE6C1F0A2D5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_7E9C7BE0FADAAB50D696ECE6C1F001F8" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_11D7328A28F28F1C4739ECE6C1F0A2D5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_11D7328A28F28F1C4739ECE6C1F0A2D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_7E9C7BE0FADAAB50D696ECE6C1F001F8" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_11D7328A28F28F1C4739ECE6C1F0A2D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesMember" xlink:label="loc_us-gaap_OtherLiabilitiesMember_A783D0D0FD5C1ACA4083ECE6C1F001FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_11D7328A28F28F1C4739ECE6C1F0A2D5" xlink:to="loc_us-gaap_OtherLiabilitiesMember_A783D0D0FD5C1ACA4083ECE6C1F001FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_B54F4EB4448FC8ED089AECE6C1F1BE4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_B54F4EB4448FC8ED089AECE6C1F1BE4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_51C894AC8F34694F4B79ECE6C1F1F816" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_51C894AC8F34694F4B79ECE6C1F1F816" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_96F5198EE2CFC71C9A7DECE6C1F13C9E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_96F5198EE2CFC71C9A7DECE6C1F13C9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_B5234AC5F5F3CCC2285CECE6C1F12269" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_B5234AC5F5F3CCC2285CECE6C1F12269" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimCash" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_431E91DA17D938CA8FE2ECE6C1F1E602" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_431E91DA17D938CA8FE2ECE6C1F1E602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_48FE9C366296B34EB903ECE6C1F1B530" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_48FE9C366296B34EB903ECE6C1F1B530" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativeLiabilityAccruedInterestInterestRateSwaps" xlink:label="loc_bmrc_DerivativeLiabilityAccruedInterestInterestRateSwaps_69A3A55F60DA82D1E3C3ECE6C1F2D3FD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingLiabilitiesLineItems_445E9AD637D578060320ECE6C1F01AC7" xlink:to="loc_bmrc_DerivativeLiabilityAccruedInterestInterestRateSwaps_69A3A55F60DA82D1E3C3ECE6C1F2D3FD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7B3C209EC64ECA36EEC5A792441D27EF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_E58C514F9CDBB1B42211A792441A39AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7B3C209EC64ECA36EEC5A792441D27EF" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_E58C514F9CDBB1B42211A792441A39AF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_3F4DBB900255EA6520B1A792441A04EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_E58C514F9CDBB1B42211A792441A39AF" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_3F4DBB900255EA6520B1A792441A04EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_3F4DBB900255EA6520B1A792441A04EA" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_B4B7AB2DDAFF449137A9A792441BF0CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_3F4DBB900255EA6520B1A792441A04EA" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_B4B7AB2DDAFF449137A9A792441BF0CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_B4B7AB2DDAFF449137A9A792441BF0CF" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_8EAC5CE633BCF15225C1A792441B88A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_8EAC5CE633BCF15225C1A792441B88A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_AABA0357C3DBBCC41352A792441CB5B5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_B64FDE808BEB8F67DE70A792441BB46F" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_AABA0357C3DBBCC41352A792441CB5B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_211BFE4011BE6F244CFEA792441CC707" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_E58C514F9CDBB1B42211A792441A39AF" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_211BFE4011BE6F244CFEA792441CC707" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_211BFE4011BE6F244CFEA792441CC707" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_211BFE4011BE6F244CFEA792441CC707" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_EC9DB08814912629EC6EA792441C3D9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_EC9DB08814912629EC6EA792441C3D9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_B940D18327CF26C6C9BEA792441CA4CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_B940D18327CF26C6C9BEA792441CA4CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_E8B364EC1CEDD5DC6D65A792441DF3E6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8FCE74CB09B217774D3EA792441C04AA" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_E8B364EC1CEDD5DC6D65A792441DF3E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7B3C209EC64ECA36EEC5A792441D27EF" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_411DC4048F9E905B1D9CA792441D0B8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_411DC4048F9E905B1D9CA792441D0B8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_4EA0EC869DEB6A4B20F8A792441EC7B9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_4EA0EC869DEB6A4B20F8A792441EC7B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_F907D83C8FCA48F1973BA792441EC855" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_F907D83C8FCA48F1973BA792441EC855" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InterestReceivableFairValueDisclosure" xlink:label="loc_bmrc_InterestReceivableFairValueDisclosure_458DE5D9FFC6BB5ADBF4A792441E2BA9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_AF8C4B9F0BEA708849FDA792441D31CC" xlink:to="loc_bmrc_InterestReceivableFairValueDisclosure_458DE5D9FFC6BB5ADBF4A792441E2BA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_9410270302A3790DC098A792441E70A6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7B3C209EC64ECA36EEC5A792441D27EF" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_9410270302A3790DC098A792441E70A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositsFairValueDisclosure" xlink:label="loc_us-gaap_DepositsFairValueDisclosure_EA48B3FE37B84C61D27DA792441E0B79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_9410270302A3790DC098A792441E70A6" xlink:to="loc_us-gaap_DepositsFairValueDisclosure_EA48B3FE37B84C61D27DA792441E0B79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_E36E0DF1A1EDC078852EA792441F2711" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_9410270302A3790DC098A792441E70A6" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_E36E0DF1A1EDC078852EA792441F2711" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InterestPayableFairValueDisclosure" xlink:label="loc_bmrc_InterestPayableFairValueDisclosure_D168D23444803B64D1F3A792441F3E1B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_9410270302A3790DC098A792441E70A6" xlink:to="loc_bmrc_InterestPayableFairValueDisclosure_D168D23444803B64D1F3A792441F3E1B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CE85F45B422BC786BE51F2C7DC4F355A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CE85F45B422BC786BE51F2C7DC4F355A" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_4E66355580F9E9318079F2C7DC4BAE40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4E66355580F9E9318079F2C7DC4BAE40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C1DDA505938DD400F503F2C7DC4B7F42_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4E66355580F9E9318079F2C7DC4BAE40" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C1DDA505938DD400F503F2C7DC4B7F42_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C1DDA505938DD400F503F2C7DC4B7F42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4E66355580F9E9318079F2C7DC4BAE40" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C1DDA505938DD400F503F2C7DC4B7F42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_FC80D3C019116411AF96F2C7DC4CF658" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C1DDA505938DD400F503F2C7DC4B7F42" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_FC80D3C019116411AF96F2C7DC4CF658" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_58B23F52658D7920050EF2C7DC4C8B4B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_58B23F52658D7920050EF2C7DC4C8B4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_7BFEB1D8B28619733627F2C7DC4C3765_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_58B23F52658D7920050EF2C7DC4C8B4B" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_7BFEB1D8B28619733627F2C7DC4C3765_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_7BFEB1D8B28619733627F2C7DC4C3765" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_58B23F52658D7920050EF2C7DC4C8B4B" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_7BFEB1D8B28619733627F2C7DC4C3765" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_F1C893B1DA715C22171CF2C7DC4C2391" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_7BFEB1D8B28619733627F2C7DC4C3765" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_F1C893B1DA715C22171CF2C7DC4C2391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D78276DC3A5018199549F2C7DC4D67C4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D78276DC3A5018199549F2C7DC4D67C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D78276DC3A5018199549F2C7DC4D67C4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D78276DC3A5018199549F2C7DC4D67C4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_F6540C581105FAFC857FF2C7DC4EDC77" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_F6540C581105FAFC857FF2C7DC4EDC77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_86DFD04304DBBB5E6E26F2C7DC4D8E1C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25665567E31C1EBD873EF2C7DC4D8E36" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_86DFD04304DBBB5E6E26F2C7DC4D8E1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6EEBA460D14667974660F2C7DC4EBC8A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_29FDF8041595FF359C51F2C7DC4B4DDA" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6EEBA460D14667974660F2C7DC4EBC8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_4E24F08729B4E0D0FFB8F2C7DC4E4ADC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6EEBA460D14667974660F2C7DC4EBC8A" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_4E24F08729B4E0D0FFB8F2C7DC4E4ADC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_4E24F08729B4E0D0FFB8F2C7DC4E4ADC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6EEBA460D14667974660F2C7DC4EBC8A" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_4E24F08729B4E0D0FFB8F2C7DC4E4ADC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_9B8BF25A244B65DCF115F2C7DC4E7768" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_4E24F08729B4E0D0FFB8F2C7DC4E4ADC" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_9B8BF25A244B65DCF115F2C7DC4E7768" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesNumberOfSecurities" xlink:label="loc_bmrc_MarketableSecuritiesNumberOfSecurities_AC89AC442428509C0C24F2C7DC4FCC20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CE85F45B422BC786BE51F2C7DC4F355A" xlink:to="loc_bmrc_MarketableSecuritiesNumberOfSecurities_AC89AC442428509C0C24F2C7DC4FCC20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_468BB30D30E3B4A24FDCF2C7DC4F8213" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CE85F45B422BC786BE51F2C7DC4F355A" xlink:to="loc_us-gaap_AssetImpairmentCharges_468BB30D30E3B4A24FDCF2C7DC4F8213" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_E48971BACF87AEAA89F9F2C7DC4FA8D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_CE85F45B422BC786BE51F2C7DC4F355A" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_E48971BACF87AEAA89F9F2C7DC4FA8D0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5C2B6748150A4FE9AF29F2C7DC5BED96" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5C2B6748150A4FE9AF29F2C7DC5BED96" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_2A59EFCA3C788FC3C2E5F2D45EEA4305" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_2A59EFCA3C788FC3C2E5F2D45EEA4305" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_CD0E1FE41368D0B37121F2D540A1FB81_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2A59EFCA3C788FC3C2E5F2D45EEA4305" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_CD0E1FE41368D0B37121F2D540A1FB81_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_024D0382DC5F0E8EF8E1F2D4D8E7DFC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2A59EFCA3C788FC3C2E5F2D45EEA4305" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_024D0382DC5F0E8EF8E1F2D4D8E7DFC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_CD0E1FE41368D0B37121F2D540A1FB81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_024D0382DC5F0E8EF8E1F2D4D8E7DFC0" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_CD0E1FE41368D0B37121F2D540A1FB81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_09624E03EFE799618FD6F2D45F51297D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_CD0E1FE41368D0B37121F2D540A1FB81" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_09624E03EFE799618FD6F2D45F51297D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_D18840715ACBAA5677F9F2C7DC57AF7B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_D18840715ACBAA5677F9F2C7DC57AF7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_90F208B553F027631751F2C7DC57EE4C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_D18840715ACBAA5677F9F2C7DC57AF7B" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_90F208B553F027631751F2C7DC57EE4C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_90F208B553F027631751F2C7DC57EE4C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_D18840715ACBAA5677F9F2C7DC57AF7B" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_90F208B553F027631751F2C7DC57EE4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_57669A2AA6706D87E1C6F2C7DC586981" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_90F208B553F027631751F2C7DC57EE4C" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_57669A2AA6706D87E1C6F2C7DC586981" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_A9FF7BCB3664262296A9F2C7DC587841" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:to="loc_us-gaap_FinancialInstrumentAxis_A9FF7BCB3664262296A9F2C7DC587841" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_A9FF7BCB3664262296A9F2C7DC587841" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_A9FF7BCB3664262296A9F2C7DC587841" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_BCDAB3CBB5BCD9EB5612F2C7DC58382B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_BCDAB3CBB5BCD9EB5612F2C7DC58382B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember" xlink:label="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_DC454534ABDAA53EBD39F2C7DC59B648" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_DC454534ABDAA53EBD39F2C7DC59B648" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0A8F037D1C3E8E4EF65CF2C7DC597BCC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0A8F037D1C3E8E4EF65CF2C7DC597BCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_6AC9EB608D40951EBD76F2C7DC590D91" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_6AC9EB608D40951EBD76F2C7DC590D91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_26EA04CAF513D1800C1DF2C7DC59BD36" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_26EA04CAF513D1800C1DF2C7DC59BD36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_F36748F3A94E0D0BE5AAF2C7DC5954A3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4517B3431FFE80A5D097F2C7DC587DEC" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_F36748F3A94E0D0BE5AAF2C7DC5954A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_42B805095AB6350004D2F2C7DC5AFB35" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_42B805095AB6350004D2F2C7DC5AFB35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_42B805095AB6350004D2F2C7DC5AFB35" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_42B805095AB6350004D2F2C7DC5AFB35" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_6EDF3CE19285698F9B44F2C7DC5A2F28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_6EDF3CE19285698F9B44F2C7DC5A2F28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_13A59074E91FEAE6715DF2C7DC5A9F3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_13A59074E91FEAE6715DF2C7DC5A9F3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_18CE1F019C22585A875EF2C7DC5BEDB2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_CCADF936F10F3A3DF330F2C7DC5A8057" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_18CE1F019C22585A875EF2C7DC5BEDB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_9EB7440092DB0772141BF2C7DC5B3D2D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_EBECCF1DF898ACE0AAD0F2C7DC574FDC" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_9EB7440092DB0772141BF2C7DC5B3D2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_C4708622CD2A860143BFF2C7DC5BF623_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9EB7440092DB0772141BF2C7DC5B3D2D" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_C4708622CD2A860143BFF2C7DC5BF623_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_C4708622CD2A860143BFF2C7DC5BF623" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9EB7440092DB0772141BF2C7DC5B3D2D" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_C4708622CD2A860143BFF2C7DC5BF623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_7130D053E7FB45B22E0CF2C7DC5BC09D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_C4708622CD2A860143BFF2C7DC5BF623" xlink:to="loc_us-gaap_InterestRateContractMember_7130D053E7FB45B22E0CF2C7DC5BC09D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_4801C1C22AB2056F54DBF2C7DC5C9DA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5C2B6748150A4FE9AF29F2C7DC5BED96" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_4801C1C22AB2056F54DBF2C7DC5C9DA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_7BDD46F5C5DEDF3603F7F2C7DC5CC772" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5C2B6748150A4FE9AF29F2C7DC5BED96" xlink:to="loc_us-gaap_DerivativeAssets_7BDD46F5C5DEDF3603F7F2C7DC5CC772" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_8F2C5162F90F454759F3F2C7DC5C8E43" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5C2B6748150A4FE9AF29F2C7DC5BED96" xlink:to="loc_us-gaap_DerivativeLiabilities_8F2C5162F90F454759F3F2C7DC5C8E43" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_AA05843E67D7586B8878D75C6001A8D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_AA05843E67D7586B8878D75C6001A8D1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_00A573B3F95D511D91B0B7AA33CC07DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_AA05843E67D7586B8878D75C6001A8D1" xlink:to="loc_us-gaap_FinancialInstrumentAxis_00A573B3F95D511D91B0B7AA33CC07DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4E1CF418D815EF479DB81448516AE9F9_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_00A573B3F95D511D91B0B7AA33CC07DF" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4E1CF418D815EF479DB81448516AE9F9_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_00A573B3F95D511D91B0B7AA33CC07DF" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_3B5B4AA52BEC52778575CB8073655579" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_3B5B4AA52BEC52778575CB8073655579" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember" xlink:label="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_44AEB25A1A60592D8B383FDC8B0E8AEA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_44AEB25A1A60592D8B383FDC8B0E8AEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember" xlink:label="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_80A13A22E44951348869FEF8E70B8447" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_80A13A22E44951348869FEF8E70B8447" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember" xlink:label="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_30A16049D8D65058BB9A36B3213FE714" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_30A16049D8D65058BB9A36B3213FE714" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember" xlink:label="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_834955303E485F5B8DDD1F03AE2C1403" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_834955303E485F5B8DDD1F03AE2C1403" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_8A2A77F97BB65C3C9369939EAFB64BFE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_8A2A77F97BB65C3C9369939EAFB64BFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_E80FF2D517FC52669A0D03B652683EA3" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_E80FF2D517FC52669A0D03B652683EA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_91DA11F49051558CAD4CAA51C345787C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_91DA11F49051558CAD4CAA51C345787C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_E221BDCCEBAF54399E625A561524C83C" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_396FFAC48EC056D789AE8C5A8B4DD72A" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_E221BDCCEBAF54399E625A561524C83C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_A759FABD104556EA849FCFB630DC30D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_A759FABD104556EA849FCFB630DC30D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_8BADA215310F54B6A1215E1DEF7BB25A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_8BADA215310F54B6A1215E1DEF7BB25A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_77B7CD79D0F554C48CC32A3719F660B4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_77B7CD79D0F554C48CC32A3719F660B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_FA05AFB9BE4A53B0A538703BC7E3B888" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_FA05AFB9BE4A53B0A538703BC7E3B888" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8338DBEA62F95B80B99536945707AE8A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8338DBEA62F95B80B99536945707AE8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2CDB437D4D1E5A5F9463AFD895981157" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2CDB437D4D1E5A5F9463AFD895981157" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_318263EC3F6B53B592ECED889CCECF87" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_318263EC3F6B53B592ECED889CCECF87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_C2116FA3438E50509555B7AB82379899" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_C2116FA3438E50509555B7AB82379899" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_95863E5D80915EBCB14C6AAB3DB3CC92" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_95863E5D80915EBCB14C6AAB3DB3CC92" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_F12D50F6A7F2595AACE44D73C550013E" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_F12D50F6A7F2595AACE44D73C550013E" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_B4710AA5864E5057841903D5405E4BD2" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_B4710AA5864E5057841903D5405E4BD2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_206068A3B15756FB8180D89FF1E857F5" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_F43449684B7A5CABBA64813EF35829CC" xlink:to="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_206068A3B15756FB8180D89FF1E857F5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesMaturitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_B072DB91CB38901EF7D7A79243DFFC0D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_B072DB91CB38901EF7D7A79243DFFC0D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_0A76405E418FDB2CEFD4A79243E0F003" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_B072DB91CB38901EF7D7A79243DFFC0D" xlink:to="loc_us-gaap_FinancialInstrumentAxis_0A76405E418FDB2CEFD4A79243E0F003" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_0A76405E418FDB2CEFD4A79243E0F003" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_0A76405E418FDB2CEFD4A79243E0F003" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember" xlink:label="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_573E1C5AE9BE90956149A79243E0F904" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_573E1C5AE9BE90956149A79243E0F904" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember" xlink:label="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_D175C3B3FA2A2F92C539A79243E086E7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_D175C3B3FA2A2F92C539A79243E086E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember" xlink:label="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_D1CDAB4394B8C47E852CA79243E15AB4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_D1CDAB4394B8C47E852CA79243E15AB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_F4E858AE58945E4B1354A79243E13539" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_F4E858AE58945E4B1354A79243E13539" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_402CB15FD68DCA1CAE20A79243E17AAF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_402CB15FD68DCA1CAE20A79243E17AAF" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember" xlink:label="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_0328B07665BD138DE1E3A79243E16E51" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_0328B07665BD138DE1E3A79243E16E51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_E1D670D3E5B8CE00E92EA79243E12A20" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_E1D670D3E5B8CE00E92EA79243E12A20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_38B78EFE99F72C568E0FA79243E25CB0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_22F1A8D1DE8EC8253065A79243E0F3E8" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_38B78EFE99F72C568E0FA79243E25CB0" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecurities" xlink:label="loc_bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecurities_FF99B92A34669FC7165EA79243E246D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecurities_FF99B92A34669FC7165EA79243E246D8" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_2514951FD2F278848AF8A79243E201C3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_2514951FD2F278848AF8A79243E201C3" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_BED051F3107C70706E6FA79243E28B93" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_BED051F3107C70706E6FA79243E28B93" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" xlink:label="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_545393E8D744A30F3AAEA79243E39652" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions_545393E8D744A30F3AAEA79243E39652" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLongerThan12Months" xlink:label="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLongerThan12Months_FACC805FF4018DB3814BA79243E35F4D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLongerThan12Months_FACC805FF4018DB3814BA79243E35F4D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThan12Months" xlink:label="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThan12Months_F562FEA4A0940C97F048A79243E36761" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_9863861D880152E4C549A79243E294D9" xlink:to="loc_bmrc_MarketableSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThan12Months_F562FEA4A0940C97F048A79243E36761" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_11808902AAFFB0B4E14DE043C7BADF92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_us-gaap_StatementScenarioAxis_11808902AAFFB0B4E14DE043C7BADF92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_90D3A1E958A111E4421FE043C7C48C79_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_11808902AAFFB0B4E14DE043C7BADF92" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_90D3A1E958A111E4421FE043C7C48C79_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_90D3A1E958A111E4421FE043C7C48C79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_11808902AAFFB0B4E14DE043C7BADF92" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_90D3A1E958A111E4421FE043C7C48C79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_CE1F8A20D32694B4E375E043EBD4B125" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_90D3A1E958A111E4421FE043C7C48C79" xlink:to="loc_us-gaap_ScenarioForecastMember_CE1F8A20D32694B4E375E043EBD4B125" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_435B9AFF8F2D2E3758C8E01C4ABADC63" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_435B9AFF8F2D2E3758C8E01C4ABADC63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_2F7585C418E919AED29CE01C4ABA3E6A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_435B9AFF8F2D2E3758C8E01C4ABADC63" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_2F7585C418E919AED29CE01C4ABA3E6A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_2F7585C418E919AED29CE01C4ABA3E6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_435B9AFF8F2D2E3758C8E01C4ABADC63" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_2F7585C418E919AED29CE01C4ABA3E6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_157156B1CF639DF5A185E01C4ABB89A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_2F7585C418E919AED29CE01C4ABA3E6A" xlink:to="loc_us-gaap_SubsequentEventMember_157156B1CF639DF5A185E01C4ABB89A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="loc_us-gaap_InvestmentTypeAxis_732A71CC2FBBD4D269B3E01C4ABB70D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_us-gaap_InvestmentTypeAxis_732A71CC2FBBD4D269B3E01C4ABB70D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_7CACB0EA958BBE9E326DE01C4ABB34E5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_732A71CC2FBBD4D269B3E01C4ABB70D8" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_7CACB0EA958BBE9E326DE01C4ABB34E5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_7CACB0EA958BBE9E326DE01C4ABB34E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_732A71CC2FBBD4D269B3E01C4ABB70D8" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_7CACB0EA958BBE9E326DE01C4ABB34E5" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LowIncomeHousingTaxCreditInvestmentMember" xlink:label="loc_bmrc_LowIncomeHousingTaxCreditInvestmentMember_BAEF6A0AA6D6887BAB0CE01C4ABC46E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7CACB0EA958BBE9E326DE01C4ABB34E5" xlink:to="loc_bmrc_LowIncomeHousingTaxCreditInvestmentMember_BAEF6A0AA6D6887BAB0CE01C4ABC46E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3BD54295277416B58C08E01C4ABC9B0E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3BD54295277416B58C08E01C4ABC9B0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F3DC38840E83CB5314B9E01C4ABCBB5C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3BD54295277416B58C08E01C4ABC9B0E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F3DC38840E83CB5314B9E01C4ABCBB5C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F3DC38840E83CB5314B9E01C4ABCBB5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3BD54295277416B58C08E01C4ABC9B0E" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F3DC38840E83CB5314B9E01C4ABCBB5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsMember" xlink:label="loc_us-gaap_OtherAssetsMember_B8D35EA5FF042487F027E01C4ABCC3D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_F3DC38840E83CB5314B9E01C4ABCBB5C" xlink:to="loc_us-gaap_OtherAssetsMember_B8D35EA5FF042487F027E01C4ABCC3D7" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_1349A80A3247697CA050E01C4ABDE25D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_dei_LegalEntityAxis_1349A80A3247697CA050E01C4ABDE25D" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_42A1035C571FB46695A9E01C4ABDD004_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1349A80A3247697CA050E01C4ABDE25D" xlink:to="loc_dei_EntityDomain_42A1035C571FB46695A9E01C4ABDD004_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_42A1035C571FB46695A9E01C4ABDD004" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1349A80A3247697CA050E01C4ABDE25D" xlink:to="loc_dei_EntityDomain_42A1035C571FB46695A9E01C4ABDD004" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_VisaIncMember" xlink:label="loc_bmrc_VisaIncMember_DCB6875D7E9C8F5342CDE01C4ABDFCFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_42A1035C571FB46695A9E01C4ABDD004" xlink:to="loc_bmrc_VisaIncMember_DCB6875D7E9C8F5342CDE01C4ABDFCFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_888EA7A58901BB6581FDE01C4ABDFC12" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_us-gaap_StatementClassOfStockAxis_888EA7A58901BB6581FDE01C4ABDFC12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B5728638B57637A83258E01C4ABE4698_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_888EA7A58901BB6581FDE01C4ABDFC12" xlink:to="loc_us-gaap_ClassOfStockDomain_B5728638B57637A83258E01C4ABE4698_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B5728638B57637A83258E01C4ABE4698" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_888EA7A58901BB6581FDE01C4ABDFC12" xlink:to="loc_us-gaap_ClassOfStockDomain_B5728638B57637A83258E01C4ABE4698" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_79E5967AEF2FFC8B3D71E01C4ABE0C42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_B5728638B57637A83258E01C4ABE4698" xlink:to="loc_us-gaap_CommonClassBMember_79E5967AEF2FFC8B3D71E01C4ABE0C42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_E6A531BE00363C41A3D2E01C4ABEA2E0" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_CF0660D59692A4CF5430E01C4ABAF6CA" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_E6A531BE00363C41A3D2E01C4ABEA2E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_F6E268F1958BF31CD369E01C4ABED223_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_E6A531BE00363C41A3D2E01C4ABEA2E0" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_F6E268F1958BF31CD369E01C4ABED223_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_F6E268F1958BF31CD369E01C4ABED223" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_E6A531BE00363C41A3D2E01C4ABEA2E0" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_F6E268F1958BF31CD369E01C4ABED223" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_VisaInc.ClassBCommonStockMember" xlink:label="loc_bmrc_VisaInc.ClassBCommonStockMember_0440D06F5F3DD8EE936AE01C4ABFEEC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_F6E268F1958BF31CD369E01C4ABED223" xlink:to="loc_bmrc_VisaInc.ClassBCommonStockMember_0440D06F5F3DD8EE936AE01C4ABFEEC4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FederalHomeLoanBankStockParValue" xlink:label="loc_bmrc_FederalHomeLoanBankStockParValue_EF5ADA6BC7473B647B49E01C4ABF7DD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_bmrc_FederalHomeLoanBankStockParValue_EF5ADA6BC7473B647B49E01C4ABF7DD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankStock" xlink:label="loc_us-gaap_FederalHomeLoanBankStock_D90C888ADBAA720A726EE01C4ABFE82D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_FederalHomeLoanBankStock_D90C888ADBAA720A726EE01C4ABFE82D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FederalHomeLoanBankDividendRatePercentage" xlink:label="loc_bmrc_FederalHomeLoanBankDividendRatePercentage_9EAF866309C1A380E303E01C4AC05EE0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_bmrc_FederalHomeLoanBankDividendRatePercentage_9EAF866309C1A380E303E01C4AC05EE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentOwnedBalanceShares" xlink:label="loc_us-gaap_InvestmentOwnedBalanceShares_A31D81E27F3C442A2555E01C4AC0C774" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_InvestmentOwnedBalanceShares_A31D81E27F3C442A2555E01C4AC0C774" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNiCost" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_214CF56BC2F3F270E628E01C4AC0924A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_214CF56BC2F3F270E628E01C4AC0924A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_8416AD5CF34914CF6076E01C4AC06754" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_8416AD5CF34914CF6076E01C4AC06754" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNi" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_BF7CBB7172504A291DAFE01C4AC0A28D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_BF7CBB7172504A291DAFE01C4AC0A28D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_EquitySecuritiesFVNINumberOfSharesSold" xlink:label="loc_bmrc_EquitySecuritiesFVNINumberOfSharesSold_9FC3FDB0AF1DABF202EEE04555C21BAF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_bmrc_EquitySecuritiesFVNINumberOfSharesSold_9FC3FDB0AF1DABF202EEE04555C21BAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNiRealizedGain" xlink:label="loc_us-gaap_EquitySecuritiesFvNiRealizedGain_FCDC456307A1E173B06CE043847C40CF" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_EquitySecuritiesFvNiRealizedGain_FCDC456307A1E173B06CE043847C40CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments" xlink:label="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments_DFDE8573117272C6546BE01C4AC15442" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments_DFDE8573117272C6546BE01C4AC15442" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsTaxCredits" xlink:label="loc_bmrc_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsTaxCredits_DC1D91424FF8D3B4C8EFE01C4AC14AE9" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_bmrc_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsTaxCredits_DC1D91424FF8D3B4C8EFE01C4AC14AE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization" xlink:label="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization_24C73ACA2DE958DBF8C7E01C4AC12784" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization_24C73ACA2DE958DBF8C7E01C4AC12784" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AffordableHousingProgramUnfundedCommitments" xlink:label="loc_bmrc_AffordableHousingProgramUnfundedCommitments_90630DD50D407B4BE86DE01C4AC1312A" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_bmrc_AffordableHousingProgramUnfundedCommitments_90630DD50D407B4BE86DE01C4AC1312A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:label="loc_us-gaap_ImpairmentOfInvestments_9FB671999AE1ED5BB9FFE01C4AC10C00" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_B4322A01CC955A4D9351E01C4ABF54A9" xlink:to="loc_us-gaap_ImpairmentOfInvestments_9FB671999AE1ED5BB9FFE01C4AC10C00" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems" xlink:label="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_1465AD2A544D551DA6867AC839D0C891" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable" xlink:label="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_257CAEE06ECD5706AD7B827504A9E1A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_1465AD2A544D551DA6867AC839D0C891" xlink:to="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_257CAEE06ECD5706AD7B827504A9E1A6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="loc_us-gaap_InvestmentTypeAxis_1DFECA6147525F819899B135F868EBE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_257CAEE06ECD5706AD7B827504A9E1A6" xlink:to="loc_us-gaap_InvestmentTypeAxis_1DFECA6147525F819899B135F868EBE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_9E9672D7687889940A2BA52CF4F9B015_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_1DFECA6147525F819899B135F868EBE4" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_9E9672D7687889940A2BA52CF4F9B015_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_1DFECA6147525F819899B135F868EBE4" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_PublicDepositsMember" xlink:label="loc_bmrc_PublicDepositsMember_73956F1D0C1A52B59563BFB38E7600DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:to="loc_bmrc_PublicDepositsMember_73956F1D0C1A52B59563BFB38E7600DA" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_TrustDepositsMember" xlink:label="loc_bmrc_TrustDepositsMember_8D08A53287CA50B0A744B83CCAB8E46A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:to="loc_bmrc_TrustDepositsMember_8D08A53287CA50B0A744B83CCAB8E46A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_PledgedToStateOfCaliforniaMember" xlink:label="loc_bmrc_PledgedToStateOfCaliforniaMember_4A0BED315971583997BC2E1C1B74AA6D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:to="loc_bmrc_PledgedToStateOfCaliforniaMember_4A0BED315971583997BC2E1C1B74AA6D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CheckingAccountWealthManagementAndTrustServicesMember" xlink:label="loc_bmrc_CheckingAccountWealthManagementAndTrustServicesMember_0288380B3C1354D593A64BB72FBCAC9C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_4D268DADFA8D55F8BAC59AD551948A38" xlink:to="loc_bmrc_CheckingAccountWealthManagementAndTrustServicesMember_0288380B3C1354D593A64BB72FBCAC9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedSecuritiesPledged" xlink:label="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedSecuritiesPledged_FC7CD2C410F45C7193BE92329344C6E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_1465AD2A544D551DA6867AC839D0C891" xlink:to="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedSecuritiesPledged_FC7CD2C410F45C7193BE92329344C6E4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:type="extended">
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable" xlink:label="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_793AE2187B66F8ED44CDE01C4ADF6DCC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_793AE2187B66F8ED44CDE01C4ADF6DCC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_22CBDA98C8C8B3946D02E01C4AE08662" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable_793AE2187B66F8ED44CDE01C4ADF6DCC" xlink:to="loc_us-gaap_FinancialInstrumentAxis_22CBDA98C8C8B3946D02E01C4AE08662" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_22CBDA98C8C8B3946D02E01C4AE08662" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_22CBDA98C8C8B3946D02E01C4AE08662" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_7E65DC47508C277C1BC4E01C4AE01A8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember_7E65DC47508C277C1BC4E01C4AE01A8F" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember" xlink:label="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_CCC101FFDD77D73F3692E01C4AE1DF7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_bmrc_SmallBusinessAdministrationSBABackedSecuritiesMember_CCC101FFDD77D73F3692E01C4AE1DF7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember" xlink:label="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_26FFBE888D95D1A82DE4E01C4AE152C9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember_26FFBE888D95D1A82DE4E01C4AE152C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember" xlink:label="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_0C7D878013E394A0909FE01C4AE11EAA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember_0C7D878013E394A0909FE01C4AE11EAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember" xlink:label="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_D3AF573848C6EB424397E01C4AE1F72B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember_D3AF573848C6EB424397E01C4AE1F72B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0FEE6C1F2618FAAF6B2FE01C4AE1A786" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_0FEE6C1F2618FAAF6B2FE01C4AE1A786" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_6024F6C3955628B589C0E01C4AE1682C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember_6024F6C3955628B589C0E01C4AE1682C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_2DAF34103E12DAB5FA6BE01C4AE09001" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_2DAF34103E12DAB5FA6BE01C4AE09001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_027A8D55FA2A7B1B29ABE01C4AE2A2F9" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_744EB926881DE1FA9667E01C4AE0F82A" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_027A8D55FA2A7B1B29ABE01C4AE2A2F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_C9C3D38642D14DE7253DE01C4AE2C39D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_C9C3D38642D14DE7253DE01C4AE2C39D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_ED4CEDBD3A2DD5F0A81BE01C4AE2EA24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_C9C3D38642D14DE7253DE01C4AE2C39D" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_ED4CEDBD3A2DD5F0A81BE01C4AE2EA24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_A9ECCEE880C832E6C1E8E01C4AE3EF64" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_C9C3D38642D14DE7253DE01C4AE2C39D" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_A9ECCEE880C832E6C1E8E01C4AE3EF64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_6C47F326EB6E6C81305FE01C4AE3B8B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueAbstract_C9C3D38642D14DE7253DE01C4AE2C39D" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_6C47F326EB6E6C81305FE01C4AE3B8B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_AB1847CA551732B4C378E01C4AE31479" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_AB1847CA551732B4C378E01C4AE31479" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_D8DF74088E5FBC66CF6AE01C4AE3A9CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_AB1847CA551732B4C378E01C4AE31479" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_D8DF74088E5FBC66CF6AE01C4AE3A9CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_58EAA887F8885661A0C6E01C4AE3B326" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_AB1847CA551732B4C378E01C4AE31479" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_58EAA887F8885661A0C6E01C4AE3B326" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_2CE398C9EB6D990A4C8BE01C4AE31E29" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_AB1847CA551732B4C378E01C4AE31479" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_2CE398C9EB6D990A4C8BE01C4AE31E29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_DD6A86E0F47CC9E5466EE01C4AE4EB57" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_DD6A86E0F47CC9E5466EE01C4AE4EB57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_4020BADB77FBEED18941E01C4AE4FCB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_DD6A86E0F47CC9E5466EE01C4AE4EB57" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_4020BADB77FBEED18941E01C4AE4FCB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_A94A02B7C6C0EAF86293E01C4AE48197" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_DD6A86E0F47CC9E5466EE01C4AE4EB57" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_A94A02B7C6C0EAF86293E01C4AE48197" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_AAFE9059771A2C8BF4A5E01C4AE4BD5A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_DD6A86E0F47CC9E5466EE01C4AE4EB57" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_AAFE9059771A2C8BF4A5E01C4AE4BD5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_FE6AAF703FCECAC9D0BBE01C4AE4CA01" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_FE6AAF703FCECAC9D0BBE01C4AE4CA01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_E22AC05FBE1111298E07E01C4AE56092" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_FE6AAF703FCECAC9D0BBE01C4AE4CA01" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_E22AC05FBE1111298E07E01C4AE56092" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_796D1037D6BD03132440E01C4AE5EEE7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_FE6AAF703FCECAC9D0BBE01C4AE4CA01" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_796D1037D6BD03132440E01C4AE5EEE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_CCD3CEFFA7014F96B2D8E01C4AE5418E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_FE6AAF703FCECAC9D0BBE01C4AE4CA01" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_CCD3CEFFA7014F96B2D8E01C4AE5418E" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract" xlink:label="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_5308B4AEC55B9C9D018EE01C4AE5B459" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_5308B4AEC55B9C9D018EE01C4AE5B459" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_6631EAC9124DE8AC6102E01C4AE5E986" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_5308B4AEC55B9C9D018EE01C4AE5B459" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_6631EAC9124DE8AC6102E01C4AE5E986" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_CA693483FD8FB172B6BAE01C4AE656A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_5308B4AEC55B9C9D018EE01C4AE5B459" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_CA693483FD8FB172B6BAE01C4AE656A3" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_0E3952C5E508F6722C7FE01C4AE6787D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_5308B4AEC55B9C9D018EE01C4AE5B459" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_0E3952C5E508F6722C7FE01C4AE6787D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_144485DE2B5B2345F685E01C4AE6846D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems_69FFF12BBE3D5F10F408E01C4AE2D72E" xlink:to="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_144485DE2B5B2345F685E01C4AE6846D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_0244963CB9CE1720B3F9E01C4AE60B21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_144485DE2B5B2345F685E01C4AE6846D" xlink:to="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_0244963CB9CE1720B3F9E01C4AE60B21" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_C051B7FD3F27CBF63612E01C4AE67D0D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_144485DE2B5B2345F685E01C4AE6846D" xlink:to="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_C051B7FD3F27CBF63612E01C4AE67D0D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_BD275AA2403B32313FFDE01C4AE77507" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrc_MarketableSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_144485DE2B5B2345F685E01C4AE6846D" xlink:to="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_BD275AA2403B32313FFDE01C4AE77507" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLosses" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_A027631770A609F2B60DE01C4A16DEBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_A027631770A609F2B60DE01C4A16DEBB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0257BFC1A681CB8B60F1E01C4A174C6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_A027631770A609F2B60DE01C4A16DEBB" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0257BFC1A681CB8B60F1E01C4A174C6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0257BFC1A681CB8B60F1E01C4A174C6D" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0257BFC1A681CB8B60F1E01C4A174C6D" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_E165FCA95EA398658767E01C4A17B298" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_E165FCA95EA398658767E01C4A17B298" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_F037DB24AFCD679E461AE01C4A176FC6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_F037DB24AFCD679E461AE01C4A176FC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_7FE01BB8F81F50F215F2E01C4A18AADA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_7FE01BB8F81F50F215F2E01C4A18AADA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_FCDD67F39B7ED574BA60E01C4A18333B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_FCDD67F39B7ED574BA60E01C4A18333B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnallocatedFinancingReceivablesMember" xlink:label="loc_us-gaap_UnallocatedFinancingReceivablesMember_2BC212E4D08DD02F5157E01C4A18B3F8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_93C9553AD0FA30DE1615E01C4A17881C" xlink:to="loc_us-gaap_UnallocatedFinancingReceivablesMember_2BC212E4D08DD02F5157E01C4A18B3F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_CF54088B7A278FC6B365E01C4A18594E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_A027631770A609F2B60DE01C4A16DEBB" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_CF54088B7A278FC6B365E01C4A18594E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_CF54088B7A278FC6B365E01C4A18594E" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_CF54088B7A278FC6B365E01C4A18594E" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_04C424E2C2E773F61BA2E01C4A182A2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_bmrc_CommercialAndIndustrialMember_04C424E2C2E773F61BA2E01C4A182A2E" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_379DB579DF17F7A978E8E01C4A19F28C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_379DB579DF17F7A978E8E01C4A19F28C" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_9D7267C7099CE30BC6DEE01C4A190684" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_9D7267C7099CE30BC6DEE01C4A190684" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_F2A296451580E8788522E01C4A19EEF3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_us-gaap_ConstructionLoansMember_F2A296451580E8788522E01C4A19EEF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_DFFC34651080A2CCADDCE01C4A1A2303" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_us-gaap_HomeEquityLoanMember_DFFC34651080A2CCADDCE01C4A1A2303" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_240F5277C18160DD025CE01C4A1AC63A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_bmrc_OtherResidentialLoanMember_240F5277C18160DD025CE01C4A1AC63A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_ED3C120543B5C7BD1202E01C4A1A4AB6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AAE1F629D44042C55BF3E01C4A18BA2A" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_ED3C120543B5C7BD1202E01C4A1A4AB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusAxis" xlink:label="loc_us-gaap_CreditLossStatusAxis_A9BF94EE5C887D3F8A2AE01C4A1A61E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_A027631770A609F2B60DE01C4A16DEBB" xlink:to="loc_us-gaap_CreditLossStatusAxis_A9BF94EE5C887D3F8A2AE01C4A1A61E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusDomain" xlink:label="loc_us-gaap_CreditLossStatusDomain_F2CFEE55FC2746F3255DE01C4A1AB15A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditLossStatusAxis_A9BF94EE5C887D3F8A2AE01C4A1A61E2" xlink:to="loc_us-gaap_CreditLossStatusDomain_F2CFEE55FC2746F3255DE01C4A1AB15A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusDomain" xlink:label="loc_us-gaap_CreditLossStatusDomain_F2CFEE55FC2746F3255DE01C4A1AB15A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditLossStatusAxis_A9BF94EE5C887D3F8A2AE01C4A1A61E2" xlink:to="loc_us-gaap_CreditLossStatusDomain_F2CFEE55FC2746F3255DE01C4A1AB15A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember" xlink:label="loc_us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember_B7BBD657DA8CAFA6CD1EE01C4A1BCB89" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditLossStatusDomain_F2CFEE55FC2746F3255DE01C4A1AB15A" xlink:to="loc_us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember_B7BBD657DA8CAFA6CD1EE01C4A1BCB89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRollForward" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableAllowance" xlink:label="loc_us-gaap_LoansAndLeasesReceivableAllowance_8E5723F6FA5B59CCCA68E01C4A1B94AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_8E5723F6FA5B59CCCA68E01C4A1B94AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_F290D87D101F0082E777E01C4A1CF5E6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_F290D87D101F0082E777E01C4A1CF5E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_A00883F2E6BE590F99A6E01C4A1C0D27" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_A00883F2E6BE590F99A6E01C4A1C0D27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts_123653BA5BB87B188C74E01C4A1C326C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_FFBD229A407BB78EB94BE01C4A1B9147" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts_123653BA5BB87B188C74E01C4A1C326C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_E573DD8ECEC1D7DE0CB3E01C4A1CDFEF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_E573DD8ECEC1D7DE0CB3E01C4A1CDFEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_DA993F47B4533B5700F4E01C4A1C9066" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_DA993F47B4533B5700F4E01C4A1C9066" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_DDDED6BFF03C9F67C6CAE01C4A1D44C1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_DDDED6BFF03C9F67C6CAE01C4A1D44C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_826183CAAF559CE3A302E01C4A1D51D3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_826183CAAF559CE3A302E01C4A1D51D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_E2681CAA801F8EB6A268E01C4A1DA5FE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_E2681CAA801F8EB6A268E01C4A1DA5FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_DCB3E20C262BACB511FFE01C4A1D3F96" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_NotesReceivableNet_DCB3E20C262BACB511FFE01C4A1D3F96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_1B09BE4B47BB6B04033DE01C4A1D6147" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_1B09BE4B47BB6B04033DE01C4A1D6147" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToTotalLoans" xlink:label="loc_bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToTotalLoans_B7BC6FA0171DE7F218AAE01C4A1E96DD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToTotalLoans_B7BC6FA0171DE7F218AAE01C4A1E96DD" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToNonAccrualLoans" xlink:label="loc_bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToNonAccrualLoans_AB723BCD6D0625C6192FE01C4A1EAB40" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_9ECE5E7FD1C709416673E01C4A1B7CCF" xlink:to="loc_bmrc_LoansAndLeasesReceivableRatioOfAllowanceForLoanLossesToNonAccrualLoans_AB723BCD6D0625C6192FE01C4A1EAB40" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_EEB01CEB4FCD3520193CE8622FC2D6F1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_EEB01CEB4FCD3520193CE8622FC2D6F1" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3363172D861421793DB4E8622FBB7A28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3363172D861421793DB4E8622FBB7A28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3363172D861421793DB4E8622FBB7A28" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_3363172D861421793DB4E8622FBB7A28" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_3379C90C2A633BF55FD4E8622FBC989C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_3379C90C2A633BF55FD4E8622FBC989C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_AA98C6F9F6DB98EAADC3E8622FBC74BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_AA98C6F9F6DB98EAADC3E8622FBC74BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_965A1859D9B90347328CE8622FBCED3C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_965A1859D9B90347328CE8622FBCED3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_981FE359EBE794EA2ACAE8622FBDAF37" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_EF24B7595416353A5B62E8622FBB1E61" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_981FE359EBE794EA2ACAE8622FBDAF37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusAxis" xlink:label="loc_us-gaap_CreditLossStatusAxis_9C6A939EF6276A9798D1E8622FC15149" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:to="loc_us-gaap_CreditLossStatusAxis_9C6A939EF6276A9798D1E8622FC15149" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusDomain" xlink:label="loc_us-gaap_CreditLossStatusDomain_EA514323F37DF291B3D6E8622FC1ECBB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditLossStatusAxis_9C6A939EF6276A9798D1E8622FC15149" xlink:to="loc_us-gaap_CreditLossStatusDomain_EA514323F37DF291B3D6E8622FC1ECBB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditLossStatusDomain" xlink:label="loc_us-gaap_CreditLossStatusDomain_EA514323F37DF291B3D6E8622FC1ECBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditLossStatusAxis_9C6A939EF6276A9798D1E8622FC15149" xlink:to="loc_us-gaap_CreditLossStatusDomain_EA514323F37DF291B3D6E8622FC1ECBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember" xlink:label="loc_us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember_44684A8D0282061B50B5E8622FC28D38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditLossStatusDomain_EA514323F37DF291B3D6E8622FC1ECBB" xlink:to="loc_us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember_44684A8D0282061B50B5E8622FC28D38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D12D4D9033D685D20FAAE8622FBD96AC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D12D4D9033D685D20FAAE8622FBD96AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D12D4D9033D685D20FAAE8622FBD96AC" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D12D4D9033D685D20FAAE8622FBD96AC" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_27D2C2BACED8DE7CA7DCE8622FBE16AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_bmrc_CommercialAndIndustrialMember_27D2C2BACED8DE7CA7DCE8622FBE16AB" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_6BC2D11F05E078590082E8622FBF6FE2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_6BC2D11F05E078590082E8622FBF6FE2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_7B0BFDE9528C9A738ABEE8622FBFFE16" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_7B0BFDE9528C9A738ABEE8622FBFFE16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_635228FCD57BBADD65D2E8622FBFB309" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_us-gaap_ConstructionLoansMember_635228FCD57BBADD65D2E8622FBFB309" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_5F54D155961744A43D35E8622FBF152B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_us-gaap_HomeEquityLoanMember_5F54D155961744A43D35E8622FBF152B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_6A3A799F3BD42E6FA120E8622FBF3E48" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_bmrc_OtherResidentialLoanMember_6A3A799F3BD42E6FA120E8622FBF3E48" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_171D3E1C40744947040AE8622FC0D124" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7EED83151BBE92D0AAB9E8622FBD739B" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_171D3E1C40744947040AE8622FC0D124" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentAxis" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_55EC78A14CBD4A3F9E40E8622FC0776B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_B52E91F9F25A33F4329AE8622FBAA7D4" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_55EC78A14CBD4A3F9E40E8622FC0776B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_55EC78A14CBD4A3F9E40E8622FC0776B" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_55EC78A14CBD4A3F9E40E8622FC0776B" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PassMember" xlink:label="loc_us-gaap_PassMember_CC8C929B7288C437D92BE8622FC07B78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8" xlink:to="loc_us-gaap_PassMember_CC8C929B7288C437D92BE8622FC07B78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SpecialMentionMember" xlink:label="loc_us-gaap_SpecialMentionMember_EAD5820855C5E0248BFAE8622FC10413" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8" xlink:to="loc_us-gaap_SpecialMentionMember_EAD5820855C5E0248BFAE8622FC10413" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubstandardMember" xlink:label="loc_us-gaap_SubstandardMember_BA90139EBC1999E404DDE8622FC13813" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_64680B6C213B4193242DE8622FC04BD8" xlink:to="loc_us-gaap_SubstandardMember_BA90139EBC1999E404DDE8622FC13813" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LoansAndLeasesReceivableNetOfDeferredIncomeExcludingPurchasedCreditImpairedLoans" xlink:label="loc_bmrc_LoansAndLeasesReceivableNetOfDeferredIncomeExcludingPurchasedCreditImpairedLoans_D7252AFD64CC393F1497E8622FC30DC3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_EEB01CEB4FCD3520193CE8622FC2D6F1" xlink:to="loc_bmrc_LoansAndLeasesReceivableNetOfDeferredIncomeExcludingPurchasedCreditImpairedLoans_D7252AFD64CC393F1497E8622FC30DC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_F30DC7EFE426426D5BF8E8622FC3F217" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_EEB01CEB4FCD3520193CE8622FC2D6F1" xlink:to="loc_us-gaap_NotesReceivableNet_F30DC7EFE426426D5BF8E8622FC3F217" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_090A1CB78947A9994912E8622FC3BC28" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_EEB01CEB4FCD3520193CE8622FC2D6F1" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_090A1CB78947A9994912E8622FC3BC28" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableImpairedLineItems" xlink:label="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfImpairedFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_136E3F51ED07CEA8D791E0FBA2973E00" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_136E3F51ED07CEA8D791E0FBA2973E00" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_A9C8F8DD414307C860DEE0FBA2970C24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_136E3F51ED07CEA8D791E0FBA2973E00" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_A9C8F8DD414307C860DEE0FBA2970C24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_A9C8F8DD414307C860DEE0FBA2970C24" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_A9C8F8DD414307C860DEE0FBA2970C24" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_8A919810D9F1F75216BEE0FBA297E7E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_8A919810D9F1F75216BEE0FBA297E7E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_B0ADA101F8C492D4F9D3E0FBA298DA05" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_B0ADA101F8C492D4F9D3E0FBA298DA05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_E7BC6855144938D61889E0FBA29846B5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_E7BC6855144938D61889E0FBA29846B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_F1F3557248A938F36A2AE0FBA2981836" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_017F6F53B0EA53556817E0FBA297D2A9" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_F1F3557248A938F36A2AE0FBA2981836" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_59EA4AD087607F89ECAAE0FBA298DA80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_136E3F51ED07CEA8D791E0FBA2973E00" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_59EA4AD087607F89ECAAE0FBA298DA80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_59EA4AD087607F89ECAAE0FBA298DA80" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_59EA4AD087607F89ECAAE0FBA298DA80" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_7C3AD53DF1D3CAC28D11E0FBA29991A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_bmrc_CommercialAndIndustrialMember_7C3AD53DF1D3CAC28D11E0FBA29991A2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_3B6DE82DDCBD32E3CECCE0FBA29987E4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_3B6DE82DDCBD32E3CECCE0FBA29987E4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_7C9EE70ADC3F654BFB53E0FBA299247E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_7C9EE70ADC3F654BFB53E0FBA299247E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_8C38C494CA77E5C00A79E0FBA29AC9C3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_us-gaap_ConstructionLoansMember_8C38C494CA77E5C00A79E0FBA29AC9C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_A9C70E3B6E146174F130E0FBA29AD2BE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_us-gaap_HomeEquityLoanMember_A9C70E3B6E146174F130E0FBA29AD2BE" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_B671D87A28430D253253E0FBA29A28A4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_bmrc_OtherResidentialLoanMember_B671D87A28430D253253E0FBA29A28A4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_B56FE49DBB558A5ECC50E0FBA29AAD05" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_1DECDE51628B036F6FABE0FBA29948FD" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_B56FE49DBB558A5ECC50E0FBA29AAD05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract_F59F58AF2C01D6A92613E0FBA29B26B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract_F59F58AF2C01D6A92613E0FBA29B26B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_FBF531A232897FDADA2EE0FBA29B4634" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract_F59F58AF2C01D6A92613E0FBA29B26B6" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_FBF531A232897FDADA2EE0FBA29B4634" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_56C0FE2C745F53DB7C00E0FBA29CAD0F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract_F59F58AF2C01D6A92613E0FBA29B26B6" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_56C0FE2C745F53DB7C00E0FBA29CAD0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_E103924C56939FAE6614E0FBA29CE7DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract_F59F58AF2C01D6A92613E0FBA29B26B6" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_E103924C56939FAE6614E0FBA29CE7DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_74988D2F924A35B6F1D3E0FBA29D63D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_74988D2F924A35B6F1D3E0FBA29D63D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRelatedAllowance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_A7192251C1DB949236DAE0FBA29DAC89" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_A7192251C1DB949236DAE0FBA29DAC89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_349FD87982335462F8A5E0FBA29DECD6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_349FD87982335462F8A5E0FBA29DECD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_A8AA0D2915D71D28DF3BE0FBA29DDFAA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_A8AA0D2915D71D28DF3BE0FBA29DDFAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_88442D68A549C54655C2E0FBA29D9BE7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_88442D68A549C54655C2E0FBA29D9BE7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_LoansAndLeasesReceivableImpairedChargeoffs" xlink:label="loc_bmrc_LoansAndLeasesReceivableImpairedChargeoffs_D6E30BE1290D7F79663BE0FBA29DF4D2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_bmrc_LoansAndLeasesReceivableImpairedChargeoffs_D6E30BE1290D7F79663BE0FBA29DF4D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend" xlink:label="loc_us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend_9EB7B77A1CC82DF9D691E0FBA29D0CEB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_FA156EA02D78BD4CCB1EE0FBA29BAEB9" xlink:to="loc_us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend_9EB7B77A1CC82DF9D691E0FBA29D0CEB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_27C13B903097568182ECDF2EF2680234" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_27C13B903097568182ECDF2EF2680234" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_B870DB9388175EA0BE52B47207AB2FD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_27C13B903097568182ECDF2EF2680234" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_B870DB9388175EA0BE52B47207AB2FD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_194C631DABD49E7308C480E8A1392628_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_B870DB9388175EA0BE52B47207AB2FD1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_194C631DABD49E7308C480E8A1392628_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_B870DB9388175EA0BE52B47207AB2FD1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_2838DEAA815D5D599A8196A5FC090D40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_2838DEAA815D5D599A8196A5FC090D40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_FEBBEA0ED3EB5E1496D8E0681A6E8A9D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_FEBBEA0ED3EB5E1496D8E0681A6E8A9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_B8C23EA8B47D53B986C926CF9E443CD5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_B8C23EA8B47D53B986C926CF9E443CD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_895AEAFB46B9517C8584B3F26A59497C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B4829987F007555C9EFB854BB7BDA4D8" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_895AEAFB46B9517C8584B3F26A59497C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8462EED6C6CF5DF78E12FE871558BCE3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_27C13B903097568182ECDF2EF2680234" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8462EED6C6CF5DF78E12FE871558BCE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_BF4BDE46CBE34232A41880E8A13B99DE_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8462EED6C6CF5DF78E12FE871558BCE3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_BF4BDE46CBE34232A41880E8A13B99DE_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8462EED6C6CF5DF78E12FE871558BCE3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_2450BB6FE9FE5D38882A2C2345D66094" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_bmrc_CommercialAndIndustrialMember_2450BB6FE9FE5D38882A2C2345D66094" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_7C68575B3E1050768389EAA579B84918" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_7C68575B3E1050768389EAA579B84918" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_49778D9C22F752BA8F5BE38C96F9BDAC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_49778D9C22F752BA8F5BE38C96F9BDAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_B00B2156625952B2BE461DC3155C1ECB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_us-gaap_ConstructionLoansMember_B00B2156625952B2BE461DC3155C1ECB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_C492191B9C2B52878DFF61248464F5D2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_us-gaap_HomeEquityLoanMember_C492191B9C2B52878DFF61248464F5D2" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_CFFB13E6F26D5A26B10FB2C2B12D1887" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_bmrc_OtherResidentialLoanMember_CFFB13E6F26D5A26B10FB2C2B12D1887" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_DF465F69F0BE5EEF9FCD795799D27F35" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F3C543D7D7515057BEB8C3C6112D510E" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_DF465F69F0BE5EEF9FCD795799D27F35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_7B0C26DA769652FBA3B23C390A020712" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_27C13B903097568182ECDF2EF2680234" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_7B0C26DA769652FBA3B23C390A020712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_7703AD44E3326392767B80E8A13D9808_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_7B0C26DA769652FBA3B23C390A020712" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_7703AD44E3326392767B80E8A13D9808_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_90889527C37E5A78A0294671E53342FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_7B0C26DA769652FBA3B23C390A020712" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_90889527C37E5A78A0294671E53342FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivables30To59DaysPastDueMember" xlink:label="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_73BDAC843A7C5F44A4F8B59F6B873FA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_90889527C37E5A78A0294671E53342FD" xlink:to="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_73BDAC843A7C5F44A4F8B59F6B873FA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivables60To89DaysPastDueMember" xlink:label="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_C4BA1D93023B5DF8898068598323E23C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_90889527C37E5A78A0294671E53342FD" xlink:to="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_C4BA1D93023B5DF8898068598323E23C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_889D22AB376250F7985C4E68412AAF11" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_90889527C37E5A78A0294671E53342FD" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_889D22AB376250F7985C4E68412AAF11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_F7008B922B83501082979A2C7652151F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_F7008B922B83501082979A2C7652151F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_0BCEC22388875640B11FE56AE2488702" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_0BCEC22388875640B11FE56AE2488702" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_81DF4D623C9F53BC842CCB1DE26C93A2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_81DF4D623C9F53BC842CCB1DE26C93A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_DBAAFF8A35C8521CA95C3A0213B2C627" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_DBAAFF8A35C8521CA95C3A0213B2C627" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CertainLoansAcquiredinTransferNotAccountedforasDebtSecuritiesNumberOfLoansWithUnpaidBalances" xlink:label="loc_bmrc_CertainLoansAcquiredinTransferNotAccountedforasDebtSecuritiesNumberOfLoansWithUnpaidBalances_F61FEDCBE2245873A9177C110AA51C6D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_bmrc_CertainLoansAcquiredinTransferNotAccountedforasDebtSecuritiesNumberOfLoansWithUnpaidBalances_F61FEDCBE2245873A9177C110AA51C6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesOutstandingBalance" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesOutstandingBalance_479C75F101C65DD4BCC596C4D14F6641" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesOutstandingBalance_479C75F101C65DD4BCC596C4D14F6641" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceNonaccrualStatus" xlink:label="loc_bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceNonaccrualStatus_F40398E25AC7599884B3D329B398651B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceNonaccrualStatus_F40398E25AC7599884B3D329B398651B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceAccrualStatus" xlink:label="loc_bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceAccrualStatus_13701BA390805D58984E9F8C86599710" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_bmrc_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalanceAccrualStatus_13701BA390805D58984E9F8C86599710" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_108846915F9D5C5CA24982099D729311" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_108846915F9D5C5CA24982099D729311" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDeferredIncome_FBD89802500E55418B78851466650777" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDeferredIncome_FBD89802500E55418B78851466650777" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CertainLoansAcquiredinTransferWithoutEvidenceofDeterioratedCreditUnaccretedPurchaseDiscounts" xlink:label="loc_bmrc_CertainLoansAcquiredinTransferWithoutEvidenceofDeterioratedCreditUnaccretedPurchaseDiscounts_C9955E3B3C515717809ABDB3EA71FCDE" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_96F452EFCBF050B2B9AA2C1C10E79DF3" xlink:to="loc_bmrc_CertainLoansAcquiredinTransferWithoutEvidenceofDeterioratedCreditUnaccretedPurchaseDiscounts_C9955E3B3C515717809ABDB3EA71FCDE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems" xlink:label="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_215FFF5141E35174BA78BFA9CAE6BADF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable" xlink:label="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_1BDD2743E48155E983ED18A054C5544E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_215FFF5141E35174BA78BFA9CAE6BADF" xlink:to="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_1BDD2743E48155E983ED18A054C5544E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_D4A61F8C5A80547499F47660F03DBB8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralTable_1BDD2743E48155E983ED18A054C5544E" xlink:to="loc_us-gaap_FinancialInstrumentAxis_D4A61F8C5A80547499F47660F03DBB8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F1EFD7F629FF9632ADBA80E8A2DC2C2F_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_D4A61F8C5A80547499F47660F03DBB8E" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F1EFD7F629FF9632ADBA80E8A2DC2C2F_8B1CEBAFD9AD5083B99312E49F57FAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9FB11E82ED3152D6A714A5B6B1467016" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_D4A61F8C5A80547499F47660F03DBB8E" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9FB11E82ED3152D6A714A5B6B1467016" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_9F8DA618EB845B02B0B31ECAF40E5843" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9FB11E82ED3152D6A714A5B6B1467016" xlink:to="loc_bmrc_OtherResidentialLoanMember_9F8DA618EB845B02B0B31ECAF40E5843" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedForFederalHomeLoanBankDebt" xlink:label="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedForFederalHomeLoanBankDebt_8D69057AF74E51A799A16F7738700001" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_215FFF5141E35174BA78BFA9CAE6BADF" xlink:to="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedForFederalHomeLoanBankDebt_8D69057AF74E51A799A16F7738700001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedAsCollateral" xlink:label="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedAsCollateral_3EFF9421D51951238335432A33A15EE5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralLineItems_215FFF5141E35174BA78BFA9CAE6BADF" xlink:to="loc_us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedLoansReceivablePledgedAsCollateral_3EFF9421D51951238335432A33A15EE5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_6197BF6F97F09BC28B1CDB25AE74B4D5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_FE58F473E9A53891AD98DB25AE71A802" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_6197BF6F97F09BC28B1CDB25AE74B4D5" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_FE58F473E9A53891AD98DB25AE71A802" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DA56393A8818A22C5185DB25AE71AE8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_FE58F473E9A53891AD98DB25AE71A802" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DA56393A8818A22C5185DB25AE71AE8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DA56393A8818A22C5185DB25AE71AE8B" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DA56393A8818A22C5185DB25AE71AE8B" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_6B55C3599575E80D6926DB25AE71999C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_6B55C3599575E80D6926DB25AE71999C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_1EF08AF8D3D5CD65BC8DDB25AE72877D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_1EF08AF8D3D5CD65BC8DDB25AE72877D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_172FF00CA6E50D010766DB25AE72B721" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_7BE5D6B2A2E059BD12BADB25AE718A01" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_172FF00CA6E50D010766DB25AE72B721" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A3B7C6EC1CA0416061C1DB25AE72101E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_FE58F473E9A53891AD98DB25AE71A802" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A3B7C6EC1CA0416061C1DB25AE72101E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A3B7C6EC1CA0416061C1DB25AE72101E" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A3B7C6EC1CA0416061C1DB25AE72101E" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_6B451C0C742E4FCE38DCDB25AE73941E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:to="loc_bmrc_CommercialAndIndustrialMember_6B451C0C742E4FCE38DCDB25AE73941E" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_9DB6A38307CB8EDF884EDB25AE73C716" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_9DB6A38307CB8EDF884EDB25AE73C716" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_93AF939A092295DE13CCDB25AE73A01B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_93AF939A092295DE13CCDB25AE73A01B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_B9634CA09769F33453F8DB25AE74BB7F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_468EE97EB9331EF06B4ADB25AE725212" xlink:to="loc_us-gaap_HomeEquityLoanMember_B9634CA09769F33453F8DB25AE74BB7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfBusinessesAcquired" xlink:label="loc_us-gaap_NumberOfBusinessesAcquired_9F96E2A54FFBCD00927DDB25AE744CA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_6197BF6F97F09BC28B1CDB25AE74B4D5" xlink:to="loc_us-gaap_NumberOfBusinessesAcquired_9F96E2A54FFBCD00927DDB25AE744CA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAbstract" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAbstract_61F350A5D8C85F13D2FFDB25AE74506C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_6197BF6F97F09BC28B1CDB25AE74B4D5" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAbstract_61F350A5D8C85F13D2FFDB25AE74506C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalance" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalance_F55E59B5C8970C64EDCCDB25AE748AFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAbstract_61F350A5D8C85F13D2FFDB25AE74506C" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesOutstandingBalance_F55E59B5C8970C64EDCCDB25AE748AFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesCarryingAmountNet" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesCarryingAmountNet_BE45464295EE7A79D016DB25AE75FE6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAbstract_61F350A5D8C85F13D2FFDB25AE74506C" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesCarryingAmountNet_BE45464295EE7A79D016DB25AE75FE6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldMovementScheduleRollForward" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldMovementScheduleRollForward_1C88DF211FF573432436DB25AE75B696" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_6197BF6F97F09BC28B1CDB25AE74B4D5" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldMovementScheduleRollForward_1C88DF211FF573432436DB25AE75B696" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYield" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYield_8ADFD9E729ABABECF70CDB25AE753920" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldMovementScheduleRollForward_1C88DF211FF573432436DB25AE75B696" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYield_8ADFD9E729ABABECF70CDB25AE753920" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldAccretion" xlink:label="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldAccretion_E3D2CE1F0FAD910B7F6FDB25AE768E19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldMovementScheduleRollForward_1C88DF211FF573432436DB25AE75B696" xlink:to="loc_us-gaap_CertainLoansAcquiredInTransferNotAccountedForAsDebtSecuritiesAccretableYieldAccretion_E3D2CE1F0FAD910B7F6FDB25AE768E19" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_6D0E87F3EA40155018BAA6EC5B82C9A6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_D037389B2FF017775ED5A6EC5B81EB2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_6D0E87F3EA40155018BAA6EC5B82C9A6" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_D037389B2FF017775ED5A6EC5B81EB2D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6BD131DC51616D9C3F09A6EC5B816882" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_D037389B2FF017775ED5A6EC5B81EB2D" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6BD131DC51616D9C3F09A6EC5B816882" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_EFAB65952B52210B4E4CA6EC5B82A8BE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6BD131DC51616D9C3F09A6EC5B816882" xlink:to="loc_us-gaap_RelatedPartyDomain_EFAB65952B52210B4E4CA6EC5B82A8BE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_EFAB65952B52210B4E4CA6EC5B82A8BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6BD131DC51616D9C3F09A6EC5B816882" xlink:to="loc_us-gaap_RelatedPartyDomain_EFAB65952B52210B4E4CA6EC5B82A8BE" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DirectorsOfficersPrincipalShareholdersAndAssociatesMember" xlink:label="loc_bmrc_DirectorsOfficersPrincipalShareholdersAndAssociatesMember_79DF113BA84469D951AFA6EC5B8261D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_EFAB65952B52210B4E4CA6EC5B82A8BE" xlink:to="loc_bmrc_DirectorsOfficersPrincipalShareholdersAndAssociatesMember_79DF113BA84469D951AFA6EC5B8261D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableRelatedParties" xlink:label="loc_us-gaap_LoansAndLeasesReceivableRelatedParties_F20586AF7FFFB0024F58A6EC5B83C67A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_6D0E87F3EA40155018BAA6EC5B82C9A6" xlink:to="loc_us-gaap_LoansAndLeasesReceivableRelatedParties_F20586AF7FFFB0024F58A6EC5B83C67A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnusedCommitmentsToExtendCredit" xlink:label="loc_us-gaap_UnusedCommitmentsToExtendCredit_018C730767B531BDBE18A6EC5B836778" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_6D0E87F3EA40155018BAA6EC5B82C9A6" xlink:to="loc_us-gaap_UnusedCommitmentsToExtendCredit_018C730767B531BDBE18A6EC5B836778" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_9E141F7C69AE484C964BE53CCCC6C7CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_9E141F7C69AE484C964BE53CCCC6C7CF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8B84DAD8A6E5BEE82C59E53CCCC6E368" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_9E141F7C69AE484C964BE53CCCC6C7CF" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8B84DAD8A6E5BEE82C59E53CCCC6E368" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8B84DAD8A6E5BEE82C59E53CCCC6E368" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_8B84DAD8A6E5BEE82C59E53CCCC6E368" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_7B24992D697A3DC301F2E53CCCC70025" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_7B24992D697A3DC301F2E53CCCC70025" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_7FE8BF14D67716A49084E53CCCC760D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_7FE8BF14D67716A49084E53CCCC760D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_12DE22F61D2530071766E53CCCC7905F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_12DE22F61D2530071766E53CCCC7905F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_3E6FE4391F9068A066F9E53CCCC7B88D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_C82B779331A885808B2CE53CCCC6C528" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_3E6FE4391F9068A066F9E53CCCC7B88D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8DD7A27B01850C393960E53CCCC89DE5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_9E141F7C69AE484C964BE53CCCC6C7CF" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8DD7A27B01850C393960E53CCCC89DE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8DD7A27B01850C393960E53CCCC89DE5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8DD7A27B01850C393960E53CCCC89DE5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_D71AB0EB0C1887600E6BE53CCCC88B60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_bmrc_CommercialAndIndustrialMember_D71AB0EB0C1887600E6BE53CCCC88B60" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanOwnerOccupiedMember" xlink:label="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_6695093881011D2F50CCE53CCCC87F4B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_bmrc_CommercialRealEstateLoanOwnerOccupiedMember_6695093881011D2F50CCE53CCCC87F4B" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialRealEstateLoanInvestorMember" xlink:label="loc_bmrc_CommercialRealEstateLoanInvestorMember_E161F958A085A96E9C7FE53CCCC8E074" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_bmrc_CommercialRealEstateLoanInvestorMember_E161F958A085A96E9C7FE53CCCC8E074" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_CA0A9079EAEEA61238B7E53CCCC99826" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_us-gaap_ConstructionLoansMember_CA0A9079EAEEA61238B7E53CCCC99826" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_02D4BC7978FE08662777E53CCCC98913" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_us-gaap_HomeEquityLoanMember_02D4BC7978FE08662777E53CCCC98913" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherResidentialLoanMember" xlink:label="loc_bmrc_OtherResidentialLoanMember_63FD0C46DEABB3F4967CE53CCCC94ACE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_bmrc_OtherResidentialLoanMember_63FD0C46DEABB3F4967CE53CCCC94ACE" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_7072C2C9801A3417A958E53CCCC9C30A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_06100C494EFF8B3CA960E53CCCC8450D" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_7072C2C9801A3417A958E53CCCC9C30A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringNumberOfContracts" xlink:label="loc_bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringNumberOfContracts_0F961C474B504E4C8638E53CCCC9CCBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringNumberOfContracts_0F961C474B504E4C8638E53CCCC9CCBE" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringRecordedInvestment" xlink:label="loc_bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringRecordedInvestment_0254945CDEF2689CE5A2E53CCCCA9121" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_bmrc_FinancingReceivableModificationsRemovalFromTroubledDebtRestructuringRecordedInvestment_0254945CDEF2689CE5A2E53CCCCA9121" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsRecordedInvestment" xlink:label="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_7FAAA30D20A9B201D659E53CCCCAAF78" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_7FAAA30D20A9B201D659E53CCCCAAF78" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatusQuantity" xlink:label="loc_bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatusQuantity_FF057A44BD3A77CD5F65E53CCCCAF312" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatusQuantity_FF057A44BD3A77CD5F65E53CCCCAF312" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatus" xlink:label="loc_bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatus_F6C867F1C5FC92C65B61E53CCCCAA36D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_bmrc_FinancingReceivableModificationsRecordedInvestmentNonaccrualStatus_F6C867F1C5FC92C65B61E53CCCCAA36D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AcquiredLoansonTDRStatus" xlink:label="loc_bmrc_AcquiredLoansonTDRStatus_0AFB6C163A7DE23698A2E53CCCCB9D1C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_1294BFCA89EBAF19B583E53CCCC9E7BB" xlink:to="loc_bmrc_AcquiredLoansonTDRStatus_0AFB6C163A7DE23698A2E53CCCCB9D1C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_32F452DD10A46776400CE44946A2ACB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_32F452DD10A46776400CE44946A2ACB1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_95C1C6C8AD653DF5D78AE44946A20460" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_32F452DD10A46776400CE44946A2ACB1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_95C1C6C8AD653DF5D78AE44946A20460" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_95C1C6C8AD653DF5D78AE44946A20460" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_95C1C6C8AD653DF5D78AE44946A20460" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_2A7252C1837825BA8861E44946A3CC92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_2A7252C1837825BA8861E44946A3CC92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_A579F21BCA3C809CBECEE44946A353C9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_A579F21BCA3C809CBECEE44946A353C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_E4B23BBB80BB91C2A02AE44946A35347" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_64BA3A2108548AFDF2A7E44946A31EA8" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_E4B23BBB80BB91C2A02AE44946A35347" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A738B17B88500CE782F1E44946A47E7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_32F452DD10A46776400CE44946A2ACB1" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A738B17B88500CE782F1E44946A47E7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A738B17B88500CE782F1E44946A47E7A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A738B17B88500CE782F1E44946A47E7A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CommercialAndIndustrialMember" xlink:label="loc_bmrc_CommercialAndIndustrialMember_D961E1124BC78EE66D3EE44946A4E2DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7" xlink:to="loc_bmrc_CommercialAndIndustrialMember_D961E1124BC78EE66D3EE44946A4E2DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_658F283468429F4C4A25E44946A4C467" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7" xlink:to="loc_us-gaap_HomeEquityLoanMember_658F283468429F4C4A25E44946A4C467" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InstallmentAndOtherConsumerMember" xlink:label="loc_bmrc_InstallmentAndOtherConsumerMember_40108DF92DF6B22F209DE44946A590B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_371AC71AC1F081E54682E44946A475E7" xlink:to="loc_bmrc_InstallmentAndOtherConsumerMember_40108DF92DF6B22F209DE44946A590B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsNumberOfContracts2" xlink:label="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_936A881E446DEAD6B310E44946A54CAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_936A881E446DEAD6B310E44946A54CAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsPreModificationRecordedInvestment2" xlink:label="loc_us-gaap_FinancingReceivableModificationsPreModificationRecordedInvestment2_FC5F758DB652A94A5EF0E44946A5890F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_us-gaap_FinancingReceivableModificationsPreModificationRecordedInvestment2_FC5F758DB652A94A5EF0E44946A5890F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2" xlink:label="loc_us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2_8BD5CAE26FF2783BECC2E44946A5E70D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2_8BD5CAE26FF2783BECC2E44946A5E70D" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_FinancingReceivableModificationsContractsModifiedDuringPeriodRecordedInvestment" xlink:label="loc_bmrc_FinancingReceivableModificationsContractsModifiedDuringPeriodRecordedInvestment_AC96A38F632B8DA51C09E44946A503F4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_bmrc_FinancingReceivableModificationsContractsModifiedDuringPeriodRecordedInvestment_AC96A38F632B8DA51C09E44946A503F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1" xlink:label="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_ED12EC3FABDA020BC4B9E44946A6D18B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_D3C6DF6BA746F3A2DE0BE44946A50FA5" xlink:to="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_ED12EC3FABDA020BC4B9E44946A6D18B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandards" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandardsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/StockholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.bankofmarin.com/role/StockholdersEquityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_25A741713F33D45981C9E06B6C098667" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_25A741713F33D45981C9E06B6C098667" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_592669F015C82FDE862FE06B6C0A6E1E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_25A741713F33D45981C9E06B6C098667" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_592669F015C82FDE862FE06B6C0A6E1E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_592669F015C82FDE862FE06B6C0A6E1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_25A741713F33D45981C9E06B6C098667" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_592669F015C82FDE862FE06B6C0A6E1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_B10A3B129DBBC0BDCE60E06B6C0A2B59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_592669F015C82FDE862FE06B6C0A6E1E" xlink:to="loc_us-gaap_SubsequentEventMember_B10A3B129DBBC0BDCE60E06B6C0A2B59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_DBAB4FE98A3C70A07AE1E06B6C0A6100" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_DBAB4FE98A3C70A07AE1E06B6C0A6100" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_DBAB4FE98A3C70A07AE1E06B6C0A6100" xlink:to="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_DBAB4FE98A3C70A07AE1E06B6C0A6100" xlink:to="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_67834FA08BF1D0CC105CE06B6C0BF7BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74" xlink:to="loc_us-gaap_RetainedEarningsMember_67834FA08BF1D0CC105CE06B6C0BF7BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_E2F59BE7F280A1BAD35FE06B6C0BE767" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_90EB965C0027406A7F9FE06B6C0A3D74" xlink:to="loc_us-gaap_CommonStockMember_E2F59BE7F280A1BAD35FE06B6C0BE767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_A74DEF59397FC9945BDAE06B6C0B4C62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:to="loc_us-gaap_AwardTypeAxis_A74DEF59397FC9945BDAE06B6C0B4C62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_815E8F8FB2DFB506D322E06B6C0B32C2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_A74DEF59397FC9945BDAE06B6C0B4C62" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_815E8F8FB2DFB506D322E06B6C0B32C2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_815E8F8FB2DFB506D322E06B6C0B32C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_A74DEF59397FC9945BDAE06B6C0B4C62" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_815E8F8FB2DFB506D322E06B6C0B32C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_9D4FF1ADFB689411F1F3E06B6C0CD2A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_815E8F8FB2DFB506D322E06B6C0B32C2" xlink:to="loc_us-gaap_PerformanceSharesMember_9D4FF1ADFB689411F1F3E06B6C0CD2A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_3E0D178D091FE51EE78EE06B6C0C18E9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_003A454C44B5AC10B1ADE06B6C0999F1" xlink:to="loc_srt_RangeAxis_3E0D178D091FE51EE78EE06B6C0C18E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3E0D178D091FE51EE78EE06B6C0C18E9" xlink:to="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3E0D178D091FE51EE78EE06B6C0C18E9" xlink:to="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_0D32709EE75E4B09EB72E06B6C0C372B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62" xlink:to="loc_srt_MinimumMember_0D32709EE75E4B09EB72E06B6C0C372B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_622494F2214F57314368E06B6C0D9B37" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_65D4F703F2049CFA8AD0E06B6C0CBC62" xlink:to="loc_srt_MaximumMember_622494F2214F57314368E06B6C0D9B37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_91D7031E32A560B26981E06B6C0D873A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_91D7031E32A560B26981E06B6C0D873A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_A052BD45F78485D9D8D8E06B6C0D9A81" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_A052BD45F78485D9D8D8E06B6C0D9A81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_613D99A48871233162C0E06B6C0E21D3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_613D99A48871233162C0E06B6C0E21D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_EBB1D95AF425C9C8C55BE06B6C0E06E4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_EBB1D95AF425C9C8C55BE06B6C0E06E4" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SharesPaidForTaxWithholdingAndExercisingOptionsForShareBasedCompensation" xlink:label="loc_bmrc_SharesPaidForTaxWithholdingAndExercisingOptionsForShareBasedCompensation_BC7D1EB3F504309772D6E06B6C0EEFAA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_bmrc_SharesPaidForTaxWithholdingAndExercisingOptionsForShareBasedCompensation_BC7D1EB3F504309772D6E06B6C0EEFAA" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AdjustmentsRelatedToTaxWithholdingAndExerciseOfOptionsForShareBasedCompensation" xlink:label="loc_bmrc_AdjustmentsRelatedToTaxWithholdingAndExerciseOfOptionsForShareBasedCompensation_490912D4A6CF7D478A0CE06B6C0E9F6A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_bmrc_AdjustmentsRelatedToTaxWithholdingAndExerciseOfOptionsForShareBasedCompensation_490912D4A6CF7D478A0CE06B6C0E9F6A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice" xlink:label="loc_bmrc_SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice_1715AC2C2E92009DEBDBE06B6C0E6543" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_bmrc_SharebasedCompensationArrangementsbySharebasedPaymentAwardOptionsTaxWithholdingAndExercisesinPeriodWeightedAverageExercisePrice_1715AC2C2E92009DEBDBE06B6C0E6543" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect" xlink:label="loc_bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect_C08BEEE3F1514C7673ECE06B6C0E1E51" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_bmrc_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect_C08BEEE3F1514C7673ECE06B6C0E1E51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_5F088F4847C9F5EE84B5E06B6C0F2DCD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_5F088F4847C9F5EE84B5E06B6C0F2DCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_0677012C0661DC785ED5E06B6C0F74F9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_0677012C0661DC785ED5E06B6C0F74F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_5574D5FDFB0502E27988E06B6C0FABA1" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_82574C6A4E69BB4B7858E06B6C0D412F" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_5574D5FDFB0502E27988E06B6C0FABA1" xlink:type="arc" />
  </link:definitionLink>
</link:linkbase>
