<?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://bofiholding.com/role/Acquisitions" xlink:href="bofi-20180630.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AcquisitionsFairValueOfAssetsAcquiredDetails" xlink:href="bofi-20180630.xsd#AcquisitionsFairValueOfAssetsAcquiredDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AcquisitionsNarrativeDetails" xlink:href="bofi-20180630.xsd#AcquisitionsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AcquisitionsTables" xlink:href="bofi-20180630.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBank" xlink:href="bofi-20180630.xsd#AdvancesFromFederalHomeLoanBank" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankNarrativeDetails" xlink:href="bofi-20180630.xsd#AdvancesFromFederalHomeLoanBankNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankScheduledMaturitiesDetails" xlink:href="bofi-20180630.xsd#AdvancesFromFederalHomeLoanBankScheduledMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankTables" xlink:href="bofi-20180630.xsd#AdvancesFromFederalHomeLoanBankTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/CommitmentsAndContingencies" xlink:href="bofi-20180630.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:href="bofi-20180630.xsd#CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:href="bofi-20180630.xsd#CommitmentsAndContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/CommitmentsAndContingenciesTables" xlink:href="bofi-20180630.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedBalanceSheets" xlink:href="bofi-20180630.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="bofi-20180630.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="bofi-20180630.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="bofi-20180630.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="bofi-20180630.xsd#ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedStatementsOfIncome" xlink:href="bofi-20180630.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="bofi-20180630.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/Deposits" xlink:href="bofi-20180630.xsd#Deposits" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/DepositsScheduledMaturitiesOfTimeDepositsDetails" xlink:href="bofi-20180630.xsd#DepositsScheduledMaturitiesOfTimeDepositsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/DepositsSummaryOfDepositAccountsDetails" xlink:href="bofi-20180630.xsd#DepositsSummaryOfDepositAccountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/DepositsTables" xlink:href="bofi-20180630.xsd#DepositsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/DocumentAndEntityInformation" xlink:href="bofi-20180630.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/EarningsPerCommonShare" xlink:href="bofi-20180630.xsd#EarningsPerCommonShare" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/EarningsPerCommonShareCalculationOfBasicAndDilutedEpsDetails" xlink:href="bofi-20180630.xsd#EarningsPerCommonShareCalculationOfBasicAndDilutedEpsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/EarningsPerCommonShareTables" xlink:href="bofi-20180630.xsd#EarningsPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/EmployeeBenefitPlan" xlink:href="bofi-20180630.xsd#EmployeeBenefitPlan" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/EmployeeBenefitPlanDetails" xlink:href="bofi-20180630.xsd#EmployeeBenefitPlanDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValue" xlink:href="bofi-20180630.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" xlink:href="bofi-20180630.xsd#FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueAssetsMeasuredNonrecurringBasisDetails" xlink:href="bofi-20180630.xsd#FairValueAssetsMeasuredNonrecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueFairValueByBalanceSheetGroupingDetails" xlink:href="bofi-20180630.xsd#FairValueFairValueByBalanceSheetGroupingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueLevel3AssetsMeasuredOnRecurringBasisDetails" xlink:href="bofi-20180630.xsd#FairValueLevel3AssetsMeasuredOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueLevel3UnrealizedGainLossDetails" xlink:href="bofi-20180630.xsd#FairValueLevel3UnrealizedGainLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueLoansHeldForSaleDetails" xlink:href="bofi-20180630.xsd#FairValueLoansHeldForSaleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueNarrativeDetails" xlink:href="bofi-20180630.xsd#FairValueNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueQuantitativeInformationForLevel3FairValueMeasurmentsNonrecurringDetails" xlink:href="bofi-20180630.xsd#FairValueQuantitativeInformationForLevel3FairValueMeasurmentsNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueQuantitativeInformationForLevel3FairValueMeasurmentsRecurringDetails" xlink:href="bofi-20180630.xsd#FairValueQuantitativeInformationForLevel3FairValueMeasurmentsRecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FairValueTables" xlink:href="bofi-20180630.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FurnitureEquipmentAndSoftware" xlink:href="bofi-20180630.xsd#FurnitureEquipmentAndSoftware" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FurnitureEquipmentAndSoftwareDetails" xlink:href="bofi-20180630.xsd#FurnitureEquipmentAndSoftwareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/FurnitureEquipmentAndSoftwareTables" xlink:href="bofi-20180630.xsd#FurnitureEquipmentAndSoftwareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssets" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsActivityInGoodwillBalanceDetails" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssetsActivityInGoodwillBalanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsEstimatedFutureAmortizationExpenseOfAcquiredIntangibleAssetsDetails" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssetsEstimatedFutureAmortizationExpenseOfAcquiredIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsSummaryOfAcquiredIntangibleAssetsDetails" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssetsSummaryOfAcquiredIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsTables" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsWeightedAverageUsefulLifeOfAcquiredIntangibleAssetsDetails" xlink:href="bofi-20180630.xsd#GoodwillAndOtherIintangibleAssetsWeightedAverageUsefulLifeOfAcquiredIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxes" xlink:href="bofi-20180630.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesComponentsOfIncomeTaxesDetails" xlink:href="bofi-20180630.xsd#IncomeTaxesComponentsOfIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:href="bofi-20180630.xsd#IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesNarrativeDetails" xlink:href="bofi-20180630.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesNetDeferredTaxAssetDetails" xlink:href="bofi-20180630.xsd#IncomeTaxesNetDeferredTaxAssetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesTables" xlink:href="bofi-20180630.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="bofi-20180630.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLosses" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesActivityForAllowanceForLoanLossesDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesActivityForAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForCreditLossNarrativeDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForCreditLossNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByClassDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByPortfolioClassDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByPortfolioClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesCompositionOfLoansDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesCompositionOfLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesImpairedLoansDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansByClassModifiedAsTdrWithPreAndPostBalancesDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesLoansByClassModifiedAsTdrWithPreAndPostBalancesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansByCreditQualityIndicatorDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesLoansByCreditQualityIndicatorDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansIndividuallyEvaluatedForImpairmentDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesLoansIndividuallyEvaluatedForImpairmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansModifiedAsTdrByClassDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesLoansModifiedAsTdrByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansNarrativeDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesLoansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansNarrativeDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesPastDueLoansDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesPastDueLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesPerformingAndNonaccrualByClassAndSourceDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesPerformingAndNonaccrualByClassAndSourceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesTables" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesTroubledDebtRestructuringsByClassDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesTroubledDebtRestructuringsByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesUnpaidPrincipalBalanceForPerformingAndNonaccrualDetails" xlink:href="bofi-20180630.xsd#LoansLeasesAllowanceForLoanAndLeaseLossesUnpaidPrincipalBalanceForPerformingAndNonaccrualDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirements" xlink:href="bofi-20180630.xsd#MinimumRegulatoryCapitalRequirements" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirementsDetails" xlink:href="bofi-20180630.xsd#MinimumRegulatoryCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirementsTables" xlink:href="bofi-20180630.xsd#MinimumRegulatoryCapitalRequirementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OffBalanceSheetActivities" xlink:href="bofi-20180630.xsd#OffBalanceSheetActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OffBalanceSheetActivitiesDetails" xlink:href="bofi-20180630.xsd#OffBalanceSheetActivitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPolicies" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfCalculationsOfBasicAndDilutedEarningsPerCommonShareDetails" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfCalculationsOfBasicAndDilutedEarningsPerCommonShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfClassificationOfProceedsFromSaleOfLoansDetails" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfClassificationOfProceedsFromSaleOfLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesTables" xlink:href="bofi-20180630.xsd#OrganizationsAndSummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformation" xlink:href="bofi-20180630.xsd#ParentOnlyCondensedFinancialInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationCondensedBalanceSheetsDetails" xlink:href="bofi-20180630.xsd#ParentOnlyCondensedFinancialInformationCondensedBalanceSheetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationStatementOfCashFlowsDetails" xlink:href="bofi-20180630.xsd#ParentOnlyCondensedFinancialInformationStatementOfCashFlowsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationStatementsOfIncomeDetails" xlink:href="bofi-20180630.xsd#ParentOnlyCondensedFinancialInformationStatementsOfIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationTables" xlink:href="bofi-20180630.xsd#ParentOnlyCondensedFinancialInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/QuarterlyFinancialInformationUnaudited" xlink:href="bofi-20180630.xsd#QuarterlyFinancialInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/QuarterlyFinancialInformationUnauditedDetails" xlink:href="bofi-20180630.xsd#QuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/QuarterlyFinancialInformationUnauditedTables" xlink:href="bofi-20180630.xsd#QuarterlyFinancialInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/Securities" xlink:href="bofi-20180630.xsd#Securities" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesCarryingAmountAndFairValueOfSecuritiesDetails" xlink:href="bofi-20180630.xsd#SecuritiesCarryingAmountAndFairValueOfSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesInvestmentsClassifiedByContractualMaturityDateDetails" xlink:href="bofi-20180630.xsd#SecuritiesInvestmentsClassifiedByContractualMaturityDateDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesNarrativeDetails" xlink:href="bofi-20180630.xsd#SecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsDetails" xlink:href="bofi-20180630.xsd#SecuritiesOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesRealizedGainLossOnInvestmentsDetails" xlink:href="bofi-20180630.xsd#SecuritiesRealizedGainLossOnInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesScheduleOfUnrealizedLossOnInvestmentsDetails" xlink:href="bofi-20180630.xsd#SecuritiesScheduleOfUnrealizedLossOnInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesTables" xlink:href="bofi-20180630.xsd#SecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SecuritiesUnrealizedGainLossOnInvestmentsDetails" xlink:href="bofi-20180630.xsd#SecuritiesUnrealizedGainLossOnInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensation" xlink:href="bofi-20180630.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensationNarrativeDetails" xlink:href="bofi-20180630.xsd#StockBasedCompensationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensationStatusOfChangeInRestrictedStockGrantsDetails" xlink:href="bofi-20180630.xsd#StockBasedCompensationStatusOfChangeInRestrictedStockGrantsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:href="bofi-20180630.xsd#StockBasedCompensationStockOptionActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensationTables" xlink:href="bofi-20180630.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockBasedCompensationUnrecognizedCompensationExpenseDetails" xlink:href="bofi-20180630.xsd#StockBasedCompensationUnrecognizedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockholdersEquity" xlink:href="bofi-20180630.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockholdersEquityAtmOfferingDetails" xlink:href="bofi-20180630.xsd#StockholdersEquityAtmOfferingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockholdersEquityChangesInCommonStockDetails" xlink:href="bofi-20180630.xsd#StockholdersEquityChangesInCommonStockDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockholdersEquityNarrativeDetails" xlink:href="bofi-20180630.xsd#StockholdersEquityNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/StockholdersEquityTables" xlink:href="bofi-20180630.xsd#StockholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SubordinatedNotesAndDebentures" xlink:href="bofi-20180630.xsd#SubordinatedNotesAndDebentures" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SubordinatedNotesAndDebenturesDetails" xlink:href="bofi-20180630.xsd#SubordinatedNotesAndDebenturesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SubsequentEvent" xlink:href="bofi-20180630.xsd#SubsequentEvent" xlink:type="simple" />
  <link:roleRef roleURI="http://bofiholding.com/role/SubsequentEventDetails" xlink:href="bofi-20180630.xsd#SubsequentEventDetails" 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://bofiholding.com/role/Acquisitions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/AcquisitionsFairValueOfAssetsAcquiredDetails" 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_9D7549D48D874EA187D85CC69058A8B0" 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_EE41EA8D08BA1CF02F4C5CC69058625F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EE41EA8D08BA1CF02F4C5CC69058625F" 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_CC644EBB3721963B99115CC690583144" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_EE41EA8D08BA1CF02F4C5CC69058625F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_CC644EBB3721963B99115CC690583144" 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_1146B55357C3DA8F87C85CC6905807C6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_CC644EBB3721963B99115CC690583144" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1146B55357C3DA8F87C85CC6905807C6_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_1146B55357C3DA8F87C85CC6905807C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_CC644EBB3721963B99115CC690583144" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1146B55357C3DA8F87C85CC6905807C6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_7139AA7626C4BAF833925CC6905891E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1146B55357C3DA8F87C85CC6905807C6" xlink:to="loc_bofi_EPICSystemsInc.Member_7139AA7626C4BAF833925CC6905891E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_9135C13787FCDE1C22A75CC69058B548" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_9135C13787FCDE1C22A75CC69058B548" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_B380C1CC407A9B2EE9245CC690587642" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_B380C1CC407A9B2EE9245CC690587642" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_C1521F2D26BD3BC43B6C5CC690581468" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_C1521F2D26BD3BC43B6C5CC690581468" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets_B5658462472AB584B2955CC69058D61D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets_B5658462472AB584B2955CC69058D61D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_BCDCAC788B0C0F569A715CC69058B666" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_BCDCAC788B0C0F569A715CC69058B666" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_45F2DF545DB31A3313F85CC690584996" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_45F2DF545DB31A3313F85CC690584996" 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_BA69D189E13A3D5094295CC690584FC9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9D7549D48D874EA187D85CC69058A8B0" xlink:to="loc_us-gaap_Goodwill_BA69D189E13A3D5094295CC690584FC9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/AcquisitionsNarrativeDetails" 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_3DF7B29E428F7D76095861D467D77A68" 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_3B7D9DE0EBA2A18DAC7861D467D73F94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3B7D9DE0EBA2A18DAC7861D467D73F94" 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_D221CF05058BC2528EC861D467D76FD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_3B7D9DE0EBA2A18DAC7861D467D73F94" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_D221CF05058BC2528EC861D467D76FD1" 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_7D1AFEAECFD96148E23161D467D7A714_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D221CF05058BC2528EC861D467D76FD1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7D1AFEAECFD96148E23161D467D7A714_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_7D1AFEAECFD96148E23161D467D7A714" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D221CF05058BC2528EC861D467D76FD1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7D1AFEAECFD96148E23161D467D7A714" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_DF3B9703C849428FAF9C61D467D71034" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7D1AFEAECFD96148E23161D467D7A714" xlink:to="loc_bofi_EPICSystemsInc.Member_DF3B9703C849428FAF9C61D467D71034" 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_6330CF7C783B3372F5BA61D467D7F7CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_NumberOfBusinessesAcquired_6330CF7C783B3372F5BA61D467D7F7CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfStatesInWhichEntityOperates" xlink:label="loc_us-gaap_NumberOfStatesInWhichEntityOperates_024ABEA6867C93DCD75361D467D7755C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_NumberOfStatesInWhichEntityOperates_024ABEA6867C93DCD75361D467D7755C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits_F5278837DD73C15F38A061D467D7334B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits_F5278837DD73C15F38A061D467D7334B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_733FA9613B9A85BA249261D467D7F39E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_733FA9613B9A85BA249261D467D7F39E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_E28D2B41953911E5291261D467D7CA1E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_E28D2B41953911E5291261D467D7CA1E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets_FFD7E5C9766A60B7E31761D467D714C7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAccountsReceivableandFixedAssets_FFD7E5C9766A60B7E31761D467D714C7" 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_04B24D384B70E57807A461D467D746C1" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3DF7B29E428F7D76095861D467D77A68" xlink:to="loc_us-gaap_Goodwill_04B24D384B70E57807A461D467D746C1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/AcquisitionsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBank" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesLineItems" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesTable" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesTable_E59965E23F88456B0A175CC68E6A4FAB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesTable_E59965E23F88456B0A175CC68E6A4FAB" 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_RangeAxis" xlink:label="loc_srt_RangeAxis_91577471AC23C6FB83A85CC68E6A457C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesTable_E59965E23F88456B0A175CC68E6A4FAB" xlink:to="loc_srt_RangeAxis_91577471AC23C6FB83A85CC68E6A457C" 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_C37DD81B5C1A2A5176305CC68E6AAE05_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_91577471AC23C6FB83A85CC68E6A457C" xlink:to="loc_srt_RangeMember_C37DD81B5C1A2A5176305CC68E6AAE05_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_C37DD81B5C1A2A5176305CC68E6AAE05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_91577471AC23C6FB83A85CC68E6A457C" xlink:to="loc_srt_RangeMember_C37DD81B5C1A2A5176305CC68E6AAE05" 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_064EC42D316485DC7AAB5CC68E6A91F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C37DD81B5C1A2A5176305CC68E6AAE05" xlink:to="loc_srt_MinimumMember_064EC42D316485DC7AAB5CC68E6A91F5" 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_FFF560F762EBD37A1D855CC68E6AFA65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C37DD81B5C1A2A5176305CC68E6AAE05" xlink:to="loc_srt_MaximumMember_FFF560F762EBD37A1D855CC68E6AFA65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresInterestRateAtPeriodEnd" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresInterestRateAtPeriodEnd_66710747CF5373E5CC405CC68E6A3EAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresInterestRateAtPeriodEnd_66710747CF5373E5CC405CC68E6A3EAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate_30CB53CDB94DA1699AA45CC68E6A2237" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesWeightedAverageInterestRate_30CB53CDB94DA1699AA45CC68E6A2237" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1_1608255F5A25E2BA92565CC68E6A3B9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1_1608255F5A25E2BA92565CC68E6A3B9C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FederalHomeLoanBankMaximumAmountsAdvancedDuringPeriod" xlink:label="loc_bofi_FederalHomeLoanBankMaximumAmountsAdvancedDuringPeriod_C1698F9A25284F10FAF95CC68E6A85EE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_bofi_FederalHomeLoanBankMaximumAmountsAdvancedDuringPeriod_C1698F9A25284F10FAF95CC68E6A85EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds_12F170D06B6C36A204E25CC68E6AF49D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds_12F170D06B6C36A204E25CC68E6AF49D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FederalHomeLoanBankAdvancesGeneralDebtObligationsAmountAvailableIncludingWithAdditionalCollateralTerm" xlink:label="loc_bofi_FederalHomeLoanBankAdvancesGeneralDebtObligationsAmountAvailableIncludingWithAdditionalCollateralTerm_9ED5CAA5E3D23CEFA6F85CC68E6A2DBB" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesLineItems_77713982796B6FEAC00C5CC68E6AA6B5" xlink:to="loc_bofi_FederalHomeLoanBankAdvancesGeneralDebtObligationsAmountAvailableIncludingWithAdditionalCollateralTerm_9ED5CAA5E3D23CEFA6F85CC68E6A2DBB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankScheduledMaturitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/AdvancesFromFederalHomeLoanBankTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedBalanceSheets" 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_2CCE641ECB15C6800B7E5CC6910536BF" 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_37008183D8441484801A5CC69105CAAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_2CCE641ECB15C6800B7E5CC6910536BF" xlink:to="loc_us-gaap_StatementTable_37008183D8441484801A5CC69105CAAF" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_D31B0B1ADA19E9C1B4225CC691050A78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_37008183D8441484801A5CC69105CAAF" xlink:to="loc_us-gaap_StatementClassOfStockAxis_D31B0B1ADA19E9C1B4225CC691050A78" 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_BDB9D6149F88AA12D22B5CC691056DC6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D31B0B1ADA19E9C1B4225CC691050A78" xlink:to="loc_us-gaap_ClassOfStockDomain_BDB9D6149F88AA12D22B5CC691056DC6_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_BDB9D6149F88AA12D22B5CC691056DC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D31B0B1ADA19E9C1B4225CC691050A78" xlink:to="loc_us-gaap_ClassOfStockDomain_BDB9D6149F88AA12D22B5CC691056DC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_EDF8CFDF6271CD6C6A0F5CC691052F60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BDB9D6149F88AA12D22B5CC691056DC6" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_EDF8CFDF6271CD6C6A0F5CC691052F60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CCE641ECB15C6800B7E5CC6910536BF" xlink:to="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndDueFromBanks" xlink:label="loc_us-gaap_CashAndDueFromBanks_675F68EC72E96B1321545CC69105DB49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_CashAndDueFromBanks_675F68EC72E96B1321545CC69105DB49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsSold" xlink:label="loc_us-gaap_FederalFundsSold_09D96AD8DD78BA95A5ED5CC69105C48D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_FederalFundsSold_09D96AD8DD78BA95A5ED5CC69105C48D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_22A95AC9A3137A728C285CC69105AA50" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_22A95AC9A3137A728C285CC69105AA50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesAbstract" xlink:label="loc_us-gaap_MarketableSecuritiesAbstract_DF9DAD60DC2E2A437D3A5CC69105905A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_MarketableSecuritiesAbstract_DF9DAD60DC2E2A437D3A5CC69105905A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_ED7AADB7FEE0591ED02C5CC691053C9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_DF9DAD60DC2E2A437D3A5CC69105905A" xlink:to="loc_us-gaap_TradingSecurities_ED7AADB7FEE0591ED02C5CC691053C9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_47C74B91278DA452EA895CC691052B25" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_DF9DAD60DC2E2A437D3A5CC69105905A" xlink:to="loc_us-gaap_AvailableForSaleSecurities_47C74B91278DA452EA895CC691052B25" 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_DEC56E28156AA39D05265CC69105FF47" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_FederalHomeLoanBankStock_DEC56E28156AA39D05265CC69105FF47" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansHeldForSaleCarriedAtFairValue" xlink:label="loc_bofi_LoansHeldForSaleCarriedAtFairValue_3B12C66F5F6EAEC32C175CC69105B56C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_bofi_LoansHeldForSaleCarriedAtFairValue_3B12C66F5F6EAEC32C175CC69105B56C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansHeldForSaleLowerOfCostOrFairValue" xlink:label="loc_bofi_LoansHeldForSaleLowerOfCostOrFairValue_F0D0833DCE3503F4D03F5CC69105B789" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_bofi_LoansHeldForSaleLowerOfCostOrFairValue_F0D0833DCE3503F4D03F5CC69105B789" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_E1A579A75150CAE018885CC691059279" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_E1A579A75150CAE018885CC691059279" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_6F96E9CB30A567D07F245CC69105BF09" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_InterestReceivable_6F96E9CB30A567D07F245CC69105BF09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_47CFEC024896E7B8FD3F5CC69105B7C1" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_47CFEC024896E7B8FD3F5CC69105B7C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_BFB80293D52C903507275CC691053865" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_BFB80293D52C903507275CC691053865" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BankOwnedLifeInsurance" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_67ADF1E644F168CFED035CC691053404" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_67ADF1E644F168CFED035CC691053404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServicingAsset" xlink:label="loc_us-gaap_ServicingAsset_ECA2098473343ABF627D5CC691057335" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_ServicingAsset_ECA2098473343ABF627D5CC691057335" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeclosedAssets" xlink:label="loc_us-gaap_ForeclosedAssets_8ED5EDDE28E8985A04C65CC69105B305" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_ForeclosedAssets_8ED5EDDE28E8985A04C65CC69105B305" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetIncludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_DCF574B6C62A325B0FEB5CC69114D062" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_DCF574B6C62A325B0FEB5CC69114D062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_7E0117563176FEA6664E5CC69114A828" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_OtherAssets_7E0117563176FEA6664E5CC69114A828" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_43F2A7C31A51B1C3D8DC5CC691141779" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_AB13235EDC5DCB8892F95CC69105D747" xlink:to="loc_us-gaap_Assets_43F2A7C31A51B1C3D8DC5CC691141779" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_2CCE641ECB15C6800B7E5CC6910536BF" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositsAbstract" xlink:label="loc_us-gaap_DepositsAbstract_1A0692BC1CFE15EFB4DE5CC69114168A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_DepositsAbstract_1A0692BC1CFE15EFB4DE5CC69114168A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestBearingDepositLiabilities" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_CBE59CBE3B0F84364E0C5CC691147019" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DepositsAbstract_1A0692BC1CFE15EFB4DE5CC69114168A" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_CBE59CBE3B0F84364E0C5CC691147019" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestBearingDepositLiabilities" xlink:label="loc_us-gaap_InterestBearingDepositLiabilities_6400152CF06F9E1E01365CC69114935C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DepositsAbstract_1A0692BC1CFE15EFB4DE5CC69114168A" xlink:to="loc_us-gaap_InterestBearingDepositLiabilities_6400152CF06F9E1E01365CC69114935C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_011A26C6FD43AC0C7EF25CC691142384" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DepositsAbstract_1A0692BC1CFE15EFB4DE5CC69114168A" xlink:to="loc_us-gaap_Deposits_011A26C6FD43AC0C7EF25CC691142384" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchase" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_C0861AEC46418C2E55385CC691140E31" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_C0861AEC46418C2E55385CC691140E31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:label="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_95D4064D5D8606D4D07C5CC69114C84D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_95D4064D5D8606D4D07C5CC69114C84D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubordinatedDebt" xlink:label="loc_us-gaap_SubordinatedDebt_1B47932DA9F547E16D5D5CC69114F630" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_SubordinatedDebt_1B47932DA9F547E16D5D5CC69114F630" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_1578C7E5C57662BCCFD05CC69114B199" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_1578C7E5C57662BCCFD05CC69114B199" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_C282CA851FA7F56EE3B25CC69114D2A5" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_C282CA851FA7F56EE3B25CC69114D2A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_8B2611882D8DE4FC1F545CC69114FC98" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_Liabilities_8B2611882D8DE4FC1F545CC69114FC98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_A9825D03F80EF92F7A9A5CC691141524" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_CommitmentsAndContingencies_A9825D03F80EF92F7A9A5CC691141524" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_BC54667A6D06E4AC4EE85CC69114D52D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_PreferredStockValue_BC54667A6D06E4AC4EE85CC69114D52D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_F66459F473ADF0A9CB565CC691146B19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_CommonStockValue_F66459F473ADF0A9CB565CC691146B19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_167C31599C6FD07494CC5CC691147D36" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_AdditionalPaidInCapital_167C31599C6FD07494CC5CC691147D36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2A71CC315620DC69B4ED5CC69114E9FF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2A71CC315620DC69B4ED5CC69114E9FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_039690D83DF9B87EE6D45CC69114AB46" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_039690D83DF9B87EE6D45CC69114AB46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_4C96284884148A15D6675CC691140870" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_TreasuryStockValue_4C96284884148A15D6675CC691140870" 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_10FA612A5927A43E07C05CC6911442FF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_BFF8ABF15B34A51691FD5CC69114DD41" xlink:to="loc_us-gaap_StockholdersEquity_10FA612A5927A43E07C05CC6911442FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_9A28137B0AECEB44CBA85CC691146F75" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_2C641DA93DE4E600365E5CC691148752" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_9A28137B0AECEB44CBA85CC691146F75" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedBalanceSheetsParenthetical" 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_11A08FD418CB6E0829A05CC690F452CA" 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_43462D03CF1748944CD15CC690F4C569" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_11A08FD418CB6E0829A05CC690F452CA" xlink:to="loc_us-gaap_StatementTable_43462D03CF1748944CD15CC690F4C569" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_D2F26650822A9790BDAA5CC690F4A307" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_43462D03CF1748944CD15CC690F4C569" xlink:to="loc_us-gaap_StatementClassOfStockAxis_D2F26650822A9790BDAA5CC690F4A307" 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_8EA4720A2864A3A09ED75CC690F40EB0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D2F26650822A9790BDAA5CC690F4A307" xlink:to="loc_us-gaap_ClassOfStockDomain_8EA4720A2864A3A09ED75CC690F40EB0_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_8EA4720A2864A3A09ED75CC690F40EB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_D2F26650822A9790BDAA5CC690F4A307" xlink:to="loc_us-gaap_ClassOfStockDomain_8EA4720A2864A3A09ED75CC690F40EB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_83E57CF02EA5661AB9A55CC690F43ADB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_8EA4720A2864A3A09ED75CC690F40EB0" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_83E57CF02EA5661AB9A55CC690F43ADB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_DB62EC0DBF30C2977B055CC690F4ED9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11A08FD418CB6E0829A05CC690F452CA" xlink:to="loc_us-gaap_AssetsAbstract_DB62EC0DBF30C2977B055CC690F4ED9C" 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_C6791D03EC1C6E37E8755CC690F4CB66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_DB62EC0DBF30C2977B055CC690F4ED9C" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_C6791D03EC1C6E37E8755CC690F4CB66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11A08FD418CB6E0829A05CC690F452CA" xlink:to="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_42DEA12D39DF231B06085CC690F49C21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_42DEA12D39DF231B06085CC690F49C21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_7A48346E38920973DC705CC690F480B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_7A48346E38920973DC705CC690F480B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockLiquidationPreference" xlink:label="loc_us-gaap_PreferredStockLiquidationPreference_8EBC01A62AC316BF67E15CC690F4CD8C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_PreferredStockLiquidationPreference_8EBC01A62AC316BF67E15CC690F4CD8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_775B3425724AB3387FA85CC690F4D989" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_PreferredStockSharesIssued_775B3425724AB3387FA85CC690F4D989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_CB751844FB849644ED345CC690F4021C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_CB751844FB849644ED345CC690F4021C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_C35E1FEBA7ABDCBA3D235CC690F43643" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_C35E1FEBA7ABDCBA3D235CC690F43643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_D6F985D699B8F0C760AA5CC690F4B10E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_D6F985D699B8F0C760AA5CC690F4B10E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_E0697671908CD98A81965CC690F48302" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_CommonStockSharesIssued_E0697671908CD98A81965CC690F48302" 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_6A6006172A47725971385CC690F45ABD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_6A6006172A47725971385CC690F45ABD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_013444EE1D44D9B7FA3A5CC690F4A442" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_12FEE0D3DC9EB06938505CC690F43475" xlink:to="loc_us-gaap_TreasuryStockShares_013444EE1D44D9B7FA3A5CC690F4A442" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ConsolidatedStatementsOfStockholdersEquity" 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_44C7573E0CC29E3F353A5CC690C5519F" 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_F467E2EBC760E91F64E85CC690C55A43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_44C7573E0CC29E3F353A5CC690C5519F" xlink:to="loc_us-gaap_StatementTable_F467E2EBC760E91F64E85CC690C55A43" 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_71AE802ACAB8EF225C315CC690C5A048" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_F467E2EBC760E91F64E85CC690C55A43" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_71AE802ACAB8EF225C315CC690C5A048" 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_BAFFB8BC1E1DDFA0DDF75CC690C50149_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_71AE802ACAB8EF225C315CC690C5A048" xlink:to="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149_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_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_71AE802ACAB8EF225C315CC690C5A048" xlink:to="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaap_PreferredStockMember_6151D2E9B59AA503519B5CC690C5D3F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_PreferredStockMember_6151D2E9B59AA503519B5CC690C5D3F5" 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_C0C94706D1BCEF47AC8A5CC690C5658C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_CommonStockMember_C0C94706D1BCEF47AC8A5CC690C5658C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_A8E82BA37DBC868842655CC690C5C174" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_TreasuryStockMember_A8E82BA37DBC868842655CC690C5C174" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_D099B46CD18157C49BAB5CC690C56644" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_D099B46CD18157C49BAB5CC690C56644" 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_919C6FE34C6F191054695CC690C58C09" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_RetainedEarningsMember_919C6FE34C6F191054695CC690C58C09" 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_C45AC4962F6F283449CD5CC690C56A57" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_BAFFB8BC1E1DDFA0DDF75CC690C50149" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_C45AC4962F6F283449CD5CC690C56A57" 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_13AE6AC65F07E8283D8D5CC690C59479" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_F467E2EBC760E91F64E85CC690C55A43" xlink:to="loc_us-gaap_AwardTypeAxis_13AE6AC65F07E8283D8D5CC690C59479" 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_BC665AD0BE9324F67C405CC690C580DA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_13AE6AC65F07E8283D8D5CC690C59479" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BC665AD0BE9324F67C405CC690C580DA_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_BC665AD0BE9324F67C405CC690C580DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_13AE6AC65F07E8283D8D5CC690C59479" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BC665AD0BE9324F67C405CC690C580DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_B7D23D78D05F2950D0465CC690C5C0FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BC665AD0BE9324F67C405CC690C580DA" xlink:to="loc_us-gaap_RestrictedStockMember_B7D23D78D05F2950D0465CC690C5C0FB" 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_09B694F8C729ED31E9F55CC690C54512" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_44C7573E0CC29E3F353A5CC690C5519F" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_7F9DD0513BDAD05728E45CC690C5AB8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_7F9DD0513BDAD05728E45CC690C5AB8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_D8CDC374B774ECC785245D595C214D67" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_CommonStockSharesIssued_D8CDC374B774ECC785245D595C214D67" 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_CEFCA1965547FBA0909B5CC690C54630" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_CEFCA1965547FBA0909B5CC690C54630" 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_3A65D7C1FFC987E7F7715CC690C5B406" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockholdersEquity_3A65D7C1FFC987E7F7715CC690C5B406" 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_EDE8DE17D0F8D9CB99E65CC690C56F82" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_NetIncomeLoss_EDE8DE17D0F8D9CB99E65CC690C56F82" 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_77C6B7EE7B2B0C54663B5CC690C591B9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_77C6B7EE7B2B0C54663B5CC690C591B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsPreferredStockCash" xlink:label="loc_us-gaap_DividendsPreferredStockCash_C04E5766EF2FDCDC5D775CC690C57591" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_DividendsPreferredStockCash_C04E5766EF2FDCDC5D775CC690C57591" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuedDuringPeriodCommonStockSharesNewIssues" xlink:label="loc_bofi_StockIssuedDuringPeriodCommonStockSharesNewIssues_8D9A50268BEC73BBDFE65CC690C5528D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_bofi_StockIssuedDuringPeriodCommonStockSharesNewIssues_8D9A50268BEC73BBDFE65CC690C5528D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuedDuringPeriodCommonStockValueNewIssues" xlink:label="loc_bofi_StockIssuedDuringPeriodCommonStockValueNewIssues_9EB5D0DD85411781D1F85CC690C5113E" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_bofi_StockIssuedDuringPeriodCommonStockValueNewIssues_9EB5D0DD85411781D1F85CC690C5113E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_F9FAA80B832FB3415CAB5CC690C5AEB6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_F9FAA80B832FB3415CAB5CC690C5AEB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_1B549C8AA3F96C5492115CC690C578E6" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_1B549C8AA3F96C5492115CC690C578E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_86BC2167E84A1420D3EE5CC690C57807" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_86BC2167E84A1420D3EE5CC690C57807" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_9444A5B4859F3A7DE7055CC690C5F85E" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_9444A5B4859F3A7DE7055CC690C5F85E" 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_03F73D54FCB3FD2CD50C5CC690C56BA8" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_03F73D54FCB3FD2CD50C5CC690C56BA8" 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_F9565A18E3A18D6F16E15CC690C5704A" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_F9565A18E3A18D6F16E15CC690C5704A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockSharesIssuedNetOfSharesForTaxWithholdings" xlink:label="loc_us-gaap_RestrictedStockSharesIssuedNetOfSharesForTaxWithholdings_9281B1D9CA759879BED45CC690C5FBED" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_RestrictedStockSharesIssuedNetOfSharesForTaxWithholdings_9281B1D9CA759879BED45CC690C5FBED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_A249C4DD0E424D745E165CC690C5DF73" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_A249C4DD0E424D745E165CC690C5DF73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_67523C43D7379EF979CD5CC690C54901" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_67523C43D7379EF979CD5CC690C54901" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfOptionsForTaxWithholdings" xlink:label="loc_bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfOptionsForTaxWithholdings_5AD94F4DCCA9D44F15635CC690C5BA4B" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodNetOfOptionsForTaxWithholdings_5AD94F4DCCA9D44F15635CC690C5BA4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_63DD6C9344809FFEC0005CC690C523A1" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_09B694F8C729ED31E9F55CC690C54512" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_63DD6C9344809FFEC0005CC690C523A1" 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_AFD631BDC5A0023F07035CC690C55C43" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_44C7573E0CC29E3F353A5CC690C5519F" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_AFD631BDC5A0023F07035CC690C55C43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_587085ADA7521318DAE25CC690C559DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_44C7573E0CC29E3F353A5CC690C5519F" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_587085ADA7521318DAE25CC690C559DC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/Deposits" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/DepositsScheduledMaturitiesOfTimeDepositsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/DepositsSummaryOfDepositAccountsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/DepositsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/EarningsPerCommonShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/EarningsPerCommonShareCalculationOfBasicAndDilutedEpsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_5F9B1215B35CA10A46485CC68CDE3ECD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_361CD8AB7A67623BCAD35CC68CDECE2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_5F9B1215B35CA10A46485CC68CDE3ECD" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_361CD8AB7A67623BCAD35CC68CDECE2D" 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_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_5D44804886B78B76B4FC5CC68CDEF194" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_361CD8AB7A67623BCAD35CC68CDECE2D" xlink:to="loc_us-gaap_AwardTypeAxis_5D44804886B78B76B4FC5CC68CDEF194" 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_FE20911B06DF872D2D2B5CC68CDE6C6D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5D44804886B78B76B4FC5CC68CDEF194" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FE20911B06DF872D2D2B5CC68CDE6C6D_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_FE20911B06DF872D2D2B5CC68CDE6C6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5D44804886B78B76B4FC5CC68CDEF194" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FE20911B06DF872D2D2B5CC68CDE6C6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_65D5227FCE0A657507A85CC68CDEDBC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FE20911B06DF872D2D2B5CC68CDE6C6D" xlink:to="loc_us-gaap_EmployeeStockOptionMember_65D5227FCE0A657507A85CC68CDEDBC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_9111E3134B1D793964D15CC68CDE51DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FE20911B06DF872D2D2B5CC68CDE6C6D" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_9111E3134B1D793964D15CC68CDE51DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_5F9B1215B35CA10A46485CC68CDE3ECD" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" 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_42912A92FA4432318E1C5CC68CDEE50C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_us-gaap_NetIncomeLoss_42912A92FA4432318E1C5CC68CDEE50C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsPreferredStock" xlink:label="loc_us-gaap_DividendsPreferredStock_B4347C7FE68F14DBA95E5CC68CDE07AC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_us-gaap_DividendsPreferredStock_B4347C7FE68F14DBA95E5CC68CDE07AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_05F247674501DD39BD3C5CC68CDEBFA0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_05F247674501DD39BD3C5CC68CDEBFA0" 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_A3DEB323D04AE92C30075CC68CDEC9D0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_A3DEB323D04AE92C30075CC68CDEC9D0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic" xlink:label="loc_bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic_D4C695CEE80E8CB23B335CC68CDE7930" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic_D4C695CEE80E8CB23B335CC68CDE7930" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TotalQualifyingSharesBasic" xlink:label="loc_bofi_TotalQualifyingSharesBasic_C8BE162B3482C780B22F5CC68CDE1FDF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_bofi_TotalQualifyingSharesBasic_C8BE162B3482C780B22F5CC68CDE1FDF" 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_D9C7B550EBEDDC78BD4E5CC68CDEE3E9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_107C0D8442EAC00F36E85CC68CDE9B06" xlink:to="loc_us-gaap_EarningsPerShareBasic_D9C7B550EBEDDC78BD4E5CC68CDEE3E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_5F9B1215B35CA10A46485CC68CDE3ECD" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_4F6F179873653F9638905CC68CDE02E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_4F6F179873653F9638905CC68CDE02E5" 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_925B8FC25000E1162F125CC68CDE1170" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_925B8FC25000E1162F125CC68CDE1170" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_E11C68527F5EDE40BC885CC68CDEAC72" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_E11C68527F5EDE40BC885CC68CDEAC72" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TotalDilutiveCommonSharesIssuedAndOutstanding" xlink:label="loc_bofi_TotalDilutiveCommonSharesIssuedAndOutstanding_E1780AA7FC4BE8888A105CC68CDE5BDB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:to="loc_bofi_TotalDilutiveCommonSharesIssuedAndOutstanding_E1780AA7FC4BE8888A105CC68CDE5BDB" 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_00496B330F35378482CA5CC68CDE6791" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DE06BC6C4441C937DF365CC68CDE1B34" xlink:to="loc_us-gaap_EarningsPerShareDiluted_00496B330F35378482CA5CC68CDE6791" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/EarningsPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/EmployeeBenefitPlan" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/EmployeeBenefitPlanDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValue" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" 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_15679BBEC633C2148D7062536F7359C4" 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_37142046033860CE157A62536F6F9858" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_37142046033860CE157A62536F6F9858" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_B05E9D8A0D939A4C867662536F6F1E8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_37142046033860CE157A62536F6F9858" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_B05E9D8A0D939A4C867662536F6F1E8D" 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_38FE48330300B4C31D0C62536F6F0552_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_B05E9D8A0D939A4C867662536F6F1E8D" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_38FE48330300B4C31D0C62536F6F0552_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_38FE48330300B4C31D0C62536F6F0552" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_B05E9D8A0D939A4C867662536F6F1E8D" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_38FE48330300B4C31D0C62536F6F0552" 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_25BE84C2C753439B526862536F706245" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_38FE48330300B4C31D0C62536F6F0552" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_25BE84C2C753439B526862536F706245" 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_B386858CE02919111FC862536F70B34F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_37142046033860CE157A62536F6F9858" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B386858CE02919111FC862536F70B34F" 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_F7E1FBDA79CE5094369562536F705B37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B386858CE02919111FC862536F70B34F" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F7E1FBDA79CE5094369562536F705B37_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_F7E1FBDA79CE5094369562536F705B37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B386858CE02919111FC862536F70B34F" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F7E1FBDA79CE5094369562536F705B37" 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_F82D91F0EF40EE2C9D6C62536F71F3F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F7E1FBDA79CE5094369562536F705B37" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_F82D91F0EF40EE2C9D6C62536F71F3F2" 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_B4EE0402FE36C28AA3B662536F71C45F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F7E1FBDA79CE5094369562536F705B37" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_B4EE0402FE36C28AA3B662536F71C45F" 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_410D3BBE5CA72AE89D4262536F717157" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_F7E1FBDA79CE5094369562536F705B37" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_410D3BBE5CA72AE89D4262536F717157" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_720435957525C4D45E2F62536F714E13" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_37142046033860CE157A62536F6F9858" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_720435957525C4D45E2F62536F714E13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_720435957525C4D45E2F62536F714E13" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_720435957525C4D45E2F62536F714E13" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CollateralizedDebtObligationsMember" xlink:label="loc_us-gaap_CollateralizedDebtObligationsMember_10BED8762972E0305E5962536F7211E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:to="loc_us-gaap_CollateralizedDebtObligationsMember_10BED8762972E0305E5962536F7211E9" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_BD5BCA32A3638B5682EA62536F72D406" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:to="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_BD5BCA32A3638B5682EA62536F72D406" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_29144108FC5C7E9D4B2662536F726406" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_29144108FC5C7E9D4B2662536F726406" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_FDBE0146C9B9B0032C8962536F724FDB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:to="loc_us-gaap_MunicipalBondsMember_FDBE0146C9B9B0032C8962536F724FDB" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AssetbackedSecuritiesandStructuredNotesMember" xlink:label="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_39905BEDE4B4DF3BE28E62536F729F29" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7A1B9784F08C7D3833C562536F71B82A" xlink:to="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_39905BEDE4B4DF3BE28E62536F729F29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_8855ED6340D2FB55498462536F739C3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_TradingSecurities_8855ED6340D2FB55498462536F739C3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_0BF4BD716097A9ED8CC662536F731D7E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_AvailableForSaleSecurities_0BF4BD716097A9ED8CC662536F731D7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_B67177FDE152FFBE3AD262536F73CF54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_B67177FDE152FFBE3AD262536F73CF54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServicingAssetAtFairValueAmount" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_6E591A8DCCB918A4D89B62536F73D209" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_6E591A8DCCB918A4D89B62536F73D209" 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_99ACF21259E805F22C3D62536F736162" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_DerivativeAssets_99ACF21259E805F22C3D62536F736162" 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_3635D48B30BBAEEEFFB462536F74DE4B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15679BBEC633C2148D7062536F7359C4" xlink:to="loc_us-gaap_DerivativeLiabilities_3635D48B30BBAEEEFFB462536F74DE4B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueAssetsMeasuredNonrecurringBasisDetails" 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_69D7351FC7E99DE6004E5D2980DC8FE2" 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_FD0DE3D96A3288EEC9145D2980D36BE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_69D7351FC7E99DE6004E5D2980DC8FE2" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FD0DE3D96A3288EEC9145D2980D36BE9" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_CE65423270A99C8524C35D2980D390A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FD0DE3D96A3288EEC9145D2980D36BE9" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_CE65423270A99C8524C35D2980D390A6" 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_76D0A5F049B6B7E7CC765D2980D4B100_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_CE65423270A99C8524C35D2980D390A6" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_76D0A5F049B6B7E7CC765D2980D4B100_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_76D0A5F049B6B7E7CC765D2980D4B100" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_CE65423270A99C8524C35D2980D390A6" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_76D0A5F049B6B7E7CC765D2980D4B100" 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_9C5EFEC78EDF5DF2B2DE5D2980D99735" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_76D0A5F049B6B7E7CC765D2980D4B100" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_9C5EFEC78EDF5DF2B2DE5D2980D99735" 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_9566BC0446541FBB79DD5D2980D9213E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FD0DE3D96A3288EEC9145D2980D36BE9" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9566BC0446541FBB79DD5D2980D9213E" 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_5807D7A2EF2963901B1A5D2980DA63AC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9566BC0446541FBB79DD5D2980D9213E" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5807D7A2EF2963901B1A5D2980DA63AC_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_5807D7A2EF2963901B1A5D2980DA63AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9566BC0446541FBB79DD5D2980D9213E" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5807D7A2EF2963901B1A5D2980DA63AC" 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_54AE1AC3413D703435205D2980DAD801" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5807D7A2EF2963901B1A5D2980DA63AC" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_54AE1AC3413D703435205D2980DAD801" 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_039D9AA0B5E589E628DD5D2980DAA451" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5807D7A2EF2963901B1A5D2980DA63AC" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_039D9AA0B5E589E628DD5D2980DAA451" 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_BC108C2214B99FB917595D2980DA7EA8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5807D7A2EF2963901B1A5D2980DA63AC" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_BC108C2214B99FB917595D2980DA7EA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_0E308FB1F592B40569F75D2980DA5203" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FD0DE3D96A3288EEC9145D2980D36BE9" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_0E308FB1F592B40569F75D2980DA5203" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0E308FB1F592B40569F75D2980DA5203" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0E308FB1F592B40569F75D2980DA5203" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableSingleFamilyMember" xlink:label="loc_bofi_NonperformingFinancingReceivableSingleFamilyMember_FDAF7FCFC00B1C7426395D2980DB36FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableSingleFamilyMember_FDAF7FCFC00B1C7426395D2980DB36FD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableHomeEquityMember" xlink:label="loc_bofi_NonperformingFinancingReceivableHomeEquityMember_D019F953A5EF6A73C8EB5D2980DB223D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableHomeEquityMember_D019F953A5EF6A73C8EB5D2980DB223D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableMultifamilyMember" xlink:label="loc_bofi_NonperformingFinancingReceivableMultifamilyMember_0E1A87A90A82B992B0375D2980DB7AC4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableMultifamilyMember_0E1A87A90A82B992B0375D2980DB7AC4" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember" xlink:label="loc_bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember_5A2CFB287F5CFCB4E3625D2980DC9125" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember_5A2CFB287F5CFCB4E3625D2980DC9125" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableCommercialandIndustrialMember" xlink:label="loc_bofi_NonperformingFinancingReceivableCommercialandIndustrialMember_07B23A515CBBD33193D45D2980DC6800" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableCommercialandIndustrialMember_07B23A515CBBD33193D45D2980DC6800" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableOtherLoansMember" xlink:label="loc_bofi_NonperformingFinancingReceivableOtherLoansMember_7B73874DB7A3622486745D2980DC6F71" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_NonperformingFinancingReceivableOtherLoansMember_7B73874DB7A3622486745D2980DC6F71" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRealEstateOwnedSingleFamilyMember" xlink:label="loc_bofi_OtherRealEstateOwnedSingleFamilyMember_3F3328A144185AFD5B305D2980DC0AD6" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_OtherRealEstateOwnedSingleFamilyMember_3F3328A144185AFD5B305D2980DC0AD6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ForeclosedAssetsRecreationalVehicleandAutoMember" xlink:label="loc_bofi_ForeclosedAssetsRecreationalVehicleandAutoMember_3B52D6D622B9CB9440B65D2980DC4A05" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_B5ACF37B80395ADB97995D2980DBB5CD" xlink:to="loc_bofi_ForeclosedAssetsRecreationalVehicleandAutoMember_3B52D6D622B9CB9440B65D2980DC4A05" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableFairValueDisclosure" xlink:label="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_B5B5A3400ADC9231417F5D2980DDC85D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_69D7351FC7E99DE6004E5D2980DC8FE2" xlink:to="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_B5B5A3400ADC9231417F5D2980DDC85D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure" xlink:label="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_F7C1EDF96CE7E553DFBF5D2980DDC194" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_69D7351FC7E99DE6004E5D2980DC8FE2" xlink:to="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_F7C1EDF96CE7E553DFBF5D2980DDC194" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueFairValueByBalanceSheetGroupingDetails" 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_17B915F5C47E5FC3A19A5CC68FDCCFF7" 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_8523AD057AF48521A4A45CC68FDA0CC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_17B915F5C47E5FC3A19A5CC68FDCCFF7" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8523AD057AF48521A4A45CC68FDA0CC5" 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_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_E06D19566B56653AA7945CC68FDAE7A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8523AD057AF48521A4A45CC68FDA0CC5" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_E06D19566B56653AA7945CC68FDAE7A6" 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_5240660A10A7ADF8A7635CC68FDAF347_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_E06D19566B56653AA7945CC68FDAE7A6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5240660A10A7ADF8A7635CC68FDAF347_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_5240660A10A7ADF8A7635CC68FDAF347" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_E06D19566B56653AA7945CC68FDAE7A6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5240660A10A7ADF8A7635CC68FDAF347" 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_2F8572746F0B6295AAE05CC68FDA0F71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5240660A10A7ADF8A7635CC68FDAF347" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_2F8572746F0B6295AAE05CC68FDA0F71" 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_C24CB9558CA0D65DB8505CC68FDB6A23" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5240660A10A7ADF8A7635CC68FDAF347" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_C24CB9558CA0D65DB8505CC68FDB6A23" 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_1C0E5A54745E3012CA115CC68FDBAD86" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5240660A10A7ADF8A7635CC68FDAF347" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_1C0E5A54745E3012CA115CC68FDBAD86" xlink:type="arc" />
    <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_D49415F467087B02FB125CC68FDBE118" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8523AD057AF48521A4A45CC68FDA0CC5" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_D49415F467087B02FB125CC68FDBE118" 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_C3049F248A2AA14AB9D75CC68FDC714A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_D49415F467087B02FB125CC68FDBE118" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_C3049F248A2AA14AB9D75CC68FDC714A_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_7B4B7420142C889A0ABD5CC68FDBADB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_D49415F467087B02FB125CC68FDBE118" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B4B7420142C889A0ABD5CC68FDBADB9" 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_C3049F248A2AA14AB9D75CC68FDC714A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B4B7420142C889A0ABD5CC68FDBADB9" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_C3049F248A2AA14AB9D75CC68FDC714A" 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_1D3642125FEAD067444A5CC68FDCEE8D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B4B7420142C889A0ABD5CC68FDBADB9" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_1D3642125FEAD067444A5CC68FDCEE8D" 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_74DA9F0F5C78BD1A171C5CC68FDCF3BF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B4B7420142C889A0ABD5CC68FDBADB9" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_74DA9F0F5C78BD1A171C5CC68FDCF3BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_17B915F5C47E5FC3A19A5CC68FDCCFF7" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" 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_7D6ACBC73FEE8936D4595CC68FDC2643" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_7D6ACBC73FEE8936D4595CC68FDC2643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_BAE2F9C64A0F74222F075CC68FDD4240" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_TradingSecurities_BAE2F9C64A0F74222F075CC68FDD4240" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_82AFA987540B9848F2EE5CC68FDDC9FB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_AvailableForSaleSecurities_82AFA987540B9848F2EE5CC68FDDC9FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_BBB74D0772804ECEBD285CC68FDD68C5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_BBB74D0772804ECEBD285CC68FDD68C5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansHeldForSaleLowerOfCostOrFairValue" xlink:label="loc_bofi_LoansHeldForSaleLowerOfCostOrFairValue_DE41977BA9BD56C948D35CC68FDD980B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_bofi_LoansHeldForSaleLowerOfCostOrFairValue_DE41977BA9BD56C948D35CC68FDD980B" 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_8127F9F4932B4ADD13735CC68FDD1328" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_8127F9F4932B4ADD13735CC68FDD1328" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AccruedInterestReceivableFairValueDisclosure" xlink:label="loc_bofi_AccruedInterestReceivableFairValueDisclosure_853C7633E88080BB0B005CC68FDEBD69" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_bofi_AccruedInterestReceivableFairValueDisclosure_853C7633E88080BB0B005CC68FDEBD69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServicingAssetAtFairValueAmount" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_38EAD6FCBDDA2B78FC505CC68FDE876E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_6D744EC8EF190FF679165CC68FDC1156" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_38EAD6FCBDDA2B78FC505CC68FDE876E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_17B915F5C47E5FC3A19A5CC68FDCCFF7" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" 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_0B21C670344FE4439B165CC68FDEB022" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:to="loc_us-gaap_DepositsFairValueDisclosure_0B21C670344FE4439B165CC68FDEB022" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure" xlink:label="loc_us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure_0620C916C5CFF8DA7F135CC68FDE0FE2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:to="loc_us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure_0620C916C5CFF8DA7F135CC68FDE0FE2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure" xlink:label="loc_us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure_2611C9502E8079E238265CC68FDF163E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:to="loc_us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure_2611C9502E8079E238265CC68FDF163E" 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_5B758ECE1F72A67AE8EE5CC68FDFFA5B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_5B758ECE1F72A67AE8EE5CC68FDFFA5B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AccruedInterestPayableFairValueDisclosure" xlink:label="loc_bofi_AccruedInterestPayableFairValueDisclosure_3698BB968C380A4D0CC15CC68FDF796C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_766767B70F8275E225975CC68FDE9592" xlink:to="loc_bofi_AccruedInterestPayableFairValueDisclosure_3698BB968C380A4D0CC15CC68FDF796C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueLevel3AssetsMeasuredOnRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_14365F164D0F95168FC761D46798B5D2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_14365F164D0F95168FC761D46798B5D2" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DF26EA1B7B44A577F75161D46798CBC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DF26EA1B7B44A577F75161D46798CBC2" 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_A21AE358CB48A9BC462361D46798EF84_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DF26EA1B7B44A577F75161D46798CBC2" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_A21AE358CB48A9BC462361D46798EF84_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_A21AE358CB48A9BC462361D46798EF84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DF26EA1B7B44A577F75161D46798CBC2" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_A21AE358CB48A9BC462361D46798EF84" 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_FD0DFA2BB7CD5FD46CB861D46798D68D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_A21AE358CB48A9BC462361D46798EF84" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_FD0DFA2BB7CD5FD46CB861D46798D68D" 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_F5CBD8C8720AD224440561D467982C2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F5CBD8C8720AD224440561D467982C2E" 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_42825F145BA0997D9EE461D467982D8C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F5CBD8C8720AD224440561D467982C2E" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_42825F145BA0997D9EE461D467982D8C_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_42825F145BA0997D9EE461D467982D8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F5CBD8C8720AD224440561D467982C2E" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_42825F145BA0997D9EE461D467982D8C" 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_5CA0E010EA85D06B860C61D467987516" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_42825F145BA0997D9EE461D467982D8C" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_5CA0E010EA85D06B860C61D467987516" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_35CCBF872B99DD5A957561D4679814CA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_35CCBF872B99DD5A957561D4679814CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_35CCBF872B99DD5A957561D4679814CA" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_35CCBF872B99DD5A957561D4679814CA" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CollateralizedDebtObligationsMember" xlink:label="loc_us-gaap_CollateralizedDebtObligationsMember_72CD225E54CA6D5362D761D46798F5D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:to="loc_us-gaap_CollateralizedDebtObligationsMember_72CD225E54CA6D5362D761D46798F5D3" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_951F7D021F30F5D6379861D46798FD89" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_951F7D021F30F5D6379861D46798FD89" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_MortgageServicingRightsMember" xlink:label="loc_bofi_MortgageServicingRightsMember_EC3DC6B1D70DC2AF7F3561D467981E4E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:to="loc_bofi_MortgageServicingRightsMember_EC3DC6B1D70DC2AF7F3561D467981E4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFinancialInstrumentsAssetsMember" xlink:label="loc_us-gaap_DerivativeFinancialInstrumentsAssetsMember_5235BDEA2E7BD9479E4961D4679857DC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5FC994C2D75FF4F672261D46798DCE7" xlink:to="loc_us-gaap_DerivativeFinancialInstrumentsAssetsMember_5235BDEA2E7BD9479E4961D4679857DC" 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_0CF640D53EF2F2E5BF8761D46798927E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_3EA4FFB162D60CF53E1661D46798F956" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_0CF640D53EF2F2E5BF8761D46798927E" 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_743A8A4678888446A5D361D467983393_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0CF640D53EF2F2E5BF8761D46798927E" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_743A8A4678888446A5D361D467983393_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_743A8A4678888446A5D361D467983393" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0CF640D53EF2F2E5BF8761D46798927E" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_743A8A4678888446A5D361D467983393" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SaleOfMortgagebackedSecuritiesMember" xlink:label="loc_bofi_SaleOfMortgagebackedSecuritiesMember_6FAA8BAE553B06691A0461D467988E21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_743A8A4678888446A5D361D467983393" xlink:to="loc_bofi_SaleOfMortgagebackedSecuritiesMember_6FAA8BAE553B06691A0461D467988E21" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FairValueGainOnTradingSecuritiesMember" xlink:label="loc_bofi_FairValueGainOnTradingSecuritiesMember_E453CA92F3EDC95D5B4461D46798534D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_743A8A4678888446A5D361D467983393" xlink:to="loc_bofi_FairValueGainOnTradingSecuritiesMember_E453CA92F3EDC95D5B4461D46798534D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageBankingMember" xlink:label="loc_us-gaap_MortgageBankingMember_0BCA240693BDD746401061D46798DF9D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_743A8A4678888446A5D361D467983393" xlink:to="loc_us-gaap_MortgageBankingMember_0BCA240693BDD746401061D46798DF9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_14365F164D0F95168FC761D46798B5D2" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_F26DFEB36114A761BB2F61D46798F7AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_F26DFEB36114A761BB2F61D46798F7AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3_78309FAA800B2350640061D467988664" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3_78309FAA800B2350640061D467988664" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3_0D801057D7DA9283044961D467982C63" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3_0D801057D7DA9283044961D467982C63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_173ED887321A86C5693661D467982E89" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_173ED887321A86C5693661D467982E89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss_869C6E7195831DE7806A61D46798A673" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss_869C6E7195831DE7806A61D46798A673" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_5D1B353A83DB7C531A8761D4679881F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_5D1B353A83DB7C531A8761D4679881F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_08CCE12F2039C2A107AE61D467982C57" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_08CCE12F2039C2A107AE61D467982C57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_5A46373B9AC949CA5ECC61D467985CB5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_5A46373B9AC949CA5ECC61D467985CB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_5B91DA79F973960A234461D46798550B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_4CAA0B75BA5A505494A361D46798F961" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_5B91DA79F973960A234461D46798550B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_648868AD264A43AC1A7161D46798593C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_648868AD264A43AC1A7161D46798593C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPeriodIncreaseDecrease" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPeriodIncreaseDecrease_3FBFC3D0363DF2D5FDD561D46798530C" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7A3847549CD12A0A58B961D467987954" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPeriodIncreaseDecrease_3FBFC3D0363DF2D5FDD561D46798530C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueLevel3UnrealizedGainLossDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1C6B7CA21C1741E517F55CC6900A6DA6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ED927E141A00ECE4C8185CC6900AB313" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1C6B7CA21C1741E517F55CC6900A6DA6" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ED927E141A00ECE4C8185CC6900AB313" 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_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D289C9ABA9D195B851815CC6900AC1C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ED927E141A00ECE4C8185CC6900AB313" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D289C9ABA9D195B851815CC6900AC1C5" 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_12DEB9BB1B742623994D5CC6900A7D2E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D289C9ABA9D195B851815CC6900AC1C5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_12DEB9BB1B742623994D5CC6900A7D2E_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_12DEB9BB1B742623994D5CC6900A7D2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_D289C9ABA9D195B851815CC6900AC1C5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_12DEB9BB1B742623994D5CC6900A7D2E" 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_B94703556E7CE8BFEB515CC6900A6E87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_12DEB9BB1B742623994D5CC6900A7D2E" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_B94703556E7CE8BFEB515CC6900A6E87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_90006DD15F7B2011FA805CC6900A9733" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1C6B7CA21C1741E517F55CC6900A6DA6" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_90006DD15F7B2011FA805CC6900A9733" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss" xlink:label="loc_us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss_061C7469853AA6378F2C5CC6900A7B50" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1C6B7CA21C1741E517F55CC6900A6DA6" xlink:to="loc_us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss_061C7469853AA6378F2C5CC6900A7B50" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TradingSecuritiesChangeInUnrealizedGainAndLossAndInterestIncomeRecordedInEarnings" xlink:label="loc_bofi_TradingSecuritiesChangeInUnrealizedGainAndLossAndInterestIncomeRecordedInEarnings_32FA2E606E6F431455C65CC6900A52B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1C6B7CA21C1741E517F55CC6900A6DA6" xlink:to="loc_bofi_TradingSecuritiesChangeInUnrealizedGainAndLossAndInterestIncomeRecordedInEarnings_32FA2E606E6F431455C65CC6900A52B2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueLoansHeldForSaleDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueNarrativeDetails" 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_401E4C5614669B45919761D467B8C97F" 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_D72A253F2F7471B77FA161D467B89436" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" 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_ValuationTechniqueAxis" xlink:label="loc_us-gaap_ValuationTechniqueAxis_4D542C15F3B01B71716D61D467B87B39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_ValuationTechniqueAxis_4D542C15F3B01B71716D61D467B87B39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_F24D67E14153135A477F61D467B839E0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_4D542C15F3B01B71716D61D467B87B39" xlink:to="loc_us-gaap_ValuationTechniqueDomain_F24D67E14153135A477F61D467B839E0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_F24D67E14153135A477F61D467B839E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_4D542C15F3B01B71716D61D467B87B39" xlink:to="loc_us-gaap_ValuationTechniqueDomain_F24D67E14153135A477F61D467B839E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeApproachValuationTechniqueMember" xlink:label="loc_us-gaap_IncomeApproachValuationTechniqueMember_650DB5914AF606AC4A6F61D467B85DE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_F24D67E14153135A477F61D467B839E0" xlink:to="loc_us-gaap_IncomeApproachValuationTechniqueMember_650DB5914AF606AC4A6F61D467B85DE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_E5DBBCDE44CC6373335F61D467B8EBDA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_E5DBBCDE44CC6373335F61D467B8EBDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_E5DBBCDE44CC6373335F61D467B8EBDA" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_E5DBBCDE44CC6373335F61D467B8EBDA" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDefaultRateMember" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_67B7D50C05A7080BD0F861D467B86617" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_67B7D50C05A7080BD0F861D467B86617" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputLossSeverityMember" xlink:label="loc_us-gaap_MeasurementInputLossSeverityMember_A0882C3D8844D80BAA4261D467B8FFA6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F" xlink:to="loc_us-gaap_MeasurementInputLossSeverityMember_A0882C3D8844D80BAA4261D467B8FFA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDiscountRateMember" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_3758D54CEC2EE9C2558F62515B4159A4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_E868C003B0B68F42917D61D467B8B12F" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_3758D54CEC2EE9C2558F62515B4159A4" 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_52A81C8F5321B069CF8061D467B892EC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_srt_RangeAxis_52A81C8F5321B069CF8061D467B892EC" 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_D266FB1D13BC8354773B61D467B84C70_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_52A81C8F5321B069CF8061D467B892EC" xlink:to="loc_srt_RangeMember_D266FB1D13BC8354773B61D467B84C70_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_D266FB1D13BC8354773B61D467B84C70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_52A81C8F5321B069CF8061D467B892EC" xlink:to="loc_srt_RangeMember_D266FB1D13BC8354773B61D467B84C70" 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_CF2679E771E650AA457761D467B84BBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D266FB1D13BC8354773B61D467B84C70" xlink:to="loc_srt_MinimumMember_CF2679E771E650AA457761D467B84BBA" 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_BFBC8D5D0B232895444D61D467B83DB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D266FB1D13BC8354773B61D467B84C70" xlink:to="loc_srt_MaximumMember_BFBC8D5D0B232895444D61D467B83DB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_3E10B16E00F85B72747361D467B8214F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_3E10B16E00F85B72747361D467B8214F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_3E10B16E00F85B72747361D467B8214F" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_3E10B16E00F85B72747361D467B8214F" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_7DA775B374184451E25761D467B81D9E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_7DA775B374184451E25761D467B81D9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonperformingFinancingReceivableMember" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_FBE9E26C305B30EFB74F61D467B8A1BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_FBE9E26C305B30EFB74F61D467B8A1BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateAcquiredInSatisfactionOfDebtMember" xlink:label="loc_us-gaap_RealEstateAcquiredInSatisfactionOfDebtMember_81F224FB7693EC772C7061D467B89149" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E2AE9D8ADE75EFAE5DA361D467B81616" xlink:to="loc_us-gaap_RealEstateAcquiredInSatisfactionOfDebtMember_81F224FB7693EC772C7061D467B89149" 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_C6BBFAEFB72F38D8D67761D467B86B61" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C6BBFAEFB72F38D8D67761D467B86B61" 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_E714D0B5F3D8D8CDE3EC61D467B86244_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C6BBFAEFB72F38D8D67761D467B86B61" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E714D0B5F3D8D8CDE3EC61D467B86244_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_E714D0B5F3D8D8CDE3EC61D467B86244" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C6BBFAEFB72F38D8D67761D467B86B61" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E714D0B5F3D8D8CDE3EC61D467B86244" 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_43ECA745C9089B80122561D467B85B15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E714D0B5F3D8D8CDE3EC61D467B86244" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_43ECA745C9089B80122561D467B85B15" xlink:type="arc" />
    <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_DBBD912359937E6F095161D467B89CFD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_DBBD912359937E6F095161D467B89CFD" 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_350FA3C67615922504B561D467B891C3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_DBBD912359937E6F095161D467B89CFD" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_350FA3C67615922504B561D467B891C3_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_33E50B953C1456C308A661D467B8FB55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_DBBD912359937E6F095161D467B89CFD" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_33E50B953C1456C308A661D467B8FB55" 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_350FA3C67615922504B561D467B891C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_33E50B953C1456C308A661D467B8FB55" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_350FA3C67615922504B561D467B891C3" 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_DEF02AA49C68499159D561D467B8BB48" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_33E50B953C1456C308A661D467B8FB55" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_DEF02AA49C68499159D561D467B8BB48" 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_6C7BA1469B58E87D5BDE61D467B88C5B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_D72A253F2F7471B77FA161D467B89436" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6C7BA1469B58E87D5BDE61D467B88C5B" 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_52FFE3EC1131D8E8AC2961D467B84082_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6C7BA1469B58E87D5BDE61D467B88C5B" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_52FFE3EC1131D8E8AC2961D467B84082_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_52FFE3EC1131D8E8AC2961D467B84082" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_6C7BA1469B58E87D5BDE61D467B88C5B" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_52FFE3EC1131D8E8AC2961D467B84082" 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_0BA198359D5BEBCF3B5961D467B83AD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_52FFE3EC1131D8E8AC2961D467B84082" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_0BA198359D5BEBCF3B5961D467B83AD2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FairValueInputsUnemploymentRate" xlink:label="loc_bofi_FairValueInputsUnemploymentRate_23ECD74836FEF457270261D467B891FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_bofi_FairValueInputsUnemploymentRate_23ECD74836FEF457270261D467B891FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_276B3C00CC3684C9DC3961D467B882EA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_276B3C00CC3684C9DC3961D467B882EA" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FairValueInputsDiscountRateDescriptionOfVariableRateBasis" xlink:label="loc_bofi_FairValueInputsDiscountRateDescriptionOfVariableRateBasis_F8D0A9F308E1A79CBA8E61D467B89D5C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_bofi_FairValueInputsDiscountRateDescriptionOfVariableRateBasis_F8D0A9F308E1A79CBA8E61D467B89D5C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableFairValueDisclosure" xlink:label="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_A88B86F8B6A9258894EE61D467B83E23" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_A88B86F8B6A9258894EE61D467B83E23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_BE845F2F219F6347F1D461D467B8235E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs_BE845F2F219F6347F1D461D467B8235E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease_1960EAD7965BE8D376DA61D467B853AA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease_1960EAD7965BE8D376DA61D467B853AA" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure" xlink:label="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_AF7A57F60E0BCDADD1F961D467B8E20D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_AF7A57F60E0BCDADD1F961D467B8E20D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateOwnedValuationAllowanceAmountsApplied" xlink:label="loc_us-gaap_RealEstateOwnedValuationAllowanceAmountsApplied_56C21A6A1B2FB1E3B47A61D467B8A4F2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_RealEstateOwnedValuationAllowanceAmountsApplied_56C21A6A1B2FB1E3B47A61D467B8A4F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_2A9A6E54727DB85655D761D467B84052" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_401E4C5614669B45919761D467B8C97F" xlink:to="loc_us-gaap_HeldToMaturitySecurities_2A9A6E54727DB85655D761D467B84052" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueQuantitativeInformationForLevel3FairValueMeasurmentsNonrecurringDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22384D9FA2C6F61BC42261D4675A86DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22384D9FA2C6F61BC42261D4675A86DD" 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_074EA9228B972EA9187E61D4675A0FD0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22384D9FA2C6F61BC42261D4675A86DD" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_074EA9228B972EA9187E61D4675A0FD0_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_074EA9228B972EA9187E61D4675A0FD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22384D9FA2C6F61BC42261D4675A86DD" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_074EA9228B972EA9187E61D4675A0FD0" 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_2261723ADB3C0341BF9661D4675A4346" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_074EA9228B972EA9187E61D4675A0FD0" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_2261723ADB3C0341BF9661D4675A4346" 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_8D486C8FA66AD9CE73E961D4675A9E65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8D486C8FA66AD9CE73E961D4675A9E65" 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_D4EA0FD5ECC902ED17B561D4675AA33B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8D486C8FA66AD9CE73E961D4675A9E65" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D4EA0FD5ECC902ED17B561D4675AA33B_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_D4EA0FD5ECC902ED17B561D4675AA33B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8D486C8FA66AD9CE73E961D4675A9E65" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D4EA0FD5ECC902ED17B561D4675AA33B" 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_1EEC1E3E2C6F026230B061D4675A661A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D4EA0FD5ECC902ED17B561D4675AA33B" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_1EEC1E3E2C6F026230B061D4675A661A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_215C8C9E87AE383ABD8D61D4675A6795" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_215C8C9E87AE383ABD8D61D4675A6795" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_215C8C9E87AE383ABD8D61D4675A6795" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_215C8C9E87AE383ABD8D61D4675A6795" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableSingleFamilyMember" xlink:label="loc_bofi_NonperformingFinancingReceivableSingleFamilyMember_BC87E40D59DCEC4D24FA61D4675A0941" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableSingleFamilyMember_BC87E40D59DCEC4D24FA61D4675A0941" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableHomeEquityMember" xlink:label="loc_bofi_NonperformingFinancingReceivableHomeEquityMember_A7CD92E0A6561C748DDC61D4675A64AE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableHomeEquityMember_A7CD92E0A6561C748DDC61D4675A64AE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableMultifamilyMember" xlink:label="loc_bofi_NonperformingFinancingReceivableMultifamilyMember_041A9C9C0BCAAF40B15861D4675A25C1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableMultifamilyMember_041A9C9C0BCAAF40B15861D4675A25C1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember" xlink:label="loc_bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember_FF0FF0D7A3A35186638461D4675AAF88" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableRecreationalVehicleAndAutoMember_FF0FF0D7A3A35186638461D4675AAF88" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableCommercialandIndustrialMember" xlink:label="loc_bofi_NonperformingFinancingReceivableCommercialandIndustrialMember_2FD9DC781A6AB693D9A961D4675AC585" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableCommercialandIndustrialMember_2FD9DC781A6AB693D9A961D4675AC585" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonperformingFinancingReceivableOtherLoansMember" xlink:label="loc_bofi_NonperformingFinancingReceivableOtherLoansMember_A1CA032ED56E1D0FFA6061D4675A4509" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_NonperformingFinancingReceivableOtherLoansMember_A1CA032ED56E1D0FFA6061D4675A4509" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRealEstateOwnedSingleFamilyMember" xlink:label="loc_bofi_OtherRealEstateOwnedSingleFamilyMember_644F0D125ADCA5E115BB61D4675A8564" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_OtherRealEstateOwnedSingleFamilyMember_644F0D125ADCA5E115BB61D4675A8564" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ForeclosedAssetsRecreationalVehicleandAutoMember" xlink:label="loc_bofi_ForeclosedAssetsRecreationalVehicleandAutoMember_EFA405FC9BEF0A909C9761D4675AF95F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_05E48A1225EEE398105F61D4675A7AE0" xlink:to="loc_bofi_ForeclosedAssetsRecreationalVehicleandAutoMember_EFA405FC9BEF0A909C9761D4675AF95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueAxis" xlink:label="loc_us-gaap_ValuationTechniqueAxis_1B78B9E5FC40E0E145F661D4675AE98D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_us-gaap_ValuationTechniqueAxis_1B78B9E5FC40E0E145F661D4675AE98D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_1B78B9E5FC40E0E145F661D4675AE98D" xlink:to="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_1B78B9E5FC40E0E145F661D4675AE98D" xlink:to="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketApproachValuationTechniqueMember" xlink:label="loc_us-gaap_MarketApproachValuationTechniqueMember_477C0BAB2C99AE8CF17161D4675ADC25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC" xlink:to="loc_us-gaap_MarketApproachValuationTechniqueMember_477C0BAB2C99AE8CF17161D4675ADC25" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_MarketApproachAndIncomeApproachValuationTechniqueMember" xlink:label="loc_bofi_MarketApproachAndIncomeApproachValuationTechniqueMember_0710A05F02C692F818E261D4675AF5B7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC" xlink:to="loc_bofi_MarketApproachAndIncomeApproachValuationTechniqueMember_0710A05F02C692F818E261D4675AF5B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeApproachValuationTechniqueMember" xlink:label="loc_us-gaap_IncomeApproachValuationTechniqueMember_F17458419ABC68FE051061D4675AA8FE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_BA58DA69C5F2F5AB17C561D4675A35BC" xlink:to="loc_us-gaap_IncomeApproachValuationTechniqueMember_F17458419ABC68FE051061D4675AA8FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_2590D2D6C2DE3520646861D4675A07DD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_2590D2D6C2DE3520646861D4675A07DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_2590D2D6C2DE3520646861D4675A07DD" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_2590D2D6C2DE3520646861D4675A07DD" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputComparabilityAdjustmentMember" xlink:label="loc_us-gaap_MeasurementInputComparabilityAdjustmentMember_AF228CC2F5BE3D4E8AE861D4675AB2E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_us-gaap_MeasurementInputComparabilityAdjustmentMember_AF228CC2F5BE3D4E8AE861D4675AB2E1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_MeasurementInputAppraisedValueandComparabilityAdjustmentMember" xlink:label="loc_bofi_MeasurementInputAppraisedValueandComparabilityAdjustmentMember_2FD38B93799752467B8961D4675ACCA9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_bofi_MeasurementInputAppraisedValueandComparabilityAdjustmentMember_2FD38B93799752467B8961D4675ACCA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDiscountRateMember" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_EE9FAC1CDCF12DA871E861D4675AD9D9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_EE9FAC1CDCF12DA871E861D4675AD9D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputConstantPrepaymentRateMember" xlink:label="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_D28A4A8F0079A394FDE161D4675A694F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_D28A4A8F0079A394FDE161D4675A694F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDefaultRateMember" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_455B333A94E557255FD261D4675A64DA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_455B333A94E557255FD261D4675A64DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputLossSeverityMember" xlink:label="loc_us-gaap_MeasurementInputLossSeverityMember_E9C9204D9009D8E079F561D4675A431C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3867CF62DBECEEF1E94861D4675A8935" xlink:to="loc_us-gaap_MeasurementInputLossSeverityMember_E9C9204D9009D8E079F561D4675A431C" 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_8B2DAC48060E8B9F0E1B61D4675AADC6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_AFC78D57FC22AA407B2E61D4675A4601" xlink:to="loc_srt_RangeAxis_8B2DAC48060E8B9F0E1B61D4675AADC6" 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_4DE1DFB227CD8FEAC2FD61D4675AF3C6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_8B2DAC48060E8B9F0E1B61D4675AADC6" xlink:to="loc_srt_RangeMember_4DE1DFB227CD8FEAC2FD61D4675AF3C6_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_4DE1DFB227CD8FEAC2FD61D4675AF3C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_8B2DAC48060E8B9F0E1B61D4675AADC6" xlink:to="loc_srt_RangeMember_4DE1DFB227CD8FEAC2FD61D4675AF3C6" 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_FD189A7C6009CB2F1ECE61D4675A37C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4DE1DFB227CD8FEAC2FD61D4675AF3C6" xlink:to="loc_srt_MinimumMember_FD189A7C6009CB2F1ECE61D4675A37C9" 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_A895C8E8372D7CB2A1EB61D4675ADC7B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4DE1DFB227CD8FEAC2FD61D4675AF3C6" xlink:to="loc_srt_MaximumMember_A895C8E8372D7CB2A1EB61D4675ADC7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_WeightedAverageMember" xlink:label="loc_srt_WeightedAverageMember_EBA8A557D6FE96DBF84061D4675A02FE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4DE1DFB227CD8FEAC2FD61D4675AF3C6" xlink:to="loc_srt_WeightedAverageMember_EBA8A557D6FE96DBF84061D4675A02FE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableFairValueDisclosure" xlink:label="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_83A1CE84FD7B9F833C1661D4675A3546" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_bofi_ImpairedFinancingReceivableFairValueDisclosure_83A1CE84FD7B9F833C1661D4675A3546" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure" xlink:label="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_2B114CDA8A0B71F7D43461D4675A34AE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_bofi_OtherRealEstateOwnedAndForeclosedAssetsFairValueDisclosure_2B114CDA8A0B71F7D43461D4675A34AE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedLoansMeasurementInput" xlink:label="loc_bofi_ImpairedLoansMeasurementInput_CEDCCA3F1FD36E454BD561D4675AFE75" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_bofi_ImpairedLoansMeasurementInput_CEDCCA3F1FD36E454BD561D4675AFE75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherRealEstateOwnedMeasurementInput" xlink:label="loc_us-gaap_OtherRealEstateOwnedMeasurementInput_6560B4DA7556C9647C7461D4675A6939" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_us-gaap_OtherRealEstateOwnedMeasurementInput_6560B4DA7556C9647C7461D4675A6939" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherRepossessedAssetsMeasurementInput" xlink:label="loc_bofi_OtherRepossessedAssetsMeasurementInput_DEBE867A649E17A64EEC61D4675A1FE6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_FEF9F1C073DC826B925A61D4675AF95C" xlink:to="loc_bofi_OtherRepossessedAssetsMeasurementInput_DEBE867A649E17A64EEC61D4675A1FE6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueQuantitativeInformationForLevel3FairValueMeasurmentsRecurringDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueOptionQuantitativeDisclosuresLineItems" xlink:label="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueOptionQuantitativeDisclosuresTable" xlink:label="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A14598031DFDA7CE472661D467897164" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A14598031DFDA7CE472661D467897164" 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_968B97F29C8834D411A561D46789E709_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A14598031DFDA7CE472661D467897164" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_968B97F29C8834D411A561D46789E709_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_968B97F29C8834D411A561D46789E709" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A14598031DFDA7CE472661D467897164" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_968B97F29C8834D411A561D46789E709" 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_CDBE114A5E1A89EC44A361D467895705" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_968B97F29C8834D411A561D46789E709" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_CDBE114A5E1A89EC44A361D467895705" 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_0CA1C39F14C0C428C7B061D46789985C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0CA1C39F14C0C428C7B061D46789985C" 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_39F652661D632E58A4A561D467899518_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0CA1C39F14C0C428C7B061D46789985C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39F652661D632E58A4A561D467899518_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_39F652661D632E58A4A561D467899518" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0CA1C39F14C0C428C7B061D46789985C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39F652661D632E58A4A561D467899518" 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_3D49E245168D8EE7CA6461D46789A2C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39F652661D632E58A4A561D467899518" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_3D49E245168D8EE7CA6461D46789A2C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_690EF959F55EF10E82AD61D467899499" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_690EF959F55EF10E82AD61D467899499" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_690EF959F55EF10E82AD61D467899499" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_690EF959F55EF10E82AD61D467899499" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_0659F2D825CEF5F580E961D46789DA3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_0659F2D825CEF5F580E961D46789DA3B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_MortgageServicingRightsMember" xlink:label="loc_bofi_MortgageServicingRightsMember_60AA69BC7AABEE1628C861D4678922F0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A" xlink:to="loc_bofi_MortgageServicingRightsMember_60AA69BC7AABEE1628C861D4678922F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFinancialInstrumentsAssetsMember" xlink:label="loc_us-gaap_DerivativeFinancialInstrumentsAssetsMember_E221B70D7D08E3FF76C961D4678900B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_146B7F228A1B9241B57C61D46789F00A" xlink:to="loc_us-gaap_DerivativeFinancialInstrumentsAssetsMember_E221B70D7D08E3FF76C961D4678900B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueAxis" xlink:label="loc_us-gaap_ValuationTechniqueAxis_056440D07B14C920DF6461D46789632A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_us-gaap_ValuationTechniqueAxis_056440D07B14C920DF6461D46789632A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_056440D07B14C920DF6461D46789632A" xlink:to="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_056440D07B14C920DF6461D46789632A" xlink:to="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeApproachValuationTechniqueMember" xlink:label="loc_us-gaap_IncomeApproachValuationTechniqueMember_F0A24A0EC9AB6050476A61D467898BF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC" xlink:to="loc_us-gaap_IncomeApproachValuationTechniqueMember_F0A24A0EC9AB6050476A61D467898BF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketApproachValuationTechniqueMember" xlink:label="loc_us-gaap_MarketApproachValuationTechniqueMember_EDF1F2C3DCD399DDC3CC61D467892F56" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_267E78D19661CFCD566461D4678985BC" xlink:to="loc_us-gaap_MarketApproachValuationTechniqueMember_EDF1F2C3DCD399DDC3CC61D467892F56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_156138C5149EFD4E3EA961D467892274" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_156138C5149EFD4E3EA961D467892274" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_156138C5149EFD4E3EA961D467892274" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_156138C5149EFD4E3EA961D467892274" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputConstantPrepaymentRateMember" xlink:label="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_5D5D08C8C1D268F528C361D4678943D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_us-gaap_MeasurementInputConstantPrepaymentRateMember_5D5D08C8C1D268F528C361D4678943D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDefaultRateMember" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_16991AD8144A367060A861D46789F096" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_16991AD8144A367060A861D46789F096" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputLossSeverityMember" xlink:label="loc_us-gaap_MeasurementInputLossSeverityMember_1B2A9F7FFF756FB3A72361D46789548F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_us-gaap_MeasurementInputLossSeverityMember_1B2A9F7FFF756FB3A72361D46789548F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputDiscountRateMember" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_8CDF55A53D2F32D451FE61D46789BE17" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_8CDF55A53D2F32D451FE61D46789BE17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputExpectedTermMember" xlink:label="loc_us-gaap_MeasurementInputExpectedTermMember_04BE4607C41BA65374ED61D46789C6F3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_us-gaap_MeasurementInputExpectedTermMember_04BE4607C41BA65374ED61D46789C6F3" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ProjectedProfitofUnderlyingLoansMember" xlink:label="loc_bofi_ProjectedProfitofUnderlyingLoansMember_EDADCA29DD9AB2D9F272625868DD119B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_FE41F49592B6FEA019EB61D467896A1F" xlink:to="loc_bofi_ProjectedProfitofUnderlyingLoansMember_EDADCA29DD9AB2D9F272625868DD119B" 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_6E89ED4F5B5170EFBF0161D467890039" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_3CFABB44CF49421A5E9161D46789B988" xlink:to="loc_srt_RangeAxis_6E89ED4F5B5170EFBF0161D467890039" 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_6A9CC4EF649A87B7801F61D4678926AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_6E89ED4F5B5170EFBF0161D467890039" xlink:to="loc_srt_RangeMember_6A9CC4EF649A87B7801F61D4678926AF_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_6A9CC4EF649A87B7801F61D4678926AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_6E89ED4F5B5170EFBF0161D467890039" xlink:to="loc_srt_RangeMember_6A9CC4EF649A87B7801F61D4678926AF" 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_092BD9081CD682FDA7F961D46789E3C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6A9CC4EF649A87B7801F61D4678926AF" xlink:to="loc_srt_MinimumMember_092BD9081CD682FDA7F961D46789E3C4" 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_EFA4249EBD73E132620561D46789370E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6A9CC4EF649A87B7801F61D4678926AF" xlink:to="loc_srt_MaximumMember_EFA4249EBD73E132620561D46789370E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_WeightedAverageMember" xlink:label="loc_srt_WeightedAverageMember_79C6B73FD367F5E7788C61D46789A5D7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6A9CC4EF649A87B7801F61D4678926AF" xlink:to="loc_srt_WeightedAverageMember_79C6B73FD367F5E7788C61D46789A5D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_4E930EA5959F139A6B7B61D467890C08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_TradingSecuritiesDebt_4E930EA5959F139A6B7B61D467890C08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_2037261E55477BADF34461D467895E5F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_AvailableForSaleSecurities_2037261E55477BADF34461D467895E5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServicingAssetAtFairValueAmount" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_8738A7244D0FD3CE6BD161D467894092" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_8738A7244D0FD3CE6BD161D467894092" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeNet" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_B253FF36C10858FE76D061D46789C770" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_B253FF36C10858FE76D061D46789C770" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesTradingMeasurementInput" xlink:label="loc_us-gaap_DebtSecuritiesTradingMeasurementInput_31EE7C9DFD492A4DBF9061D46789A72F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_DebtSecuritiesTradingMeasurementInput_31EE7C9DFD492A4DBF9061D46789A72F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_B8E035AD38521AF7DB3261D467892CF8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleMeasurementInput_B8E035AD38521AF7DB3261D467892CF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServicingAssetMeasurementInput" xlink:label="loc_us-gaap_ServicingAssetMeasurementInput_8CCDC5E243F6FDFF8F7E61D46789D989" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_ServicingAssetMeasurementInput_8CCDC5E243F6FDFF8F7E61D46789D989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetMeasurementInput" xlink:label="loc_us-gaap_DerivativeAssetMeasurementInput_76D603CB3C90977FC5DE61D46789D97E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_4E16D27D9ABD47F0D5B461D467898C27" xlink:to="loc_us-gaap_DerivativeAssetMeasurementInput_76D603CB3C90977FC5DE61D46789D97E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FairValueTables" 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_D7FDA914F124994E34185CC69048AE78" 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_7DE0F3CFF8919B3F3B1D5CC6904845AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_7DE0F3CFF8919B3F3B1D5CC6904845AE" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0D60D3A950233903A2455CC69048BAD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_7DE0F3CFF8919B3F3B1D5CC6904845AE" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0D60D3A950233903A2455CC69048BAD7" 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_8A5AF92E3E6CACE9D7F05CC69048CF23_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0D60D3A950233903A2455CC69048BAD7" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8A5AF92E3E6CACE9D7F05CC69048CF23_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_8A5AF92E3E6CACE9D7F05CC69048CF23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0D60D3A950233903A2455CC69048BAD7" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8A5AF92E3E6CACE9D7F05CC69048CF23" 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_9DBBC45AF11412E234425CC690488498" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8A5AF92E3E6CACE9D7F05CC69048CF23" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_9DBBC45AF11412E234425CC690488498" 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_27479E8D4B686C49A80B5CC690481979" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8A5AF92E3E6CACE9D7F05CC69048CF23" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_27479E8D4B686C49A80B5CC690481979" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock_B83492CF02C1C6AED97C5CC6904887C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock_B83492CF02C1C6AED97C5CC6904887C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock_36E09982993B6A32F0D65CC690480CB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock_36E09982993B6A32F0D65CC690480CB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock_C50F7F944353FFA8C7945CC690483726" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock_C50F7F944353FFA8C7945CC690483726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock_B3B0C88A54A67CD1FA6E5CC69048F08D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock_B3B0C88A54A67CD1FA6E5CC69048F08D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock_9F5E6E703E254DDF1A355CC69048DBF5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock_9F5E6E703E254DDF1A355CC69048DBF5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FairValueLoansHeldForSaleTableTextBlock" xlink:label="loc_bofi_FairValueLoansHeldForSaleTableTextBlock_E767E0B75BD6C781437C5CC69048D1A6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_bofi_FairValueLoansHeldForSaleTableTextBlock_E767E0B75BD6C781437C5CC69048D1A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTextBlock" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTextBlock_F71F170F1ACC8F5204285CC69048E367" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_D7FDA914F124994E34185CC69048AE78" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTextBlock_F71F170F1ACC8F5204285CC69048E367" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FurnitureEquipmentAndSoftware" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/FurnitureEquipmentAndSoftwareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8D5F1AC47724F78C90D35CC68EBA6D02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8D5F1AC47724F78C90D35CC68EBA6D02" 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_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_772A2091F3A9FAF0F3B45CC68EBA30BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8D5F1AC47724F78C90D35CC68EBA6D02" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_772A2091F3A9FAF0F3B45CC68EBA30BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_772A2091F3A9FAF0F3B45CC68EBA30BD" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_772A2091F3A9FAF0F3B45CC68EBA30BD" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_01A3400C5B762705CB6A5CC68EBA789B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_01A3400C5B762705CB6A5CC68EBA789B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_0366899610D4191900275CC68EBAC01C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_0366899610D4191900275CC68EBAC01C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaap_ComputerEquipmentMember_3FF731B3C080C8E2BF8B5CC68EBA2220" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:to="loc_us-gaap_ComputerEquipmentMember_3FF731B3C080C8E2BF8B5CC68EBA2220" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerSoftwareIntangibleAssetMember" xlink:label="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_D362FC5B9707CE17C80E5CC68EBA503A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_60EF564DB20E9F1E31C25CC68EBA538D" xlink:to="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_D362FC5B9707CE17C80E5CC68EBA503A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_AFD5C8B3762A1579EE935CC68EBA5C04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_AFD5C8B3762A1579EE935CC68EBA5C04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_695AB4AF3D558B5545EE5CC68EBA72BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_695AB4AF3D558B5545EE5CC68EBA72BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_742962EB6C5935BA0DCA5CC68EBA6635" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_742962EB6C5935BA0DCA5CC68EBA6635" 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_CF357A3F1BDB7AB758D45CC68EBA3BC7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_307560320F1F612551475CC68EBACF4F" xlink:to="loc_us-gaap_DepreciationAndAmortization_CF357A3F1BDB7AB758D45CC68EBA3BC7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/FurnitureEquipmentAndSoftwareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsActivityInGoodwillBalanceDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_4F1B615FA43AE607002C5CC68EAB89EA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_FDD71C12AAA2D88C80385CC68EABD70D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_4F1B615FA43AE607002C5CC68EAB89EA" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_FDD71C12AAA2D88C80385CC68EABD70D" 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_2C60B3D33F8EDCB593275CC68EABDB21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_FDD71C12AAA2D88C80385CC68EABD70D" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_2C60B3D33F8EDCB593275CC68EABDB21" 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_CE1E55CE7FA7BED59C905CC68EABC5D8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2C60B3D33F8EDCB593275CC68EABDB21" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE1E55CE7FA7BED59C905CC68EABC5D8_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_CE1E55CE7FA7BED59C905CC68EABC5D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2C60B3D33F8EDCB593275CC68EABDB21" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE1E55CE7FA7BED59C905CC68EABC5D8" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_399843F722FFAFB00BE35CC68EAB4B97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_CE1E55CE7FA7BED59C905CC68EABC5D8" xlink:to="loc_bofi_EPICSystemsInc.Member_399843F722FFAFB00BE35CC68EAB4B97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_4281263E27D798EFC7965CC68EAB6B3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_4F1B615FA43AE607002C5CC68EAB89EA" xlink:to="loc_us-gaap_GoodwillRollForward_4281263E27D798EFC7965CC68EAB6B3B" 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_1194C4258E21783BB9695CC68EAB5665" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_4281263E27D798EFC7965CC68EAB6B3B" xlink:to="loc_us-gaap_Goodwill_1194C4258E21783BB9695CC68EAB5665" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_C3D13C2F65A6DAC09D2F5CC68EAB103C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_4281263E27D798EFC7965CC68EAB6B3B" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_C3D13C2F65A6DAC09D2F5CC68EAB103C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsEstimatedFutureAmortizationExpenseOfAcquiredIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5DFA0ADF7461974C80D85CC68E9B04A7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1FD4006086F389FB96A55CC68E8CBB74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5DFA0ADF7461974C80D85CC68E9B04A7" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1FD4006086F389FB96A55CC68E8CBB74" 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_A537F4F1936C53CBFC635CC68E8C5999" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_1FD4006086F389FB96A55CC68E8CBB74" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_A537F4F1936C53CBFC635CC68E8C5999" 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_085CCF02B97135A26AF75CC68E8C7795_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A537F4F1936C53CBFC635CC68E8C5999" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_085CCF02B97135A26AF75CC68E8C7795_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_085CCF02B97135A26AF75CC68E8C7795" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A537F4F1936C53CBFC635CC68E8C5999" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_085CCF02B97135A26AF75CC68E8C7795" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_CCE568CF584A899AC0C45CC68E8C5CEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_085CCF02B97135A26AF75CC68E8C7795" xlink:to="loc_bofi_EPICSystemsInc.Member_CCE568CF584A899AC0C45CC68E8C5CEF" 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_C3251C672E1B35DFA8D45CC68E9BE7C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5DFA0ADF7461974C80D85CC68E9B04A7" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_C3251C672E1B35DFA8D45CC68E9BE7C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5DFA0ADF7461974C80D85CC68E9B04A7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_C09252A19FB32D69E2575CC68E9B200D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_C09252A19FB32D69E2575CC68E9B200D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_553D9DC7E0EBEE5228DD5CC68E9BBF58" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_553D9DC7E0EBEE5228DD5CC68E9BBF58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_7254E008CE729627B70D5CC68E9BA2D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_7254E008CE729627B70D5CC68E9BA2D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_41C7CBE73715946EC1125CC68E9B45F5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_41C7CBE73715946EC1125CC68E9B45F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_C7AAECA26076A66787615CC68E9B8072" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_C7AAECA26076A66787615CC68E9B8072" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_3B8870EF005EBFB4F4D15CC68E9B6FE2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_3B8870EF005EBFB4F4D15CC68E9B6FE2" 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_FCB8E33802D5F78A27AB5CC68E9B33C4" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8C73FD4DF3454FA62BB55CC68E9B28EB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_FCB8E33802D5F78A27AB5CC68E9B33C4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsSummaryOfAcquiredIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_AB1B95229F6B7C1A73A55CC68EAB3958" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_F3CF79987E9F5FD2F4765CC68E9B511F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_AB1B95229F6B7C1A73A55CC68EAB3958" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_F3CF79987E9F5FD2F4765CC68E9B511F" 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_B3E98580F337E6D7EBC15CC68E9B2398" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_F3CF79987E9F5FD2F4765CC68E9B511F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B3E98580F337E6D7EBC15CC68E9B2398" 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_A1D5BAF24B5AC61904405CC68E9B96C1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B3E98580F337E6D7EBC15CC68E9B2398" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A1D5BAF24B5AC61904405CC68E9B96C1_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_A1D5BAF24B5AC61904405CC68E9B96C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B3E98580F337E6D7EBC15CC68E9B2398" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A1D5BAF24B5AC61904405CC68E9B96C1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_162377B0C00ED4432F4E5CC68E9B51B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A1D5BAF24B5AC61904405CC68E9B96C1" xlink:to="loc_bofi_EPICSystemsInc.Member_162377B0C00ED4432F4E5CC68E9B51B9" xlink:type="arc" />
    <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_471C566CEFFF55BE00595CC68EABB917" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_F3CF79987E9F5FD2F4765CC68E9B511F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_471C566CEFFF55BE00595CC68EABB917" 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_BF3E4442EA4A6011B3ED5CC68EAB92B4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_471C566CEFFF55BE00595CC68EABB917" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4_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_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_471C566CEFFF55BE00595CC68EABB917" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_C9C29256C3D8D38132535CC68EAB7A8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_C9C29256C3D8D38132535CC68EAB7A8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_B571E96C12033014FCFE5CC68EAB34DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:to="loc_us-gaap_CustomerRelationshipsMember_B571E96C12033014FCFE5CC68EAB34DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_6312252B07D6B6ED08745CC68EABD4EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_6312252B07D6B6ED08745CC68EABD4EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_4A4E7ABFE7371FBC045D5CC68EAB4157" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_BF3E4442EA4A6011B3ED5CC68EAB92B4" xlink:to="loc_us-gaap_TradeNamesMember_4A4E7ABFE7371FBC045D5CC68EAB4157" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_272B08CCE54E138BE4745CC68EABBA93" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_AB1B95229F6B7C1A73A55CC68EAB3958" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_272B08CCE54E138BE4745CC68EABBA93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_BB72170017310F61CEF75CC68EABBD94" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_AB1B95229F6B7C1A73A55CC68EAB3958" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_BB72170017310F61CEF75CC68EABBD94" 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_283CBD1C598F3EBB15D35CC68EABC895" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_AB1B95229F6B7C1A73A55CC68EAB3958" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_283CBD1C598F3EBB15D35CC68EABC895" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/GoodwillAndOtherIintangibleAssetsWeightedAverageUsefulLifeOfAcquiredIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8D67F84AC06D78E980E45CC68E9B6B5D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_8BE2F37F73410C35E68D5CC68E9BFBE2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8D67F84AC06D78E980E45CC68E9B6B5D" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_8BE2F37F73410C35E68D5CC68E9BFBE2" 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_3012DC5A021D325DC93C5CC68E9B3C75" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_8BE2F37F73410C35E68D5CC68E9BFBE2" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3012DC5A021D325DC93C5CC68E9B3C75" 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_0DBF9609D800D52530C85CC68E9B8DF0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3012DC5A021D325DC93C5CC68E9B3C75" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DBF9609D800D52530C85CC68E9B8DF0_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_0DBF9609D800D52530C85CC68E9B8DF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3012DC5A021D325DC93C5CC68E9B3C75" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DBF9609D800D52530C85CC68E9B8DF0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EPICSystemsInc.Member" xlink:label="loc_bofi_EPICSystemsInc.Member_A3C04A4A5D5B801DD5305CC68E9BF8BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0DBF9609D800D52530C85CC68E9B8DF0" xlink:to="loc_bofi_EPICSystemsInc.Member_A3C04A4A5D5B801DD5305CC68E9BF8BF" xlink:type="arc" />
    <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_65A440E5602FA389A4535CC68E9B8D8A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_8BE2F37F73410C35E68D5CC68E9BFBE2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_65A440E5602FA389A4535CC68E9B8D8A" 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_648554393A590B6A309E5CC68E9B5202_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_65A440E5602FA389A4535CC68E9B8D8A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202_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_648554393A590B6A309E5CC68E9B5202" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_65A440E5602FA389A4535CC68E9B8D8A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_2E7243A4BE1ECCD60FA15CC68E9BC5D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_2E7243A4BE1ECCD60FA15CC68E9BC5D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_14D4BEAB3D669600AED25CC68E9B707E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202" xlink:to="loc_us-gaap_CustomerRelationshipsMember_14D4BEAB3D669600AED25CC68E9B707E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_5FCECD90D88FB78827E75CC68E9B9952" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_5FCECD90D88FB78827E75CC68E9B9952" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaap_TradeNamesMember_895E9455061BD6BC81725CC68E9B5EC8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_648554393A590B6A309E5CC68E9B5202" xlink:to="loc_us-gaap_TradeNamesMember_895E9455061BD6BC81725CC68E9B5EC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_1F559A9A7BEA447FC21D5CC68E9B68A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8D67F84AC06D78E980E45CC68E9B6B5D" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_1F559A9A7BEA447FC21D5CC68E9B68A1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesComponentsOfIncomeTaxesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesNetDeferredTaxAssetDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLosses" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesActivityForAllowanceForLoanLossesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForCreditLossNarrativeDetails" 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_6BF0E58F3D731D4E6C595CC68F5529E9" 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_CA3D8405FBA5580E31795CC68F54288D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6BF0E58F3D731D4E6C595CC68F5529E9" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_CA3D8405FBA5580E31795CC68F54288D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_RangeOfFicoScoreAxis" xlink:label="loc_bofi_RangeOfFicoScoreAxis_A6143D68F4F5FFFB6D255CC68F55946B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_CA3D8405FBA5580E31795CC68F54288D" xlink:to="loc_bofi_RangeOfFicoScoreAxis_A6143D68F4F5FFFB6D255CC68F55946B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_RangeOfFicoScoreDomain" xlink:label="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_RangeOfFicoScoreAxis_A6143D68F4F5FFFB6D255CC68F55946B" xlink:to="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_RangeOfFicoScoreDomain" xlink:label="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_RangeOfFicoScoreAxis_A6143D68F4F5FFFB6D255CC68F55946B" xlink:to="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FicoScoreGreaterThanOrEqualTo770Member" xlink:label="loc_bofi_FicoScoreGreaterThanOrEqualTo770Member_3FBD910A89231B608C9D5CC68F55F2F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:to="loc_bofi_FicoScoreGreaterThanOrEqualTo770Member_3FBD910A89231B608C9D5CC68F55F2F1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FicoScore715769Member" xlink:label="loc_bofi_FicoScore715769Member_61BB9D1C04019385ABA75CC68F557218" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:to="loc_bofi_FicoScore715769Member_61BB9D1C04019385ABA75CC68F557218" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FicoScore700714Member" xlink:label="loc_bofi_FicoScore700714Member_A7823280055D3E3BD8BE5CC68F559922" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:to="loc_bofi_FicoScore700714Member_A7823280055D3E3BD8BE5CC68F559922" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FicoScore660699Member" xlink:label="loc_bofi_FicoScore660699Member_4BE083546549084258AA5CC68F55C21B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:to="loc_bofi_FicoScore660699Member_4BE083546549084258AA5CC68F55C21B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FicoScoreLessThan660Member" xlink:label="loc_bofi_FicoScoreLessThan660Member_6C88B3A0EC21FFEFC64E5CC68F5571FE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RangeOfFicoScoreDomain_FC9E5CB177B1D2B00FCB5CC68F55789F" xlink:to="loc_bofi_FicoScoreLessThan660Member_6C88B3A0EC21FFEFC64E5CC68F5571FE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioRangeAxis" xlink:label="loc_bofi_LoanToValueRatioRangeAxis_7B674F181E3671141E095CC68F55161E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_CA3D8405FBA5580E31795CC68F54288D" xlink:to="loc_bofi_LoanToValueRatioRangeAxis_7B674F181E3671141E095CC68F55161E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioRangeDomain" xlink:label="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanToValueRatioRangeAxis_7B674F181E3671141E095CC68F55161E" xlink:to="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioRangeDomain" xlink:label="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanToValueRatioRangeAxis_7B674F181E3671141E095CC68F55161E" xlink:to="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioLessThanOrEqualTo60Member" xlink:label="loc_bofi_LoanToValueRatioLessThanOrEqualTo60Member_B127C1EBBCEC229115085CC68F558824" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatioLessThanOrEqualTo60Member_B127C1EBBCEC229115085CC68F558824" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatio6170Member" xlink:label="loc_bofi_LoanToValueRatio6170Member_F5B92CF8AD95868C921C5CC68F55BE96" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatio6170Member_F5B92CF8AD95868C921C5CC68F55BE96" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatio7180Member" xlink:label="loc_bofi_LoanToValueRatio7180Member_39AC26796CD44C8295525CC68F55AC3E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatio7180Member_39AC26796CD44C8295525CC68F55AC3E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioGreaterThan80Member" xlink:label="loc_bofi_LoanToValueRatioGreaterThan80Member_59F6E3456945158252ED5CC68F559D86" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatioGreaterThan80Member_59F6E3456945158252ED5CC68F559D86" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueLessThanOrEqualTo55Member" xlink:label="loc_bofi_LoanToValueLessThanOrEqualTo55Member_264432271A007BDA449A5CC68F551E04" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueLessThanOrEqualTo55Member_264432271A007BDA449A5CC68F551E04" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatio5665Member" xlink:label="loc_bofi_LoanToValueRatio5665Member_640E6CC8E29002CE264E5CC68F550A59" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatio5665Member_640E6CC8E29002CE264E5CC68F550A59" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatio6675Member" xlink:label="loc_bofi_LoanToValueRatio6675Member_B68EEC0CE761B72237B75CC68F555151" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatio6675Member_B68EEC0CE761B72237B75CC68F555151" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatioRange7680Member" xlink:label="loc_bofi_LoanToValueRatioRange7680Member_A430C0556910FD3B28F25CC68F554E0D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatioRange7680Member_A430C0556910FD3B28F25CC68F554E0D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueLessThanOrEqualTo50Member" xlink:label="loc_bofi_LoanToValueLessThanOrEqualTo50Member_A8B80ACEB447EEE0BF3A5CC68F55C429" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueLessThanOrEqualTo50Member_A8B80ACEB447EEE0BF3A5CC68F55C429" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanToValueRatio5160Member" xlink:label="loc_bofi_LoanToValueRatio5160Member_391F5E79D04E3184EFA35CC68F559348" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_LoanToValueRatioRangeDomain_AF6C9A40DDD88A9762DA5CC68F55D5BE" xlink:to="loc_bofi_LoanToValueRatio5160Member_391F5E79D04E3184EFA35CC68F559348" 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_39B7BAF359112B6268B15CC68F5567FC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_CA3D8405FBA5580E31795CC68F54288D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_39B7BAF359112B6268B15CC68F5567FC" 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_8197AD384F71ABBA3E345CC68F55E583_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_39B7BAF359112B6268B15CC68F5567FC" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583_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_8197AD384F71ABBA3E345CC68F55E583" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_39B7BAF359112B6268B15CC68F5567FC" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_778612D13DB2E24426725CC68F556C69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583" xlink:to="loc_us-gaap_AutomobileLoanMember_778612D13DB2E24426725CC68F556C69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_063007BE598CAB0B7DB45CC68F557EDD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583" xlink:to="loc_us-gaap_ResidentialMortgageMember_063007BE598CAB0B7DB45CC68F557EDD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_9DC259DD86E32AE5218A5CC68F55E76D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_9DC259DD86E32AE5218A5CC68F55E76D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_6C5C183AFDB1009FB6605CC68F55A777" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8197AD384F71ABBA3E345CC68F55E583" xlink:to="loc_us-gaap_RealEstateMember_6C5C183AFDB1009FB6605CC68F55A777" 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_941BEB2BBC01F5B3F27A5CC68F557F67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6BF0E58F3D731D4E6C595CC68F5529E9" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_941BEB2BBC01F5B3F27A5CC68F557F67" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableInterestOnly" xlink:label="loc_bofi_LoansAndLeasesReceivableInterestOnly_C874C12E6A501A5827505CC68F55D20A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6BF0E58F3D731D4E6C595CC68F5529E9" xlink:to="loc_bofi_LoansAndLeasesReceivableInterestOnly_C874C12E6A501A5827505CC68F55D20A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableOptionAdjustableRate" xlink:label="loc_bofi_LoansAndLeasesReceivableOptionAdjustableRate_43BF0B17C6ACBFBC80135CC68F559303" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_6BF0E58F3D731D4E6C595CC68F5529E9" xlink:to="loc_bofi_LoansAndLeasesReceivableOptionAdjustableRate_43BF0B17C6ACBFBC80135CC68F559303" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByClassDetails" 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_22C15768075797CEA6E85CC68F4AED4E" 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_213DC380B1BE28B1BEA15CC68F483560" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_22C15768075797CEA6E85CC68F4AED4E" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_213DC380B1BE28B1BEA15CC68F483560" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_22F091DD5273ED070C635CC68F48DF64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_213DC380B1BE28B1BEA15CC68F483560" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_22F091DD5273ED070C635CC68F48DF64" 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_AFDDFBC2E79135D052A55CC68F487812_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_22F091DD5273ED070C635CC68F48DF64" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812_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_AFDDFBC2E79135D052A55CC68F487812" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_22F091DD5273ED070C635CC68F48DF64" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_79BF75231E844A7282615CC68F49762C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_us-gaap_ResidentialMortgageMember_79BF75231E844A7282615CC68F49762C" 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_515EF8496E15750936865CC68F49CE18" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_us-gaap_HomeEquityLoanMember_515EF8496E15750936865CC68F49CE18" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_D9AAD1095FEFDA5018575CC68F4997D5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_bofi_WarehouseAndOtherMember_D9AAD1095FEFDA5018575CC68F4997D5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_EBB87DCB7BFAE9C080815CC68F490FAF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_EBB87DCB7BFAE9C080815CC68F490FAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_06E41D9009A02B62EA375CC68F4935D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_us-gaap_RealEstateMember_06E41D9009A02B62EA375CC68F4935D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_4021E38AB7EB96F694C95CC68F4AC148" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_us-gaap_AutomobileLoanMember_4021E38AB7EB96F694C95CC68F4AC148" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_C9AAF9758E6E6E4E08965CC68F4A0986" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_bofi_FactoringMember_C9AAF9758E6E6E4E08965CC68F4A0986" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_25C6B17E5EDBE8A3BE5A5CC68F4A1381" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_bofi_CommercialandIndustrialMember_25C6B17E5EDBE8A3BE5A5CC68F4A1381" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_5EFDADF907D6CF2804FC5CC68F4A065D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_AFDDFBC2E79135D052A55CC68F487812" xlink:to="loc_bofi_OtherLoanMember_5EFDADF907D6CF2804FC5CC68F4A065D" 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_401484412752C1F305615CC68F4A2C72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_22C15768075797CEA6E85CC68F4AED4E" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" 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_0403D4B8F2C7309E13A15CC68F4B57FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_0403D4B8F2C7309E13A15CC68F4B57FD" 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_82070E775440081347F75CC68F4BEF18" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_82070E775440081347F75CC68F4BEF18" 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_13657FB21564E40B122D5CC68F4B2666" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_13657FB21564E40B122D5CC68F4B2666" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AllowanceForLoanAndLeasesTransferOfPortfolioLoansAndLeasesToHeldForSale" xlink:label="loc_bofi_AllowanceForLoanAndLeasesTransferOfPortfolioLoansAndLeasesToHeldForSale_4640DC449122AE49A1AE5CC68F4BDB70" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" xlink:to="loc_bofi_AllowanceForLoanAndLeasesTransferOfPortfolioLoansAndLeasesToHeldForSale_4640DC449122AE49A1AE5CC68F4BDB70" 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_B68E6C1D9D93087309315CC68F4CAAF1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_401484412752C1F305615CC68F4A2C72" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts_B68E6C1D9D93087309315CC68F4CAAF1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesAllowanceForLoanLossByPortfolioClassDetails" 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_A7CE72935F49A48FF8C85CC68F2860FA" 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_0EBA6AC95EF354B125C15CC68F284747" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_0EBA6AC95EF354B125C15CC68F284747" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27FA36D05F826C4322735CC68F28F6F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_0EBA6AC95EF354B125C15CC68F284747" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27FA36D05F826C4322735CC68F28F6F5" 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_EF0B8BA7BBCE0D76D8E15CC68F28A503_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27FA36D05F826C4322735CC68F28F6F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503_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_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_27FA36D05F826C4322735CC68F28F6F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_F6519A16482D73E3D3FD5CC68F286A0F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_us-gaap_ResidentialMortgageMember_F6519A16482D73E3D3FD5CC68F286A0F" 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_DEBB7A4C8E54FC56C8E55CC68F2808B2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_us-gaap_HomeEquityLoanMember_DEBB7A4C8E54FC56C8E55CC68F2808B2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_E93DFDF09D44BB8497AE5CC68F28946A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_bofi_WarehouseAndOtherMember_E93DFDF09D44BB8497AE5CC68F28946A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_05FEB09F774F80CA6C4F5CC68F28DE2F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_05FEB09F774F80CA6C4F5CC68F28DE2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_5A4FBFA7628F8116D20D5CC68F285896" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_us-gaap_RealEstateMember_5A4FBFA7628F8116D20D5CC68F285896" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_7336119B9FD1FAACA15E5CC68F28F5FF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_us-gaap_AutomobileLoanMember_7336119B9FD1FAACA15E5CC68F28F5FF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_47F6E72CDDB7EA48DB075CC68F284864" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_bofi_FactoringMember_47F6E72CDDB7EA48DB075CC68F284864" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_9F12119F2D876EDE6C5A5CC68F28E76F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_bofi_CommercialandIndustrialMember_9F12119F2D876EDE6C5A5CC68F28E76F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_FFD4B989E99E8A5204F95CC68F281E4F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_EF0B8BA7BBCE0D76D8E15CC68F28A503" xlink:to="loc_bofi_OtherLoanMember_FFD4B989E99E8A5204F95CC68F281E4F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentGeneralAllowance" xlink:label="loc_bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentGeneralAllowance_C0A505C7DC321E55E83D5CC68F28653E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentGeneralAllowance_C0A505C7DC321E55E83D5CC68F28653E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentSpecificAllowance" xlink:label="loc_bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentSpecificAllowance_39C1D41BAED40424BD485CC68F28B8B8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_bofi_FinancingReceivableAllowanceforCreditLossesIndividuallyEvaluatedforImpairmentSpecificAllowance_39C1D41BAED40424BD485CC68F28B8B8" 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_1B6E50DBF0ECD8D9CB9E5CC68F289689" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_1B6E50DBF0ECD8D9CB9E5CC68F289689" 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_7B405F74A4549F0C0EC55CC68F28310C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_7B405F74A4549F0C0EC55CC68F28310C" 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_77FCE958030D30F0FCE25CC68F28D3EF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_77FCE958030D30F0FCE25CC68F28D3EF" 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_D3F20A4276D6ABA6C6E05CC68F284206" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_D3F20A4276D6ABA6C6E05CC68F284206" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_F23092518F7A8A0412F35CC68F2810B2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_F23092518F7A8A0412F35CC68F2810B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums" xlink:label="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_029B1FF8CD6D93A484235CC68F283965" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_029B1FF8CD6D93A484235CC68F283965" 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_7678469172CF9257BEE95CC68F2875E1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_A7CE72935F49A48FF8C85CC68F2860FA" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_7678469172CF9257BEE95CC68F2875E1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesCompositionOfLoansDetails" 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_72870CF56362DF20EC815CC68F74E1EC" 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_1C24DC6A3F8BF517F3815CC68F7409B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_72870CF56362DF20EC815CC68F74E1EC" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1C24DC6A3F8BF517F3815CC68F7409B4" 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_0F146475600FEF1B50115CC68F74C8E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1C24DC6A3F8BF517F3815CC68F7409B4" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0F146475600FEF1B50115CC68F74C8E0" 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_06A466EDF61682E6F7A35CC68F74E14A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0F146475600FEF1B50115CC68F74C8E0" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A_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_06A466EDF61682E6F7A35CC68F74E14A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_0F146475600FEF1B50115CC68F74C8E0" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" 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_D75CD674A3999AF422EF5CC68F742216" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_D75CD674A3999AF422EF5CC68F742216" 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_B790B15BF9C8F9359C745CC68F74E06A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_B790B15BF9C8F9359C745CC68F74E06A" 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_EA54020CD67EAB86C48B5CC68F7411A9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_EA54020CD67EAB86C48B5CC68F7411A9" 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_158A9B232530D661A54E5CC68F740660" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" xlink:to="loc_us-gaap_UnallocatedFinancingReceivablesMember_158A9B232530D661A54E5CC68F740660" 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_ABA865B6D248EBAD147F5CC68F74AD51" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_06A466EDF61682E6F7A35CC68F74E14A" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_ABA865B6D248EBAD147F5CC68F74AD51" 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_E2D621ECA20332D8D34C5CC68F749B2D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_1C24DC6A3F8BF517F3815CC68F7409B4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_E2D621ECA20332D8D34C5CC68F749B2D" 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_08B44FA52C5214F783395CC68F74FFA2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_E2D621ECA20332D8D34C5CC68F749B2D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2_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_08B44FA52C5214F783395CC68F74FFA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_E2D621ECA20332D8D34C5CC68F749B2D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_B8EA59EC0DE2EA0617B95CC68F745F12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_us-gaap_ResidentialMortgageMember_B8EA59EC0DE2EA0617B95CC68F745F12" 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_4DD0CD1EBDBBE728342A5CC68F742C69" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_us-gaap_HomeEquityLoanMember_4DD0CD1EBDBBE728342A5CC68F742C69" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_86F892DA25624B89B6155CC68F745BCE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_WarehouseAndOtherMember_86F892DA25624B89B6155CC68F745BCE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_FCE6414290D6C34013265CC68F741475" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_FCE6414290D6C34013265CC68F741475" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_08113C3334E65BF420F25CC68F7429E9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_us-gaap_RealEstateMember_08113C3334E65BF420F25CC68F7429E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_A5F6E18EDA6A12E338D25CC68F749F8E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_us-gaap_AutomobileLoanMember_A5F6E18EDA6A12E338D25CC68F749F8E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_EEAE3B060432F19C585F5CC68F74C005" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_FactoringMember_EEAE3B060432F19C585F5CC68F74C005" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_DAB6EEDC1D4450FFAA2B5CC68F740330" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_CommercialandIndustrialMember_DAB6EEDC1D4450FFAA2B5CC68F740330" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_85A5D0243850677341BA5CC68F74FBD1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_OtherLoanMember_85A5D0243850677341BA5CC68F74FBD1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseLoansMember" xlink:label="loc_bofi_WarehouseLoansMember_271C075BE66BD367FA0E5CC68F74E6C8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_08B44FA52C5214F783395CC68F74FFA2" xlink:to="loc_bofi_WarehouseLoansMember_271C075BE66BD367FA0E5CC68F74E6C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_D4E2EB238372932FCEBD5CC68F7493DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_72870CF56362DF20EC815CC68F74E1EC" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_D4E2EB238372932FCEBD5CC68F7493DE" 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_78D92E50F32BA5C59C255CC68F742AF6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_72870CF56362DF20EC815CC68F74E1EC" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_78D92E50F32BA5C59C255CC68F742AF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums" xlink:label="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_74F9AC822B33EBFE56975CC68F74310A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_72870CF56362DF20EC815CC68F74E1EC" xlink:to="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_74F9AC822B33EBFE56975CC68F74310A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_B664588F37460D344D205CC68F74FA9F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_72870CF56362DF20EC815CC68F74E1EC" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_B664588F37460D344D205CC68F74FA9F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesImpairedLoansDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansByClassModifiedAsTdrWithPreAndPostBalancesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_8141586B4A0FAC4D505B5CC68EDAA76C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_5294516A2C98164AC19D5CC68EDA9BD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_8141586B4A0FAC4D505B5CC68EDAA76C" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_5294516A2C98164AC19D5CC68EDA9BD4" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C12E71722004CBEB01305CC68EDACAC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_5294516A2C98164AC19D5CC68EDA9BD4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C12E71722004CBEB01305CC68EDACAC9" 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_B0D456D98C1C95E967F25CC68EDAD8DC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C12E71722004CBEB01305CC68EDACAC9" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_B0D456D98C1C95E967F25CC68EDAD8DC_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_B0D456D98C1C95E967F25CC68EDAD8DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C12E71722004CBEB01305CC68EDACAC9" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_B0D456D98C1C95E967F25CC68EDAD8DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_E820B7F874DB99EBB0CA5CC68EDAC5CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_B0D456D98C1C95E967F25CC68EDAD8DC" xlink:to="loc_us-gaap_ResidentialMortgageMember_E820B7F874DB99EBB0CA5CC68EDAC5CD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_16F5DE1D3E089FF23E6C5CC68EDAEE42" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_B0D456D98C1C95E967F25CC68EDAD8DC" xlink:to="loc_bofi_OtherLoanMember_16F5DE1D3E089FF23E6C5CC68EDAEE42" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_703361C61528C2C3951E5CC68EDA69B1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_5294516A2C98164AC19D5CC68EDA9BD4" xlink:to="loc_bofi_LoanSourceAxis_703361C61528C2C3951E5CC68EDA69B1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_72CE91AE9219AA50D8955CC68EDAD317_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_703361C61528C2C3951E5CC68EDA69B1" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_72CE91AE9219AA50D8955CC68EDAD317_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_72CE91AE9219AA50D8955CC68EDAD317" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_703361C61528C2C3951E5CC68EDA69B1" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_72CE91AE9219AA50D8955CC68EDAD317" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_07B4380E5356A403BE985CC68EDAFB5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_72CE91AE9219AA50D8955CC68EDAD317" xlink:to="loc_bofi_InHouseOriginatedLoansMember_07B4380E5356A403BE985CC68EDAFB5E" 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_09FE585A1F7A3939CF4A5CC68EDA0E61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_8141586B4A0FAC4D505B5CC68EDAA76C" xlink:to="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_09FE585A1F7A3939CF4A5CC68EDA0E61" 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_A4B9F5D82F28E6F0B2245CC68EDA390D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_8141586B4A0FAC4D505B5CC68EDAA76C" xlink:to="loc_us-gaap_FinancingReceivableModificationsPreModificationRecordedInvestment2_A4B9F5D82F28E6F0B2245CC68EDA390D" 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_F62B89F9874DF474E5F25CC68EDAABE4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_8141586B4A0FAC4D505B5CC68EDAA76C" xlink:to="loc_us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2_F62B89F9874DF474E5F25CC68EDAABE4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansByCreditQualityIndicatorDetails" 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_2F39017438291EA40F2A5CC68EDA03B3" 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_59C7784A37A1607F287E5CC68EDAD7C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_2F39017438291EA40F2A5CC68EDA03B3" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_59C7784A37A1607F287E5CC68EDAD7C6" 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_InternalCreditAssessmentAxis" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_3FDF994814ED888B0FBF5CC68EDA03E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_59C7784A37A1607F287E5CC68EDAD7C6" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_3FDF994814ED888B0FBF5CC68EDA03E2" 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_31276C72A9B982FE580A5CC68EDA9C64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_3FDF994814ED888B0FBF5CC68EDA03E2" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64_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_31276C72A9B982FE580A5CC68EDA9C64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_3FDF994814ED888B0FBF5CC68EDA03E2" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64" 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_EB9F182A8D0A33AB9DD75CC68EDA3F41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64" xlink:to="loc_us-gaap_PassMember_EB9F182A8D0A33AB9DD75CC68EDA3F41" 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_B778D47603540A01B0FA5CC68EDA1E38" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64" xlink:to="loc_us-gaap_SpecialMentionMember_B778D47603540A01B0FA5CC68EDA1E38" 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_4DD865A7F7723C56BC305CC68EDA93EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64" xlink:to="loc_us-gaap_SubstandardMember_4DD865A7F7723C56BC305CC68EDA93EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DoubtfulMember" xlink:label="loc_us-gaap_DoubtfulMember_E2671F6BC540604118805CC68EDA8D2F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_31276C72A9B982FE580A5CC68EDA9C64" xlink:to="loc_us-gaap_DoubtfulMember_E2671F6BC540604118805CC68EDA8D2F" 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_C9F10434185F26B493EC5CC68EDA9AE8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_59C7784A37A1607F287E5CC68EDAD7C6" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C9F10434185F26B493EC5CC68EDA9AE8" 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_F47A714F989605CF54C05CC68EDA04E0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C9F10434185F26B493EC5CC68EDA9AE8" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0_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_F47A714F989605CF54C05CC68EDA04E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_C9F10434185F26B493EC5CC68EDA9AE8" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_0A3BFC30D0239F10FD425CC68EDA7704" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_us-gaap_ResidentialMortgageMember_0A3BFC30D0239F10FD425CC68EDA7704" 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_63E9EFBC0B355B559C915CC68EDA7603" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_us-gaap_HomeEquityLoanMember_63E9EFBC0B355B559C915CC68EDA7603" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_F4F0062E49463C6E11675CC68EDAA9BF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_bofi_WarehouseAndOtherMember_F4F0062E49463C6E11675CC68EDAA9BF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_82ED8FF5AEE920157E685CC68EDAE82F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_82ED8FF5AEE920157E685CC68EDAE82F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_F63C7864DB7EA10A31815CC68EDAE378" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_us-gaap_RealEstateMember_F63C7864DB7EA10A31815CC68EDAE378" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_90B2A0A29EA1A7E928145CC68EDA514E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_us-gaap_AutomobileLoanMember_90B2A0A29EA1A7E928145CC68EDA514E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_0BE3DD79C78337D8EE665CC68EDA00DF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_bofi_FactoringMember_0BE3DD79C78337D8EE665CC68EDA00DF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_68701618B5AC7B52C1465CC68EDA91CD" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_bofi_CommercialandIndustrialMember_68701618B5AC7B52C1465CC68EDA91CD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_9F67495CE8FB5941836A5CC68EDAFAAF" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F47A714F989605CF54C05CC68EDA04E0" xlink:to="loc_bofi_OtherLoanMember_9F67495CE8FB5941836A5CC68EDAFAAF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_0DFE5573555B28B9DD5A5CC68EDA6051" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_59C7784A37A1607F287E5CC68EDAD7C6" xlink:to="loc_bofi_LoanSourceAxis_0DFE5573555B28B9DD5A5CC68EDA6051" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_0DFE5573555B28B9DD5A5CC68EDA6051" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_0DFE5573555B28B9DD5A5CC68EDA6051" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_F3FCE0F82102142184575CC68EDA018A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A" xlink:to="loc_bofi_InHouseOriginatedLoansMember_F3FCE0F82102142184575CC68EDA018A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PurchasedLoansMember" xlink:label="loc_bofi_PurchasedLoansMember_A21FAC1F10240DDA29E95CC68EDA4B2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_4FEE8A1B9148887770F55CC68EDA795A" xlink:to="loc_bofi_PurchasedLoansMember_A21FAC1F10240DDA29E95CC68EDA4B2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_72C443A462AC6A47755F5CC68EDA8677" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_2F39017438291EA40F2A5CC68EDA03B3" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_72C443A462AC6A47755F5CC68EDA8677" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRatioOfGradeClassToGrossLoans" xlink:label="loc_bofi_LoansAndLeasesReceivableRatioOfGradeClassToGrossLoans_8E9E88D8BCFD3D35ED005CC68EDAF845" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_2F39017438291EA40F2A5CC68EDA03B3" xlink:to="loc_bofi_LoansAndLeasesReceivableRatioOfGradeClassToGrossLoans_8E9E88D8BCFD3D35ED005CC68EDAF845" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansIndividuallyEvaluatedForImpairmentDetails" 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_5A85AAE3D0D29F93D9B15CC68F37147A" 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_E3C8CA57C245F614D3D35CC68F3763BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_5A85AAE3D0D29F93D9B15CC68F37147A" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_E3C8CA57C245F614D3D35CC68F3763BA" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_1240CF70BFC93F234ACA5CC68F37AA20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_E3C8CA57C245F614D3D35CC68F3763BA" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_1240CF70BFC93F234ACA5CC68F37AA20" 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_F86A45D19CF5429D4F915CC68F37E5E3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_1240CF70BFC93F234ACA5CC68F37AA20" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3_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_F86A45D19CF5429D4F915CC68F37E5E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_1240CF70BFC93F234ACA5CC68F37AA20" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_4D87E9BE52FD9F390B185CC68F37DD71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_us-gaap_ResidentialMortgageMember_4D87E9BE52FD9F390B185CC68F37DD71" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_098B2E465E72D6A8F7965CC68F379D3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_098B2E465E72D6A8F7965CC68F379D3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_DFAB310484587129A1FF5CC68F373EB6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_us-gaap_AutomobileLoanMember_DFAB310484587129A1FF5CC68F373EB6" 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_1A2AFBF7ACB3029B9C3F5CC68F373C62" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_us-gaap_HomeEquityLoanMember_1A2AFBF7ACB3029B9C3F5CC68F373C62" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_C055B8FAA1977565B2E05CC68F370059" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_bofi_CommercialandIndustrialMember_C055B8FAA1977565B2E05CC68F370059" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_DD67025894BF44305D535CC68F372F3B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_F86A45D19CF5429D4F915CC68F37E5E3" xlink:to="loc_bofi_OtherLoanMember_DD67025894BF44305D535CC68F372F3B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_CD1FEBD2B8103A3CF4E45CC68F37926F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_E3C8CA57C245F614D3D35CC68F3763BA" xlink:to="loc_bofi_LoanSourceAxis_CD1FEBD2B8103A3CF4E45CC68F37926F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_CD1FEBD2B8103A3CF4E45CC68F37926F" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_CD1FEBD2B8103A3CF4E45CC68F37926F" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_8486F2E6F8639C39EECC5CC68F37E1CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1" xlink:to="loc_bofi_InHouseOriginatedLoansMember_8486F2E6F8639C39EECC5CC68F37E1CA" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PurchasedLoansMember" xlink:label="loc_bofi_PurchasedLoansMember_C1A9B942B3EC2542D69F5CC68F37B5F2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_18A0CD703E50B02FCC375CC68F3750C1" xlink:to="loc_bofi_PurchasedLoansMember_C1A9B942B3EC2542D69F5CC68F37B5F2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract" xlink:label="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_5A85AAE3D0D29F93D9B15CC68F37147A" xlink:to="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment_683D4692447CD15C302A5CC68F37C43D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment_683D4692447CD15C302A5CC68F37C43D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithNoRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithNoRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment_C3295493EE736E7A82AE5CC68F375CEF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableWithNoRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment_C3295493EE736E7A82AE5CC68F375CEF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment_C0D51867AE7232BAF3CC5CC68F37BE2B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableWithNoRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment_C0D51867AE7232BAF3CC5CC68F37BE2B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithNoRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithNoRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment_2F99416DDF05B6F010B25CC68F3733FB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableWithNoRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment_2F99416DDF05B6F010B25CC68F3733FB" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees" xlink:label="loc_bofi_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees_C63E3C9BA7B5F50C86605CC68F3718AD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees_C63E3C9BA7B5F50C86605CC68F3718AD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract" xlink:label="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment_BC18735D23D0885F058F5CC68F37CA8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairment_BC18735D23D0885F058F5CC68F37CA8E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment_F92F82D966578CCD80E45CC68F375D0E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_FinancingReceivableWithRelatedAllowanceChargeOffIndividuallyEvaluatedForImpairment_F92F82D966578CCD80E45CC68F375D0E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment_7F9790F1DE70B2AED0E65CC68F37FC55" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_FinancingReceivableWithRelatedAllowanceUnpaidBookBalanceIndividuallyEvaluatedForImpairment_7F9790F1DE70B2AED0E65CC68F37FC55" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableWithRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment" xlink:label="loc_bofi_FinancingReceivableWithRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment_DA0601AB9017386188035CC68F37687A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_FinancingReceivableWithRelatedAllowanceAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairment_DA0601AB9017386188035CC68F37687A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees" xlink:label="loc_bofi_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees_D4677BDC1C305994F4F75CC68F375A28" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFees_D4677BDC1C305994F4F75CC68F375A28" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRelatedGeneralAllowance" xlink:label="loc_bofi_ImpairedFinancingReceivableRelatedGeneralAllowance_F74C2B5EF68CD35B3CFC5CC68F3770C2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_ImpairedFinancingReceivableRelatedGeneralAllowance_F74C2B5EF68CD35B3CFC5CC68F3770C2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRelatedSpecificAllowance" xlink:label="loc_bofi_ImpairedFinancingReceivableRelatedSpecificAllowance_BA2C1E752D0EE76425AC5CC68F37FB69" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithRelatedAllowanceRecordedAbstract_6EBFCD48F94FFE5FA6115CC68F37D703" xlink:to="loc_bofi_ImpairedFinancingReceivableRelatedSpecificAllowance_BA2C1E752D0EE76425AC5CC68F37FB69" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract" xlink:label="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentWithNoRelatedAllowanceRecordedAbstract_FB101B7CED506840686E5CC68F371853" xlink:to="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans" xlink:label="loc_bofi_FinancingReceivableUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans_8E783390B4687AE9333E5CC68F379FA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_FinancingReceivableUnpaidPrincipalBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans_8E783390B4687AE9333E5CC68F379FA2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableChargeOffIndividuallyEvaluatedForImpairmentRatioToAllLoans" xlink:label="loc_bofi_FinancingReceivableChargeOffIndividuallyEvaluatedForImpairmentRatioToAllLoans_20C0C23067AF37F3C5145CC68F37DC3B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_FinancingReceivableChargeOffIndividuallyEvaluatedForImpairmentRatioToAllLoans_20C0C23067AF37F3C5145CC68F37DC3B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableUnpaidBookBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans" xlink:label="loc_bofi_FinancingReceivableUnpaidBookBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans_B7D66356C1D307BBB0855CC68F372A89" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_FinancingReceivableUnpaidBookBalanceIndividuallyEvaluatedForImpairmentRatioToAllLoans_B7D66356C1D307BBB0855CC68F372A89" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairmentRatioToAllLoans" xlink:label="loc_bofi_FinancingReceivableAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairmentRatioToAllLoans_69BFE7E08C226A19D1705CC68F375D72" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_FinancingReceivableAccruedInterestAndOriginationFeesIndividuallyEvaluatedForImpairmentRatioToAllLoans_69BFE7E08C226A19D1705CC68F375D72" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFeesRatioToAllLoans" xlink:label="loc_bofi_ImpairedFinancingReceivableRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFeesRatioToAllLoans_98592C4A96916ADBE0FE5CC68F3739F1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_ImpairedFinancingReceivableRecordedInvestmentIndividuallyEvaluatedForImpairmentIncludingAccruedInterestAndUnaccretedDiscountsAndLoanFeesRatioToAllLoans_98592C4A96916ADBE0FE5CC68F3739F1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRelatedGeneralAllowanceRatiotoGrossLoans" xlink:label="loc_bofi_ImpairedFinancingReceivableRelatedGeneralAllowanceRatiotoGrossLoans_A646D42827B6888619C35CC68F3727FE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_ImpairedFinancingReceivableRelatedGeneralAllowanceRatiotoGrossLoans_A646D42827B6888619C35CC68F3727FE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRelatedSpecificAllowanceRatiotoGrossLoans" xlink:label="loc_bofi_ImpairedFinancingReceivableRelatedSpecificAllowanceRatiotoGrossLoans_C4CECD0A3B6F81F9A0C05CC68F37D8AC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_FinancingReceivableEvaluatedIndividuallyForImpairmentAsaPercentageofGrossLoansAbstract_CCE6283A39863020E77A5CC68F37AB81" xlink:to="loc_bofi_ImpairedFinancingReceivableRelatedSpecificAllowanceRatiotoGrossLoans_C4CECD0A3B6F81F9A0C05CC68F37D8AC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansModifiedAsTdrByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_B6C84226D4F0309251495CC68EE90149" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_899B77C988FD4B93392D5CC68EE98E96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_B6C84226D4F0309251495CC68EE90149" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_899B77C988FD4B93392D5CC68EE98E96" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_62053FFF1C502760535E5CC68EE999B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_899B77C988FD4B93392D5CC68EE98E96" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_62053FFF1C502760535E5CC68EE999B3" 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_CCB811CA67DE2AA07A295CC68EE9696B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_62053FFF1C502760535E5CC68EE999B3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_CCB811CA67DE2AA07A295CC68EE9696B_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_CCB811CA67DE2AA07A295CC68EE9696B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_62053FFF1C502760535E5CC68EE999B3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_CCB811CA67DE2AA07A295CC68EE9696B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_24AC370E220BCC8F014A5CC68EE9C8A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_CCB811CA67DE2AA07A295CC68EE9696B" xlink:to="loc_bofi_OtherLoanMember_24AC370E220BCC8F014A5CC68EE9C8A0" 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_E2102454A25673F265395CC68EE93E1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_B6C84226D4F0309251495CC68EE90149" xlink:to="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_E2102454A25673F265395CC68EE93E1C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesLoansNarrativeDetails" 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_D4E69B67CEC3E1FE2B4B5CC68F64CC45" 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_31FF0AC70253DF1077435CC68F55A82C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DFD475D5CF52C0FE900B5CC68F55776F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DFD475D5CF52C0FE900B5CC68F55776F" 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_877090F2ECED1796E9B15CC68F64F24E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DFD475D5CF52C0FE900B5CC68F55776F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_877090F2ECED1796E9B15CC68F64F24E_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_877090F2ECED1796E9B15CC68F64F24E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DFD475D5CF52C0FE900B5CC68F55776F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_877090F2ECED1796E9B15CC68F64F24E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SingleFamilyMember" xlink:label="loc_srt_SingleFamilyMember_FED5763AFFC6FAA157605CC68F64AFEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_877090F2ECED1796E9B15CC68F64F24E" xlink:to="loc_srt_SingleFamilyMember_FED5763AFFC6FAA157605CC68F64AFEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialRealEstateMember" xlink:label="loc_us-gaap_CommercialRealEstateMember_8E68A8ECADCF309481BB5CC68F64430E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_877090F2ECED1796E9B15CC68F64F24E" xlink:to="loc_us-gaap_CommercialRealEstateMember_8E68A8ECADCF309481BB5CC68F64430E" 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_8C7ABC0D6E81801EB3055CC68F6411FD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_srt_RangeAxis_8C7ABC0D6E81801EB3055CC68F6411FD" 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_7123537B59E0211267AF5CC68F649505_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_8C7ABC0D6E81801EB3055CC68F6411FD" xlink:to="loc_srt_RangeMember_7123537B59E0211267AF5CC68F649505_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_7123537B59E0211267AF5CC68F649505" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_8C7ABC0D6E81801EB3055CC68F6411FD" xlink:to="loc_srt_RangeMember_7123537B59E0211267AF5CC68F649505" 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_515DF500F34467EAEF5C5CC68F645CED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7123537B59E0211267AF5CC68F649505" xlink:to="loc_srt_MinimumMember_515DF500F34467EAEF5C5CC68F645CED" 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_EF6E5637618975FE729F5CC68F64A966" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7123537B59E0211267AF5CC68F649505" xlink:to="loc_srt_MaximumMember_EF6E5637618975FE729F5CC68F64A966" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7E0015EBBD0DDFDD39D5CC68F64C6A3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7E0015EBBD0DDFDD39D5CC68F64C6A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_071A60A0E2D323C5FB5E5CC68F649AF7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7E0015EBBD0DDFDD39D5CC68F64C6A3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_071A60A0E2D323C5FB5E5CC68F649AF7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_071A60A0E2D323C5FB5E5CC68F649AF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7E0015EBBD0DDFDD39D5CC68F64C6A3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_071A60A0E2D323C5FB5E5CC68F649AF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansMember" xlink:label="loc_us-gaap_LoansMember_E8B9F5DF0FA27EDC6F8B5CC68F64CDA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_071A60A0E2D323C5FB5E5CC68F649AF7" xlink:to="loc_us-gaap_LoansMember_E8B9F5DF0FA27EDC6F8B5CC68F64CDA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_0C69A19F4835231B73765CC68F64E1BA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_0C69A19F4835231B73765CC68F64E1BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_264D5D3538FCED8063395CC68F64F1FC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0C69A19F4835231B73765CC68F64E1BA" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_264D5D3538FCED8063395CC68F64F1FC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_264D5D3538FCED8063395CC68F64F1FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0C69A19F4835231B73765CC68F64E1BA" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_264D5D3538FCED8063395CC68F64F1FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_1F4ED368C0D0F4525BB35CC68F64FCA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_264D5D3538FCED8063395CC68F64F1FC" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_1F4ED368C0D0F4525BB35CC68F64FCA2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_9CBDF0070E30545721BF5CC68F64B7C6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_srt_StatementGeographicalAxis_9CBDF0070E30545721BF5CC68F64B7C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1A8AFB01087B76E113965CC68F6471C2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_9CBDF0070E30545721BF5CC68F64B7C6" xlink:to="loc_srt_SegmentGeographicalDomain_1A8AFB01087B76E113965CC68F6471C2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1A8AFB01087B76E113965CC68F6471C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_9CBDF0070E30545721BF5CC68F64B7C6" xlink:to="loc_srt_SegmentGeographicalDomain_1A8AFB01087B76E113965CC68F6471C2" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd#stpr_CA" xlink:label="loc_stpr_CA_531B62F38A3C23FB06445CC68F64DE61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_1A8AFB01087B76E113965CC68F6471C2" xlink:to="loc_stpr_CA_531B62F38A3C23FB06445CC68F64DE61" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InterestRateTypeAxis" xlink:label="loc_bofi_InterestRateTypeAxis_52BE3D46572D7DA42C6E5CC68F647092" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_31FF0AC70253DF1077435CC68F55A82C" xlink:to="loc_bofi_InterestRateTypeAxis_52BE3D46572D7DA42C6E5CC68F647092" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TypeOfInterestRateDomain" xlink:label="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_InterestRateTypeAxis_52BE3D46572D7DA42C6E5CC68F647092" xlink:to="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TypeOfInterestRateDomain" xlink:label="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_InterestRateTypeAxis_52BE3D46572D7DA42C6E5CC68F647092" xlink:to="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FixedInterestRateMember" xlink:label="loc_bofi_FixedInterestRateMember_F0C7C73BCFA0DD59463C5CC68F64E7A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0" xlink:to="loc_bofi_FixedInterestRateMember_F0C7C73BCFA0DD59463C5CC68F64E7A1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AdjustableInterestRateMember" xlink:label="loc_bofi_AdjustableInterestRateMember_09C9DE3CD75FD10D24765CC68F646FB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_TypeOfInterestRateDomain_645BC38FDBD61EEFF2F35CC68F6491B0" xlink:to="loc_bofi_AdjustableInterestRateMember_09C9DE3CD75FD10D24765CC68F646FB5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansandLeasesReceivableLoantoValueRatio" xlink:label="loc_bofi_LoansandLeasesReceivableLoantoValueRatio_5C71546BCBFB09F2B4C85CC68F64276C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansandLeasesReceivableLoantoValueRatio_5C71546BCBFB09F2B4C85CC68F64276C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansandLeasesReceivableTerm" xlink:label="loc_bofi_LoansandLeasesReceivableTerm_5045A3DC848446C16D7B5CC68F64A632" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansandLeasesReceivableTerm_5045A3DC848446C16D7B5CC68F64A632" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImpairedFinancingReceivableRecordedInvestmentWriteDowns" xlink:label="loc_bofi_ImpairedFinancingReceivableRecordedInvestmentWriteDowns_CED0040E9A906F735C0A5CC68F64AF5F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_ImpairedFinancingReceivableRecordedInvestmentWriteDowns_CED0040E9A906F735C0A5CC68F64AF5F" 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_1ABD985A82B3A68FE72F5CC68F642B59" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_1ABD985A82B3A68FE72F5CC68F642B59" 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_FA3CB96FE7696F0DAC545CC68F6424F3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_FA3CB96FE7696F0DAC545CC68F6424F3" 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_7D7BBB75B2D9C3FADDD95CC68F6437B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_7D7BBB75B2D9C3FADDD95CC68F6437B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForCreditLossesChangeInMethodOfCalculatingImpairment" xlink:label="loc_us-gaap_AllowanceForCreditLossesChangeInMethodOfCalculatingImpairment_C356FDE79F2720176C0E5CC68F644369" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_AllowanceForCreditLossesChangeInMethodOfCalculatingImpairment_C356FDE79F2720176C0E5CC68F644369" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_B9348F43D2C10335CEF15CC68F640F50" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_B9348F43D2C10335CEF15CC68F640F50" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRelatedPartiesNumberOfLoansAdditions" xlink:label="loc_bofi_LoansAndLeasesReceivableRelatedPartiesNumberOfLoansAdditions_729F1BD736D73A65F1FC5CC68F642929" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansAndLeasesReceivableRelatedPartiesNumberOfLoansAdditions_729F1BD736D73A65F1FC5CC68F642929" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRelatedPartiesPrincipalPaymentsReceivedDuringPeriod" xlink:label="loc_bofi_LoansAndLeasesReceivableRelatedPartiesPrincipalPaymentsReceivedDuringPeriod_8BAA69D8186185E74FE35CC68F64E1E1" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansAndLeasesReceivableRelatedPartiesPrincipalPaymentsReceivedDuringPeriod_8BAA69D8186185E74FE35CC68F64E1E1" 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_4CDAC9650020AAEE1C0E5CC68F64FAFD" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_us-gaap_LoansAndLeasesReceivableRelatedParties_4CDAC9650020AAEE1C0E5CC68F64FAFD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRelatedPartiesInterestEarned" xlink:label="loc_bofi_LoansAndLeasesReceivableRelatedPartiesInterestEarned_0D4C6D55F40297F95FCB5CC68F641F7D" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansAndLeasesReceivableRelatedPartiesInterestEarned_0D4C6D55F40297F95FCB5CC68F641F7D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableLoansByInterestRateTypePercent" xlink:label="loc_bofi_LoansAndLeasesReceivableLoansByInterestRateTypePercent_5616F5398EA55AB2E4D55CC68F64DBE6" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansAndLeasesReceivableLoansByInterestRateTypePercent_5616F5398EA55AB2E4D55CC68F64DBE6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansParticipationsPurchasedServicedByOthers" xlink:label="loc_bofi_LoansParticipationsPurchasedServicedByOthers_A21816CA253A81C69EE75CC68F64AE20" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansParticipationsPurchasedServicedByOthers_A21816CA253A81C69EE75CC68F64AE20" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansParticipationsPurchasedServicedByOthersRatioToAllLoans" xlink:label="loc_bofi_LoansParticipationsPurchasedServicedByOthersRatioToAllLoans_B9568FBE4F4B2D9443A55CC68F640EEB" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_D4E69B67CEC3E1FE2B4B5CC68F64CC45" xlink:to="loc_bofi_LoansParticipationsPurchasedServicedByOthersRatioToAllLoans_B9568FBE4F4B2D9443A55CC68F640EEB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_EE8275F42D59B20A18C75CC68F186F84" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_38173FE7A17A76D698B35CC68F18DE56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_EE8275F42D59B20A18C75CC68F186F84" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_38173FE7A17A76D698B35CC68F18DE56" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8819D30FA83BD057A68F5CC68F18B564" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_38173FE7A17A76D698B35CC68F18DE56" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8819D30FA83BD057A68F5CC68F18B564" 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_C339A02381626A37F69D5CC68F187DE9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8819D30FA83BD057A68F5CC68F18B564" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9_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_C339A02381626A37F69D5CC68F187DE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8819D30FA83BD057A68F5CC68F18B564" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_5790A2DF8061DA760E995CC68F18D785" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_us-gaap_ResidentialMortgageMember_5790A2DF8061DA760E995CC68F18D785" 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_204A3A4F54F4B71CCB245CC68F182A78" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_us-gaap_HomeEquityLoanMember_204A3A4F54F4B71CCB245CC68F182A78" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_24DDF84AD416CFF5D3E55CC68F1835C3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_24DDF84AD416CFF5D3E55CC68F1835C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_0B28A3825074F55992AE5CC68F184BB0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_us-gaap_AutomobileLoanMember_0B28A3825074F55992AE5CC68F184BB0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_F2582AF91206F7BE4F685CC68F18D8D1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_bofi_CommercialandIndustrialMember_F2582AF91206F7BE4F685CC68F18D8D1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_F79F7FDB8A0657C74C445CC68F1870C6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_C339A02381626A37F69D5CC68F187DE9" xlink:to="loc_bofi_OtherLoanMember_F79F7FDB8A0657C74C445CC68F1870C6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_75BEBF041D952C7BC2125CC68F18EAF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_38173FE7A17A76D698B35CC68F18DE56" xlink:to="loc_bofi_LoanSourceAxis_75BEBF041D952C7BC2125CC68F18EAF1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_75BEBF041D952C7BC2125CC68F18EAF1" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_75BEBF041D952C7BC2125CC68F18EAF1" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_0A6D5858E8AFF386755D5CC68F18A171" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241" xlink:to="loc_bofi_InHouseOriginatedLoansMember_0A6D5858E8AFF386755D5CC68F18A171" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PurchasedLoansMember" xlink:label="loc_bofi_PurchasedLoansMember_4ABEEB174819EA84176F5CC68F18B597" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_B2B105ACF2B8D0B135875CC68F18B241" xlink:to="loc_bofi_PurchasedLoansMember_4ABEEB174819EA84176F5CC68F18B597" 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_D3F2094F45476894D51A5CC68F180152" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_EE8275F42D59B20A18C75CC68F186F84" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_D3F2094F45476894D51A5CC68F180152" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableRecordedInvestmentLoansSecuredByRealEstateNonaccrualStatus" xlink:label="loc_bofi_FinancingReceivableRecordedInvestmentLoansSecuredByRealEstateNonaccrualStatus_0B08E5C8C8CB475848555CC68F181533" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_EE8275F42D59B20A18C75CC68F186F84" xlink:to="loc_bofi_FinancingReceivableRecordedInvestmentLoansSecuredByRealEstateNonaccrualStatus_0B08E5C8C8CB475848555CC68F181533" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableRatioOfNonperformingLoansToAllLoans" xlink:label="loc_us-gaap_LoansAndLeasesReceivableRatioOfNonperformingLoansToAllLoans_6430A36FE17537A68B895CC68F18BD52" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_EE8275F42D59B20A18C75CC68F186F84" xlink:to="loc_us-gaap_LoansAndLeasesReceivableRatioOfNonperformingLoansToAllLoans_6430A36FE17537A68B895CC68F18BD52" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesNonaccrualLoansNarrativeDetails" 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_A4106B58140CD4CA69445CC68F084F42" 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_D7F88BF3552A056B52DF5CC68F08E01F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_D7F88BF3552A056B52DF5CC68F08E01F" 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_FinancialInstrumentPerformanceStatusAxis" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_46A568392CB98F220EA65CC68F082C28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_D7F88BF3552A056B52DF5CC68F08E01F" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_46A568392CB98F220EA65CC68F082C28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_01D2E32561D75B3FE4745CC68F083FB8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_46A568392CB98F220EA65CC68F082C28" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_01D2E32561D75B3FE4745CC68F083FB8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_01D2E32561D75B3FE4745CC68F083FB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_46A568392CB98F220EA65CC68F082C28" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_01D2E32561D75B3FE4745CC68F083FB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonperformingFinancingReceivableMember" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_18395320481255F076DB5CC68F082AE8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_01D2E32561D75B3FE4745CC68F083FB8" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_18395320481255F076DB5CC68F082AE8" 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_06D5D9D8CD24F827F14A5CC68F08CB8C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_D7F88BF3552A056B52DF5CC68F08E01F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_06D5D9D8CD24F827F14A5CC68F08CB8C" 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_9334FD728E69BE1E83DE5CC68F08F49A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_06D5D9D8CD24F827F14A5CC68F08CB8C" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9334FD728E69BE1E83DE5CC68F08F49A_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_9334FD728E69BE1E83DE5CC68F08F49A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_06D5D9D8CD24F827F14A5CC68F08CB8C" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9334FD728E69BE1E83DE5CC68F08F49A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_0DC8515A190D4DDEF6355CC68F087B0F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9334FD728E69BE1E83DE5CC68F08F49A" xlink:to="loc_us-gaap_ResidentialMortgageMember_0DC8515A190D4DDEF6355CC68F087B0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_9B2C94DE7B999054A2115CC68F08A6C1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_9334FD728E69BE1E83DE5CC68F08F49A" xlink:to="loc_us-gaap_AutomobileLoanMember_9B2C94DE7B999054A2115CC68F08A6C1" 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_341C033A398925FF51B85CC68F08E7D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_D7F88BF3552A056B52DF5CC68F08E01F" xlink:to="loc_srt_RangeAxis_341C033A398925FF51B85CC68F08E7D0" 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_CB7FFA896F9D569BFA1E5CC68F08094E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_341C033A398925FF51B85CC68F08E7D0" xlink:to="loc_srt_RangeMember_CB7FFA896F9D569BFA1E5CC68F08094E_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_CB7FFA896F9D569BFA1E5CC68F08094E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_341C033A398925FF51B85CC68F08E7D0" xlink:to="loc_srt_RangeMember_CB7FFA896F9D569BFA1E5CC68F08094E" 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_EB4D20E5951FBD64F33B5CC68F08E0C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CB7FFA896F9D569BFA1E5CC68F08094E" xlink:to="loc_srt_MinimumMember_EB4D20E5951FBD64F33B5CC68F08E0C4" 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_5BBD58AF845648AA8E565CC68F086B3F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_CB7FFA896F9D569BFA1E5CC68F08094E" xlink:to="loc_srt_MaximumMember_5BBD58AF845648AA8E565CC68F086B3F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRatioOfNonperformingLoansConsideredTdrs" xlink:label="loc_bofi_LoansAndLeasesReceivableRatioOfNonperformingLoansConsideredTdrs_E5AD86100F3DE680D7455CC68F08246E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_LoansAndLeasesReceivableRatioOfNonperformingLoansConsideredTdrs_E5AD86100F3DE680D7455CC68F08246E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableTdrsWithTimelyPaymentsConsideredNonperformingTerm" xlink:label="loc_bofi_LoansAndLeasesReceivableTdrsWithTimelyPaymentsConsideredNonperformingTerm_F4C5E4D969C0CD6D3B575CC68F08C755" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_LoansAndLeasesReceivableTdrsWithTimelyPaymentsConsideredNonperformingTerm_F4C5E4D969C0CD6D3B575CC68F08C755" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableRatioOfPortfolioSegmentToNonperformingLoans" xlink:label="loc_bofi_LoansAndLeasesReceivableRatioOfPortfolioSegmentToNonperformingLoans_8555483E1BC37FDCB63E5CC68F0820A7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_LoansAndLeasesReceivableRatioOfPortfolioSegmentToNonperformingLoans_8555483E1BC37FDCB63E5CC68F0820A7" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansAndLeasesReceivableValueAfterWriteDownsOfOriginalAppraisedValuePercent" xlink:label="loc_bofi_LoansAndLeasesReceivableValueAfterWriteDownsOfOriginalAppraisedValuePercent_F56C9A84FD1B112894DF5CC68F08A1EF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_LoansAndLeasesReceivableValueAfterWriteDownsOfOriginalAppraisedValuePercent_F56C9A84FD1B112894DF5CC68F08A1EF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InterestIncomePerformingLoansTemporarilyModifiedAsTdrs" xlink:label="loc_bofi_InterestIncomePerformingLoansTemporarilyModifiedAsTdrs_5A8B954CD89F380F545B5CC68F0846D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_InterestIncomePerformingLoansTemporarilyModifiedAsTdrs_5A8B954CD89F380F545B5CC68F0846D9" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans" xlink:label="loc_bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans_7C0DD2548F4F4010BF925CC68F085E0E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans_7C0DD2548F4F4010BF925CC68F085E0E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus" xlink:label="loc_bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus_C16EDD66C9111B9777D05CC68F0814AF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus_C16EDD66C9111B9777D05CC68F0814AF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableModificationsPeriodofDelinquentPropertyTaxesRepaidbyBorrower" xlink:label="loc_bofi_FinancingReceivableModificationsPeriodofDelinquentPropertyTaxesRepaidbyBorrower_EB52D93669807787777C5CC68F08A319" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_FinancingReceivableModificationsPeriodofDelinquentPropertyTaxesRepaidbyBorrower_EB52D93669807787777C5CC68F08A319" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableModificationsPeriodofInterestOnlyPaymentsMadebyBorrowersThatRevertedLoanBackToFullyAmortizing" xlink:label="loc_bofi_FinancingReceivableModificationsPeriodofInterestOnlyPaymentsMadebyBorrowersThatRevertedLoanBackToFullyAmortizing_4B6B4A1C37438E2C09E85CC68F08375F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_bofi_FinancingReceivableModificationsPeriodofInterestOnlyPaymentsMadebyBorrowersThatRevertedLoanBackToFullyAmortizing_4B6B4A1C37438E2C09E85CC68F08375F" 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_4174787B39B918D6C4FD5CC68F08C048" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_A4106B58140CD4CA69445CC68F084F42" xlink:to="loc_us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1_4174787B39B918D6C4FD5CC68F08C048" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesPastDueLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_9883671CBFCE952006245CC68ECA44F5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_98D30965F85B9FFDA9035CC68ECA1B58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_9883671CBFCE952006245CC68ECA44F5" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_98D30965F85B9FFDA9035CC68ECA1B58" 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_FinancingReceivablesPeriodPastDueAxis" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_B81EEBB3CD64FA19AFB85CC68ECA1F05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_98D30965F85B9FFDA9035CC68ECA1B58" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_B81EEBB3CD64FA19AFB85CC68ECA1F05" 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_0A593204A522F0BD75585CC68ECAAC5C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_B81EEBB3CD64FA19AFB85CC68ECA1F05" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0A593204A522F0BD75585CC68ECAAC5C_default" 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_0A593204A522F0BD75585CC68ECAAC5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_B81EEBB3CD64FA19AFB85CC68ECA1F05" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0A593204A522F0BD75585CC68ECAAC5C" 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_2B73763D0E32CA222B235CC68ECA058E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0A593204A522F0BD75585CC68ECAAC5C" xlink:to="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_2B73763D0E32CA222B235CC68ECA058E" 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_F02CCBC1D5894A0696585CC68ECAE21F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0A593204A522F0BD75585CC68ECAAC5C" xlink:to="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_F02CCBC1D5894A0696585CC68ECAE21F" 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_32EFCBBDAB112345FA2B5CC68ECA4DC7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0A593204A522F0BD75585CC68ECAAC5C" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_32EFCBBDAB112345FA2B5CC68ECA4DC7" 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_86311E0CCAE31DA8C97B5CC68ECA2CA8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_98D30965F85B9FFDA9035CC68ECA1B58" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_86311E0CCAE31DA8C97B5CC68ECA2CA8" 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_3BC138B9B86F73C2DA835CC68ECA3C7F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_86311E0CCAE31DA8C97B5CC68ECA2CA8" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F_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_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_86311E0CCAE31DA8C97B5CC68ECA2CA8" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_A92871C51A5DE7EE80CF5CC68ECA1405" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_us-gaap_ResidentialMortgageMember_A92871C51A5DE7EE80CF5CC68ECA1405" 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_69F8D28884F5814FF9C35CC68ECA39F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_us-gaap_HomeEquityLoanMember_69F8D28884F5814FF9C35CC68ECA39F7" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_8BDD628B0E45197B530D5CC68ECABFD1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_8BDD628B0E45197B530D5CC68ECABFD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_79EAA03EF1E654B266F25CC68ECAEE69" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_us-gaap_AutomobileLoanMember_79EAA03EF1E654B266F25CC68ECAEE69" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_7FD159DF17AF6DDB7A5F5CC68ECA6FB1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_bofi_CommercialandIndustrialMember_7FD159DF17AF6DDB7A5F5CC68ECA6FB1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_1F0FD902D73ABDCFE0175CC68ECA64B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_3BC138B9B86F73C2DA835CC68ECA3C7F" xlink:to="loc_bofi_OtherLoanMember_1F0FD902D73ABDCFE0175CC68ECA64B4" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_9B5655CAEB48A58CFDB65CC68ECABCAE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_98D30965F85B9FFDA9035CC68ECA1B58" xlink:to="loc_bofi_LoanSourceAxis_9B5655CAEB48A58CFDB65CC68ECABCAE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_9B5655CAEB48A58CFDB65CC68ECABCAE" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_9B5655CAEB48A58CFDB65CC68ECABCAE" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_DDA9941CC585D1D5EF355CC68ECA455A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08" xlink:to="loc_bofi_InHouseOriginatedLoansMember_DDA9941CC585D1D5EF355CC68ECA455A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PurchasedLoansMember" xlink:label="loc_bofi_PurchasedLoansMember_708A3452AC2560FF68735CC68ECAA92F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_DFA5D6CF32A0C2CF24275CC68ECA9F08" xlink:to="loc_bofi_PurchasedLoansMember_708A3452AC2560FF68735CC68ECAA92F" 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_F762F9015AB28A9E17875CC68ECA54FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_9883671CBFCE952006245CC68ECA44F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_F762F9015AB28A9E17875CC68ECA54FC" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableRecordedInvestmentPastDueAsPercentOfGrossLoans" xlink:label="loc_bofi_FinancingReceivableRecordedInvestmentPastDueAsPercentOfGrossLoans_D4672FD45BC40E00DFEE5CC68ECA27CC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_9883671CBFCE952006245CC68ECA44F5" xlink:to="loc_bofi_FinancingReceivableRecordedInvestmentPastDueAsPercentOfGrossLoans_D4672FD45BC40E00DFEE5CC68ECA27CC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesPerformingAndNonaccrualByClassAndSourceDetails" 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_C33468DD1A3489066FED5CC68EF99213" 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_356ED31BD41C3CED7D8F5CC68EF9BB8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_C33468DD1A3489066FED5CC68EF99213" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_356ED31BD41C3CED7D8F5CC68EF9BB8E" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D8805A3B171F2AF442065CC68EF9F3F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_356ED31BD41C3CED7D8F5CC68EF9BB8E" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D8805A3B171F2AF442065CC68EF9F3F5" 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_79C10211B3D10BC3DB335CC68EF96C6E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D8805A3B171F2AF442065CC68EF9F3F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_79C10211B3D10BC3DB335CC68EF96C6E_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_79C10211B3D10BC3DB335CC68EF96C6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_D8805A3B171F2AF442065CC68EF9F3F5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_79C10211B3D10BC3DB335CC68EF96C6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_948F33D3CD6D12D6B1345CC68EF9E0FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_79C10211B3D10BC3DB335CC68EF96C6E" xlink:to="loc_us-gaap_ResidentialMortgageMember_948F33D3CD6D12D6B1345CC68EF9E0FC" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_01629C52EBD9344AF56C5CC68EF9E46C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_79C10211B3D10BC3DB335CC68EF96C6E" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_01629C52EBD9344AF56C5CC68EF9E46C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_248D04920D47760F6C775CC68EF9B993" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_79C10211B3D10BC3DB335CC68EF96C6E" xlink:to="loc_us-gaap_RealEstateMember_248D04920D47760F6C775CC68EF9B993" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanSourceAxis" xlink:label="loc_bofi_LoanSourceAxis_8F29DF1F97404E21C36B5CC68EF9B7A8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_356ED31BD41C3CED7D8F5CC68EF9BB8E" xlink:to="loc_bofi_LoanSourceAxis_8F29DF1F97404E21C36B5CC68EF9B7A8" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_LoanSourceAxis_8F29DF1F97404E21C36B5CC68EF9B7A8" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SourceOfLoanOriginationDomain" xlink:label="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_LoanSourceAxis_8F29DF1F97404E21C36B5CC68EF9B7A8" xlink:to="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InHouseOriginatedLoansMember" xlink:label="loc_bofi_InHouseOriginatedLoansMember_5F13C92BF812F8F2DC155CC68EF9DE2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13" xlink:to="loc_bofi_InHouseOriginatedLoansMember_5F13C92BF812F8F2DC155CC68EF9DE2E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PurchasedLoansMember" xlink:label="loc_bofi_PurchasedLoansMember_5B5FD2DA2AAFEE850D2E5CC68EF95647" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_SourceOfLoanOriginationDomain_7696E6EB2B62CC8127EE5CC68EF91A13" xlink:to="loc_bofi_PurchasedLoansMember_5B5FD2DA2AAFEE850D2E5CC68EF95647" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_D0F710AE645AFE8EC7B05CC68EF97C08" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_356ED31BD41C3CED7D8F5CC68EF9BB8E" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_D0F710AE645AFE8EC7B05CC68EF97C08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_D0F710AE645AFE8EC7B05CC68EF97C08" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_D0F710AE645AFE8EC7B05CC68EF97C08" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformingFinancingReceivableMember" xlink:label="loc_us-gaap_PerformingFinancingReceivableMember_3C7B33E44724E75A8F945CC68EF90276" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24" xlink:to="loc_us-gaap_PerformingFinancingReceivableMember_3C7B33E44724E75A8F945CC68EF90276" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonperformingFinancingReceivableMember" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_23874B48E37CC2D9819B5CC68EF959B1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_0B5F2FAD0A0A267A81EB5CC68EF92E24" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_23874B48E37CC2D9819B5CC68EF959B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_5542584C4896901024225CC68EF9049C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_C33468DD1A3489066FED5CC68EF99213" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_5542584C4896901024225CC68EF9049C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesTroubledDebtRestructuringsByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_97207B788732CB0593605CC68EE9BAB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_97207B788732CB0593605CC68EE9BAB4" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F37C50F60C096505DDA65CC68EE9A8AE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_97207B788732CB0593605CC68EE9BAB4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F37C50F60C096505DDA65CC68EE9A8AE" 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_839F28F570D68274B22F5CC68EE99482_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F37C50F60C096505DDA65CC68EE9A8AE" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482_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_839F28F570D68274B22F5CC68EE99482" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F37C50F60C096505DDA65CC68EE9A8AE" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_5F9891EF84C80FC4FCBA5CC68EE9259C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_us-gaap_ResidentialMortgageMember_5F9891EF84C80FC4FCBA5CC68EE9259C" 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_19657A11EFD19E3F83FF5CC68EE908A4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_us-gaap_HomeEquityLoanMember_19657A11EFD19E3F83FF5CC68EE908A4" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_351D07D21EB27D20605D5CC68EE932B1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_bofi_WarehouseAndOtherMember_351D07D21EB27D20605D5CC68EE932B1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_BD17D63963E6C2C105E95CC68EE9B949" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_BD17D63963E6C2C105E95CC68EE9B949" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_1B284B159EBC1F48A1835CC68EE91FFD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_us-gaap_RealEstateMember_1B284B159EBC1F48A1835CC68EE91FFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_E4E23F120F7E7C701AA35CC68EE9FD37" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_us-gaap_AutomobileLoanMember_E4E23F120F7E7C701AA35CC68EE9FD37" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_AEAFDFCE792E86E5DEF05CC68EE935DD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_bofi_FactoringMember_AEAFDFCE792E86E5DEF05CC68EE935DD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_D4B6D49FBB242339834D5CC68EE98902" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_bofi_CommercialandIndustrialMember_D4B6D49FBB242339834D5CC68EE98902" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_74BFF65ADE2C428B6C875CC68EE9B5A5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_839F28F570D68274B22F5CC68EE99482" xlink:to="loc_bofi_OtherLoanMember_74BFF65ADE2C428B6C875CC68EE9B5A5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivablePerformingLoansTemporarilyModifiedasTDR" xlink:label="loc_bofi_FinancingReceivablePerformingLoansTemporarilyModifiedasTDR_E14B49F3A01E662E8BD65CC68EE960B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_bofi_FinancingReceivablePerformingLoansTemporarilyModifiedasTDR_E14B49F3A01E662E8BD65CC68EE960B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableImpairedNonperformingNonaccrualOfInterest" xlink:label="loc_us-gaap_LoansAndLeasesReceivableImpairedNonperformingNonaccrualOfInterest_5FB0464D1587120E60965CC68EE9FA1F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_us-gaap_LoansAndLeasesReceivableImpairedNonperformingNonaccrualOfInterest_5FB0464D1587120E60965CC68EE9FA1F" 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_430697001CC657412D215CC68EE9D071" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_430697001CC657412D215CC68EE9D071" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableModificationsInterestIncomeRecognizedAccruingLoans" xlink:label="loc_bofi_FinancingReceivableModificationsInterestIncomeRecognizedAccruingLoans_27317206683DC652AFBC5CC68EE9FEA5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_bofi_FinancingReceivableModificationsInterestIncomeRecognizedAccruingLoans_27317206683DC652AFBC5CC68EE9FEA5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans" xlink:label="loc_bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans_9C617F43F831E04E8F215CC68EE9D2EE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_bofi_FinancingReceivableModificationsAverageRecordedInvestmentAccruingLoans_9C617F43F831E04E8F215CC68EE9D2EE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus" xlink:label="loc_bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus_C2BEB03709BFB52CCC935CC68EE9A470" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_81815626E993015D98535CC68EE99122" xlink:to="loc_bofi_FinancingReceivableAverageRecordedInvestmentNonaccrualStatus_C2BEB03709BFB52CCC935CC68EE9A470" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/LoansLeasesAllowanceForLoanAndLeaseLossesUnpaidPrincipalBalanceForPerformingAndNonaccrualDetails" 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_413BDF0E9028A13577A35CC68F08D45F" 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_7EC1FF48A4067848FA705CC68EF9693D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_413BDF0E9028A13577A35CC68F08D45F" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_7EC1FF48A4067848FA705CC68EF9693D" 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_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_91131B0056623F4801FC5CC68EF9114F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_7EC1FF48A4067848FA705CC68EF9693D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_91131B0056623F4801FC5CC68EF9114F" 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_4DF788DB88A2F7F958E35CC68EF9F708_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_91131B0056623F4801FC5CC68EF9114F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708_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_4DF788DB88A2F7F958E35CC68EF9F708" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_91131B0056623F4801FC5CC68EF9114F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageMember" xlink:label="loc_us-gaap_ResidentialMortgageMember_13744AE6BA1C06741AE65CC68EF97CF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_us-gaap_ResidentialMortgageMember_13744AE6BA1C06741AE65CC68EF97CF0" 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_3F4CBD1FABDEE570B3C65CC68EF909DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_us-gaap_HomeEquityLoanMember_3F4CBD1FABDEE570B3C65CC68EF909DC" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WarehouseAndOtherMember" xlink:label="loc_bofi_WarehouseAndOtherMember_2CB744B2FDC55EBF803D5CC68EF984CE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_bofi_WarehouseAndOtherMember_2CB744B2FDC55EBF803D5CC68EF984CE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ResidentialMultifamilyLoanMember" xlink:label="loc_bofi_ResidentialMultifamilyLoanMember_B1CF39C0D6E2A362C7B55CC68F089B21" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_bofi_ResidentialMultifamilyLoanMember_B1CF39C0D6E2A362C7B55CC68F089B21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateMember" xlink:label="loc_us-gaap_RealEstateMember_0F5C316B309B77984BAE5CC68F081E6F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_us-gaap_RealEstateMember_0F5C316B309B77984BAE5CC68F081E6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AutomobileLoanMember" xlink:label="loc_us-gaap_AutomobileLoanMember_E901731C17367458D20E5CC68F084515" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_us-gaap_AutomobileLoanMember_E901731C17367458D20E5CC68F084515" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FactoringMember" xlink:label="loc_bofi_FactoringMember_4362CAB44A159B1B6AE25CC68F08612E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_bofi_FactoringMember_4362CAB44A159B1B6AE25CC68F08612E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommercialandIndustrialMember" xlink:label="loc_bofi_CommercialandIndustrialMember_1F91F8F9E7C0CA46442D5CC68F08F277" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_bofi_CommercialandIndustrialMember_1F91F8F9E7C0CA46442D5CC68F08F277" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_45EDA40B557DB8FE3D385CC68F0851F6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_4DF788DB88A2F7F958E35CC68EF9F708" xlink:to="loc_bofi_OtherLoanMember_45EDA40B557DB8FE3D385CC68F0851F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_9C280483E9B27FFCFE985CC68F080A86" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_7EC1FF48A4067848FA705CC68EF9693D" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_9C280483E9B27FFCFE985CC68F080A86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_9C280483E9B27FFCFE985CC68F080A86" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_9C280483E9B27FFCFE985CC68F080A86" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PerformingFinancingReceivableMember" xlink:label="loc_us-gaap_PerformingFinancingReceivableMember_1923EFABAC5D11E5D64A5CC68F0865C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457" xlink:to="loc_us-gaap_PerformingFinancingReceivableMember_1923EFABAC5D11E5D64A5CC68F0865C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonperformingFinancingReceivableMember" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_4F820A000BF46B13392E5CC68F084476" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_A998BCC68F6B310B5D475CC68F083457" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_4F820A000BF46B13392E5CC68F084476" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_B95978D65CE0CE062C665CC68F08CBD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_413BDF0E9028A13577A35CC68F08D45F" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_B95978D65CE0CE062C665CC68F08CBD9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirements" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems" xlink:label="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_806C3362A0D8A9C0D2555CC68CAF9639" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable" xlink:label="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_BFB044D701F34B3C9C045CC68CAF9F7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_806C3362A0D8A9C0D2555CC68CAF9639" xlink:to="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_BFB044D701F34B3C9C045CC68CAF9F7D" 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_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_D3A0B9EE587FD006617C5CC68CAFCBAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_BFB044D701F34B3C9C045CC68CAF9F7D" xlink:to="loc_srt_ConsolidatedEntitiesAxis_D3A0B9EE587FD006617C5CC68CAFCBAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_E1338412B6D53117B2EA5CC68CAF162E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_D3A0B9EE587FD006617C5CC68CAFCBAD" xlink:to="loc_srt_ConsolidatedEntitiesDomain_E1338412B6D53117B2EA5CC68CAF162E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_E1338412B6D53117B2EA5CC68CAF162E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_D3A0B9EE587FD006617C5CC68CAFCBAD" xlink:to="loc_srt_ConsolidatedEntitiesDomain_E1338412B6D53117B2EA5CC68CAF162E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SubsidiariesMember" xlink:label="loc_srt_SubsidiariesMember_8F95C881A0D70F86EA8E5CC68CAF3FE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_E1338412B6D53117B2EA5CC68CAF162E" xlink:to="loc_srt_SubsidiariesMember_8F95C881A0D70F86EA8E5CC68CAF3FE9" 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_A76CA4915EB14C03FA4E5CC68CAF01DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_BFB044D701F34B3C9C045CC68CAF9F7D" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_A76CA4915EB14C03FA4E5CC68CAF01DB" 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_7FD4E80F2A747635EF285CC68CAFDECE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A76CA4915EB14C03FA4E5CC68CAF01DB" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7FD4E80F2A747635EF285CC68CAFDECE_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_7FD4E80F2A747635EF285CC68CAFDECE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A76CA4915EB14C03FA4E5CC68CAF01DB" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7FD4E80F2A747635EF285CC68CAFDECE" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_HandRBlockBankDepositsMember" xlink:label="loc_bofi_HandRBlockBankDepositsMember_35C856D62EDEB000C2B15CC68CAF28F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7FD4E80F2A747635EF285CC68CAFDECE" xlink:to="loc_bofi_HandRBlockBankDepositsMember_35C856D62EDEB000C2B15CC68CAF28F0" xlink:type="arc" />
    <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_E7A9DF5E14C1D1D6EE3A5CC68CAF3E56" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable_BFB044D701F34B3C9C045CC68CAF9F7D" xlink:to="loc_us-gaap_StatementScenarioAxis_E7A9DF5E14C1D1D6EE3A5CC68CAF3E56" 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_0CB33AA3359088693F515CC68CAF6D28_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_E7A9DF5E14C1D1D6EE3A5CC68CAF3E56" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_0CB33AA3359088693F515CC68CAF6D28_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_0CB33AA3359088693F515CC68CAF6D28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_E7A9DF5E14C1D1D6EE3A5CC68CAF3E56" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_0CB33AA3359088693F515CC68CAF6D28" 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_57AFDFD8AADEC23C60D75CC68CAF3DA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_0CB33AA3359088693F515CC68CAF6D28" xlink:to="loc_us-gaap_ScenarioForecastMember_57AFDFD8AADEC23C60D75CC68CAF3DA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RegulatoryCapitalRequirementsAbstract" xlink:label="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems_806C3362A0D8A9C0D2555CC68CAF9639" xlink:to="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneRiskBasedCapital" xlink:label="loc_us-gaap_TierOneRiskBasedCapital_E747F81ACAD665E709C85CC68CAF4461" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_us-gaap_TierOneRiskBasedCapital_E747F81ACAD665E709C85CC68CAF4461" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneCommonEquity" xlink:label="loc_bofi_TierOneCommonEquity_A4BF27F42C49F69E0C715CC68CAF87E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_bofi_TierOneCommonEquity_A4BF27F42C49F69E0C715CC68CAF87E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Capital" xlink:label="loc_us-gaap_Capital_4D893AAAA017ADA4797A5CC68CAF7EFA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_us-gaap_Capital_4D893AAAA017ADA4797A5CC68CAF7EFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_14F0F8C485590C6659FB5CC68CAF857D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_us-gaap_AssetsAbstract_14F0F8C485590C6659FB5CC68CAF857D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TotalAverageAdjustedAssets" xlink:label="loc_bofi_TotalAverageAdjustedAssets_C4AE065933CE2ABF5B8A5CC68CAF7BD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_14F0F8C485590C6659FB5CC68CAF857D" xlink:to="loc_bofi_TotalAverageAdjustedAssets_C4AE065933CE2ABF5B8A5CC68CAF7BD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RiskWeightedAssets" xlink:label="loc_us-gaap_RiskWeightedAssets_F032ED6E27AD74DF7F205CC68CAFB709" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_14F0F8C485590C6659FB5CC68CAF857D" xlink:to="loc_us-gaap_RiskWeightedAssets_F032ED6E27AD74DF7F205CC68CAFB709" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_RegulatoryCapitalRatiosAbstract" xlink:label="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneLeverageCapitalToAverageAssets" xlink:label="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_71A87003C5F820C05DB15CC68CAF310A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneLeverageCapitalToAverageAssets_71A87003C5F820C05DB15CC68CAF310A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_F31B639A1F09AA124BA95CC68CAF8876" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets_F31B639A1F09AA124BA95CC68CAF8876" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets" xlink:label="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets_3CCAA7F215FF354FDA5E5CC68CAF7F62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets_3CCAA7F215FF354FDA5E5CC68CAF7F62" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneCommonEquityToAverageAssets" xlink:label="loc_bofi_TierOneCommonEquityToAverageAssets_F2F4766CD8559BA0583F5CC68CAF11D5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_bofi_TierOneCommonEquityToAverageAssets_F2F4766CD8559BA0583F5CC68CAF11D5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneCommonEquityRequiredtobeWellCapitalizedtoAverageAssets" xlink:label="loc_bofi_TierOneCommonEquityRequiredtobeWellCapitalizedtoAverageAssets_CD5D268DBCA6027353515CC68CAF21D6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_bofi_TierOneCommonEquityRequiredtobeWellCapitalizedtoAverageAssets_CD5D268DBCA6027353515CC68CAF21D6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssets" xlink:label="loc_bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssets_93D8359F528A4974BF6B5CC68CAFA9B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssets_93D8359F528A4974BF6B5CC68CAFA9B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_48902FDCA48EE3186E8C5CC68CAFF54D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets_48902FDCA48EE3186E8C5CC68CAFF54D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_85043639396CFE9E629F5CC68CAFB6F3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_85043639396CFE9E629F5CC68CAFB6F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets" xlink:label="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets_27BE1704F6AF9B1A9C325CC68CAFDFFE" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets_27BE1704F6AF9B1A9C325CC68CAFDFFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalToRiskWeightedAssets" xlink:label="loc_us-gaap_CapitalToRiskWeightedAssets_454FCB001E1BA2CC15705CC68CAFABC8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_CapitalToRiskWeightedAssets_454FCB001E1BA2CC15705CC68CAFABC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets" xlink:label="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_044007DEA66B9DF993C75CC68CAF0C0E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets_044007DEA66B9DF993C75CC68CAF0C0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets_62A9AAB2FC59457E427A5CC68CAF1B8B" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_RegulatoryCapitalRatiosAbstract_291B621C7ADEE59B61635CC68CAFFCDF" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets_62A9AAB2FC59457E427A5CC68CAF1B8B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssetAnnualIncreasePercent" xlink:label="loc_bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssetAnnualIncreasePercent_CE91F4D0A65F49E2DEC85CC68CAF6F85" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_bofi_TierOneCommonEquityRequiredforCapitalAdequacytoAverageAssetAnnualIncreasePercent_CE91F4D0A65F49E2DEC85CC68CAF6F85" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TierOneRiskBasedCapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent" xlink:label="loc_bofi_TierOneRiskBasedCapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent_FF6BB0D9BDD42559A4415CC68CAFBBEF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_bofi_TierOneRiskBasedCapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent_FF6BB0D9BDD42559A4415CC68CAFBBEF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent" xlink:label="loc_bofi_CapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent_992B283F8DDB4CF7A5A35CC68CAF6B9E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryCapitalRequirementsAbstract_AF714D4F35F3DF697D215CC68CAF699F" xlink:to="loc_bofi_CapitalRequiredforCapitalAdequacytoRiskWeightedAssetsAnnualIncreasePercent_992B283F8DDB4CF7A5A35CC68CAF6B9E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/MinimumRegulatoryCapitalRequirementsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/OffBalanceSheetActivities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/OffBalanceSheetActivitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems" xlink:label="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" 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_477369B6B9B771BB330E5CC68CBEB1E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" xlink:to="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_477369B6B9B771BB330E5CC68CBEB1E7" 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_702E8122C909D48E9D325CC68CBEF85B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_477369B6B9B771BB330E5CC68CBEB1E7" xlink:to="loc_us-gaap_FinancialInstrumentAxis_702E8122C909D48E9D325CC68CBEF85B" 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_8E45AF7C7A35E6EDEA7F5CC68CBE5438_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_702E8122C909D48E9D325CC68CBEF85B" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8E45AF7C7A35E6EDEA7F5CC68CBE5438_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_8E45AF7C7A35E6EDEA7F5CC68CBE5438" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_702E8122C909D48E9D325CC68CBEF85B" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8E45AF7C7A35E6EDEA7F5CC68CBE5438" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoanPurchaseAndOriginationCommitmentsMember" xlink:label="loc_bofi_LoanPurchaseAndOriginationCommitmentsMember_B360C3416DFE812F42605CC68CBED2D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8E45AF7C7A35E6EDEA7F5CC68CBE5438" xlink:to="loc_bofi_LoanPurchaseAndOriginationCommitmentsMember_B360C3416DFE812F42605CC68CBED2D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoanOriginationCommitmentsMember" xlink:label="loc_us-gaap_LoanOriginationCommitmentsMember_CBC9A7196983B54271615CC68CBE6103" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8E45AF7C7A35E6EDEA7F5CC68CBE5438" xlink:to="loc_us-gaap_LoanOriginationCommitmentsMember_CBC9A7196983B54271615CC68CBE6103" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_InterestRateTypeAxis" xlink:label="loc_bofi_InterestRateTypeAxis_190AE2A4E9DEBE24EE105CC68CBE7D34" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_477369B6B9B771BB330E5CC68CBEB1E7" xlink:to="loc_bofi_InterestRateTypeAxis_190AE2A4E9DEBE24EE105CC68CBE7D34" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TypeOfInterestRateDomain" xlink:label="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_InterestRateTypeAxis_190AE2A4E9DEBE24EE105CC68CBE7D34" xlink:to="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TypeOfInterestRateDomain" xlink:label="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_InterestRateTypeAxis_190AE2A4E9DEBE24EE105CC68CBE7D34" xlink:to="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FixedInterestRateMember" xlink:label="loc_bofi_FixedInterestRateMember_37523C23D68FB94E85855CC68CBE7EF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3" xlink:to="loc_bofi_FixedInterestRateMember_37523C23D68FB94E85855CC68CBE7EF0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AdjustableInterestRateMember" xlink:label="loc_bofi_AdjustableInterestRateMember_F5CC3E05486D842E034F5CC68CBE23D6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_TypeOfInterestRateDomain_6C0B3BE370AD6585CFBF5CC68CBE1AB3" xlink:to="loc_bofi_AdjustableInterestRateMember_F5CC3E05486D842E034F5CC68CBE23D6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherCommitmentAxis" xlink:label="loc_bofi_OtherCommitmentAxis_BF169CA11C518751A53D5CC68CBEFDFB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable_477369B6B9B771BB330E5CC68CBEB1E7" xlink:to="loc_bofi_OtherCommitmentAxis_BF169CA11C518751A53D5CC68CBEFDFB" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherCommitmentTypeDomain" xlink:label="loc_bofi_OtherCommitmentTypeDomain_A965831E50B8E0198AB35CC68CBE75F0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_OtherCommitmentAxis_BF169CA11C518751A53D5CC68CBEFDFB" xlink:to="loc_bofi_OtherCommitmentTypeDomain_A965831E50B8E0198AB35CC68CBE75F0_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherCommitmentTypeDomain" xlink:label="loc_bofi_OtherCommitmentTypeDomain_A965831E50B8E0198AB35CC68CBE75F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_OtherCommitmentAxis_BF169CA11C518751A53D5CC68CBEFDFB" xlink:to="loc_bofi_OtherCommitmentTypeDomain_A965831E50B8E0198AB35CC68CBE75F0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SalesCommitmentMember" xlink:label="loc_bofi_SalesCommitmentMember_EB44248DBC3F88B96D825CC68CBE0D7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_OtherCommitmentTypeDomain_A965831E50B8E0198AB35CC68CBE75F0" xlink:to="loc_bofi_SalesCommitmentMember_EB44248DBC3F88B96D825CC68CBE0D7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability" xlink:label="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability_B22B41DBF2F11259B75F5CC68CBEA793" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" xlink:to="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability_B22B41DBF2F11259B75F5CC68CBEA793" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CommitmenttoExtendCreditWeightedAverageInterestRate" xlink:label="loc_bofi_CommitmenttoExtendCreditWeightedAverageInterestRate_7C3C7825B59F5A1AD7325CC68CBE7D1E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" xlink:to="loc_bofi_CommitmenttoExtendCreditWeightedAverageInterestRate_7C3C7825B59F5A1AD7325CC68CBE7D1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset" xlink:label="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset_ABCBC051BE5DBC2C90855CC68CBE314F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" xlink:to="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset_ABCBC051BE5DBC2C90855CC68CBE314F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OffBalanceSheetRiskRatioOfCommitmentsToOriginateLoansToCommitmentsToSell" xlink:label="loc_bofi_OffBalanceSheetRiskRatioOfCommitmentsToOriginateLoansToCommitmentsToSell_8A68CFC53C636B76F1DE5CC68CBE2AAE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems_D29A86EA2EF0D8BE311C5CC68CBE17FF" xlink:to="loc_bofi_OffBalanceSheetRiskRatioOfCommitmentsToOriginateLoansToCommitmentsToSell_8A68CFC53C636B76F1DE5CC68CBE2AAE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" 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_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_B9A6D71C4971F3E5B9055CC69077A849" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_B9A6D71C4971F3E5B9055CC69077A849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_50E4EA678B88E422EDA85CC690777A51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_B9A6D71C4971F3E5B9055CC69077A849" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_50E4EA678B88E422EDA85CC690777A51_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_50E4EA678B88E422EDA85CC690777A51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_B9A6D71C4971F3E5B9055CC69077A849" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_50E4EA678B88E422EDA85CC690777A51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansMember" xlink:label="loc_us-gaap_LoansMember_BA42D128A59624A0E8425CC69077772B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_50E4EA678B88E422EDA85CC690777A51" xlink:to="loc_us-gaap_LoansMember_BA42D128A59624A0E8425CC69077772B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_3BF44431C9EFE2CF6D025CC69077881C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_3BF44431C9EFE2CF6D025CC69077881C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_40008B8FDA51987CEB635CC69077639F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_3BF44431C9EFE2CF6D025CC69077881C" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_40008B8FDA51987CEB635CC69077639F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_40008B8FDA51987CEB635CC69077639F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_3BF44431C9EFE2CF6D025CC69077881C" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_40008B8FDA51987CEB635CC69077639F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_0DC75DCFE0789CDEAB025CC690775DE8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_40008B8FDA51987CEB635CC69077639F" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_0DC75DCFE0789CDEAB025CC690775DE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_72DD9390E992C87BE8335CC690778CBF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_srt_StatementGeographicalAxis_72DD9390E992C87BE8335CC690778CBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_7DA7EF82E83780B65C025CC69077AD11_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_72DD9390E992C87BE8335CC690778CBF" xlink:to="loc_srt_SegmentGeographicalDomain_7DA7EF82E83780B65C025CC69077AD11_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_7DA7EF82E83780B65C025CC69077AD11" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_72DD9390E992C87BE8335CC690778CBF" xlink:to="loc_srt_SegmentGeographicalDomain_7DA7EF82E83780B65C025CC69077AD11" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd#stpr_CA" xlink:label="loc_stpr_CA_94FDB2C37FB69962A0A85CC690778E40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_7DA7EF82E83780B65C025CC69077AD11" xlink:to="loc_stpr_CA_94FDB2C37FB69962A0A85CC690778E40" 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_0ED1754D6A9AEA7C58F05CC69077C012" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_srt_RangeAxis_0ED1754D6A9AEA7C58F05CC69077C012" 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_3FF3E8B5C90DF2D7C4955CC69077D7B8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0ED1754D6A9AEA7C58F05CC69077C012" xlink:to="loc_srt_RangeMember_3FF3E8B5C90DF2D7C4955CC69077D7B8_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_3FF3E8B5C90DF2D7C4955CC69077D7B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0ED1754D6A9AEA7C58F05CC69077C012" xlink:to="loc_srt_RangeMember_3FF3E8B5C90DF2D7C4955CC69077D7B8" 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_0FDF997C87617CFBAFE85CC69077DFF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_3FF3E8B5C90DF2D7C4955CC69077D7B8" xlink:to="loc_srt_MinimumMember_0FDF997C87617CFBAFE85CC69077DFF1" 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_90564B258A4D478836475CC69077F049" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_3FF3E8B5C90DF2D7C4955CC69077D7B8" xlink:to="loc_srt_MaximumMember_90564B258A4D478836475CC69077F049" 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_0E7F31F1A7405B71C7025CC6907785F0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0E7F31F1A7405B71C7025CC6907785F0" 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_7BE0B43DEF09CFFF334F5CC69077D21E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0E7F31F1A7405B71C7025CC6907785F0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7BE0B43DEF09CFFF334F5CC69077D21E_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_7BE0B43DEF09CFFF334F5CC69077D21E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0E7F31F1A7405B71C7025CC6907785F0" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7BE0B43DEF09CFFF334F5CC69077D21E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_HandRBlockBankDepositsMember" xlink:label="loc_bofi_HandRBlockBankDepositsMember_EE61C4BA0142222C36645CC690771F2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7BE0B43DEF09CFFF334F5CC69077D21E" xlink:to="loc_bofi_HandRBlockBankDepositsMember_EE61C4BA0142222C36645CC690771F2F" 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_02289E5645F8FEF1C6C15CC6907735E6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_02289E5645F8FEF1C6C15CC6907735E6" 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_5B4155E51921AFA436D85CC690774092_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_02289E5645F8FEF1C6C15CC6907735E6" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5B4155E51921AFA436D85CC690774092_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_5B4155E51921AFA436D85CC690774092" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_02289E5645F8FEF1C6C15CC6907735E6" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5B4155E51921AFA436D85CC690774092" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherLoanMember" xlink:label="loc_bofi_OtherLoanMember_10F56D667CD58664DEBD5CC690771138" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_5B4155E51921AFA436D85CC690774092" xlink:to="loc_bofi_OtherLoanMember_10F56D667CD58664DEBD5CC690771138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_8AE4D030B494244002A45CC6907705CA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_7ADC97423B4A56796F665CC69077E61A" xlink:to="loc_srt_ProductOrServiceAxis_8AE4D030B494244002A45CC6907705CA" 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_41E9CD1881D5EB0BACCA5CC69077DA8B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_8AE4D030B494244002A45CC6907705CA" xlink:to="loc_srt_ProductsAndServicesDomain_41E9CD1881D5EB0BACCA5CC69077DA8B_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_41E9CD1881D5EB0BACCA5CC69077DA8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_8AE4D030B494244002A45CC6907705CA" xlink:to="loc_srt_ProductsAndServicesDomain_41E9CD1881D5EB0BACCA5CC69077DA8B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmeraldAdvanceMember" xlink:label="loc_bofi_EmeraldAdvanceMember_F354BED0EB68582CF6355CC690771F7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_41E9CD1881D5EB0BACCA5CC69077DA8B" xlink:to="loc_bofi_EmeraldAdvanceMember_F354BED0EB68582CF6355CC690771F7E" 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_B66D8797658D95171A645CC6907706FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_B66D8797658D95171A645CC6907706FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_56FDC8C1EC02827AA1B45CC69077373B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_56FDC8C1EC02827AA1B45CC69077373B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfStatesInWhichEntityOperates" xlink:label="loc_us-gaap_NumberOfStatesInWhichEntityOperates_D6C0AA65B68E116465FC5CC6907706E8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_NumberOfStatesInWhichEntityOperates_D6C0AA65B68E116465FC5CC6907706E8" 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_AE6B5C21D0FB10D35B3E5CC69077DD6F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_AE6B5C21D0FB10D35B3E5CC69077DD6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_C50E208D01452E977B235CC69077DEED" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_C50E208D01452E977B235CC69077DEED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDescription" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDescription_AA87CA3BE08BDCDCE69F5CC690776834" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDescription_AA87CA3BE08BDCDCE69F5CC690776834" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskAdditionalCharacteristic" xlink:label="loc_us-gaap_ConcentrationRiskAdditionalCharacteristic_9E2E1A8C9AAE68E3F0AC5CC690779F71" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_ConcentrationRiskAdditionalCharacteristic_9E2E1A8C9AAE68E3F0AC5CC690779F71" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansandLeasesInterestAndDividendIncomeRetainerPercentageFee" xlink:label="loc_bofi_LoansandLeasesInterestAndDividendIncomeRetainerPercentageFee_B32E304E9FD4DBE223D85CC69087192A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_bofi_LoansandLeasesInterestAndDividendIncomeRetainerPercentageFee_B32E304E9FD4DBE223D85CC69087192A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FurnitureEquipmentandSoftwareEstimatedUsefulLives" xlink:label="loc_bofi_FurnitureEquipmentandSoftwareEstimatedUsefulLives_040C0C957E18DD7283B15CC690875B44" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_bofi_FurnitureEquipmentandSoftwareEstimatedUsefulLives_040C0C957E18DD7283B15CC690875B44" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_FurnitureEquipmentandSoftwareThresholdForCapitalization" xlink:label="loc_bofi_FurnitureEquipmentandSoftwareThresholdForCapitalization_FF0D813D018732616C935CC690878829" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_bofi_FurnitureEquipmentandSoftwareThresholdForCapitalization_FF0D813D018732616C935CC690878829" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_34B66233088D219449985CC690870745" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_NumberOfReportableSegments_34B66233088D219449985CC690870745" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfOperatingSegments" xlink:label="loc_us-gaap_NumberOfOperatingSegments_FA46BA2E1FD2EEE4444F5CC69087EB10" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_E9E7805A23FAF0CAA6925CC69077D635" xlink:to="loc_us-gaap_NumberOfOperatingSegments_FA46BA2E1FD2EEE4444F5CC69087EB10" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfCalculationsOfBasicAndDilutedEarningsPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems" xlink:label="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_4060DEA05C2107713C5E61D467E61F5F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable" xlink:label="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_8490E8C965F5C6AA886B61D467E66561" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_4060DEA05C2107713C5E61D467E61F5F" xlink:to="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_8490E8C965F5C6AA886B61D467E66561" 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_RestatementAxis" xlink:label="loc_srt_RestatementAxis_35C0D6474FA53FC04AC461D467E6D0F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_8490E8C965F5C6AA886B61D467E66561" xlink:to="loc_srt_RestatementAxis_35C0D6474FA53FC04AC461D467E6D0F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_35C0D6474FA53FC04AC461D467E6D0F4" xlink:to="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_35C0D6474FA53FC04AC461D467E6D0F4" xlink:to="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScenarioPreviouslyReportedMember" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_F10EAD0F777F1D8E544261D467E6E9C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_F10EAD0F777F1D8E544261D467E6E9C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementAdjustmentMember" xlink:label="loc_srt_RestatementAdjustmentMember_453A14DC13AA09BCBE9461D467E61DED" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_36CFB32339E864AB96F661D467E67B45" xlink:to="loc_srt_RestatementAdjustmentMember_453A14DC13AA09BCBE9461D467E61DED" 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_5168B852736DC795E41D61D467E6B79E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_8490E8C965F5C6AA886B61D467E66561" xlink:to="loc_us-gaap_AwardTypeAxis_5168B852736DC795E41D61D467E6B79E" 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_61865CDAFE4D3E3374E761D467E66FA1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5168B852736DC795E41D61D467E6B79E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_61865CDAFE4D3E3374E761D467E66FA1_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_61865CDAFE4D3E3374E761D467E66FA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5168B852736DC795E41D61D467E6B79E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_61865CDAFE4D3E3374E761D467E66FA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_DB7819C5BD6B5CAC2DC761D467E62414" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_61865CDAFE4D3E3374E761D467E66FA1" xlink:to="loc_us-gaap_EmployeeStockOptionMember_DB7819C5BD6B5CAC2DC761D467E62414" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_00181FF59BA2E1B82B8461D467E67B7D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_61865CDAFE4D3E3374E761D467E66FA1" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_00181FF59BA2E1B82B8461D467E67B7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_4060DEA05C2107713C5E61D467E61F5F" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_7722D568853161DB7DFC61D467E6D35E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_7722D568853161DB7DFC61D467E6D35E" 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_8354360FD1A584FED0BD61D467E60361" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_8354360FD1A584FED0BD61D467E60361" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic" xlink:label="loc_bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic_2FC1E54E24430BB282CC61D467E66466" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:to="loc_bofi_WeightedAverageUnvestedRestrictedStockGrantAndRsuSharesBasic_2FC1E54E24430BB282CC61D467E66466" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TotalQualifyingSharesBasic" xlink:label="loc_bofi_TotalQualifyingSharesBasic_C10517A3540633B1003461D467E630DF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:to="loc_bofi_TotalQualifyingSharesBasic_C10517A3540633B1003461D467E630DF" 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_06A347EEA4399C947E0F61D467E6517C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_9F8893376276F03A7D8861D467E6216A" xlink:to="loc_us-gaap_EarningsPerShareBasic_06A347EEA4399C947E0F61D467E6517C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_4060DEA05C2107713C5E61D467E61F5F" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_AA544C75E3233E58FAF861D467E61C5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_AA544C75E3233E58FAF861D467E61C5A" 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_96B0FDD71816F777BF3F61D467E63834" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_96B0FDD71816F777BF3F61D467E63834" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_0F080A4AA4B5CA015A9161D467E69C24" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_0F080A4AA4B5CA015A9161D467E69C24" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TotalDilutiveCommonSharesIssuedAndOutstanding" xlink:label="loc_bofi_TotalDilutiveCommonSharesIssuedAndOutstanding_9AC0B2DCBE4A32701CDA61D467E62549" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:to="loc_bofi_TotalDilutiveCommonSharesIssuedAndOutstanding_9AC0B2DCBE4A32701CDA61D467E62549" 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_D55E465BB6D9111DE0F561D467E68E38" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_8E7BC91CA7BBB0D9966961D467E68138" xlink:to="loc_us-gaap_EarningsPerShareDiluted_D55E465BB6D9111DE0F561D467E68E38" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesRevisionsOfClassificationOfProceedsFromSaleOfLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems" xlink:label="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable" xlink:label="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_FB8F7BD1D27170016FB762A90F9EEA8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_FB8F7BD1D27170016FB762A90F9EEA8E" 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_RestatementAxis" xlink:label="loc_srt_RestatementAxis_8BB61525F44C9D37717A62A90FAD93B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_FB8F7BD1D27170016FB762A90F9EEA8E" xlink:to="loc_srt_RestatementAxis_8BB61525F44C9D37717A62A90FAD93B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_8BB61525F44C9D37717A62A90FAD93B6" xlink:to="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_8BB61525F44C9D37717A62A90FAD93B6" xlink:to="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScenarioPreviouslyReportedMember" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_7ED125EDD480DF5E414762A90FAD2341" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_7ED125EDD480DF5E414762A90FAD2341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementAdjustmentMember" xlink:label="loc_srt_RestatementAdjustmentMember_9190BAF392AA0680402C62A90FAD6471" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_402BF7B658EA40B691C262A90FADC4C3" xlink:to="loc_srt_RestatementAdjustmentMember_9190BAF392AA0680402C62A90FAD6471" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis" xlink:label="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_C5D29DF9EE92D451B27162A90FADC133" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_FB8F7BD1D27170016FB762A90F9EEA8E" xlink:to="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_C5D29DF9EE92D451B27162A90FADC133" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForErrorCorrectionDomain" xlink:label="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_84000FFF00C4833D2A1062A90FAD0065_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_C5D29DF9EE92D451B27162A90FADC133" xlink:to="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_84000FFF00C4833D2A1062A90FAD0065_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForErrorCorrectionDomain" xlink:label="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_84000FFF00C4833D2A1062A90FAD0065" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_C5D29DF9EE92D451B27162A90FADC133" xlink:to="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_84000FFF00C4833D2A1062A90FAD0065" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ImmaterialErrorCorrectionMember" xlink:label="loc_bofi_ImmaterialErrorCorrectionMember_AEFFDA0AA380815B349B62A90FAD699B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_84000FFF00C4833D2A1062A90FAD0065" xlink:to="loc_bofi_ImmaterialErrorCorrectionMember_AEFFDA0AA380815B349B62A90FAD699B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_14351890E2B5BD2E80B562A90FAD55E8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable_FB8F7BD1D27170016FB762A90F9EEA8E" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_14351890E2B5BD2E80B562A90FAD55E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_4DC62D11B6ACD248E08B62A90FADE093_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_14351890E2B5BD2E80B562A90FAD55E8" xlink:to="loc_us-gaap_TypeOfAdoptionMember_4DC62D11B6ACD248E08B62A90FADE093_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_4DC62D11B6ACD248E08B62A90FADE093" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_14351890E2B5BD2E80B562A90FAD55E8" xlink:to="loc_us-gaap_TypeOfAdoptionMember_4DC62D11B6ACD248E08B62A90FADE093" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201609Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201609Member_69FA1DFD3890DEF8D6DD62A90FAD12F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_4DC62D11B6ACD248E08B62A90FADE093" xlink:to="loc_us-gaap_AccountingStandardsUpdate201609Member_69FA1DFD3890DEF8D6DD62A90FAD12F3" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LoansHeldforsaleSoldCashNotReceived" xlink:label="loc_bofi_LoansHeldforsaleSoldCashNotReceived_42909E031DE9191A2EDC62A90FAD829B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_bofi_LoansHeldforsaleSoldCashNotReceived_42909E031DE9191A2EDC62A90FAD829B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_59EF46BCF44A974712C662A90FADA7F3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_59EF46BCF44A974712C662A90FADA7F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_91EAADE3B7F15CCE927762A90FAD8A58" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_91EAADE3B7F15CCE927762A90FAD8A58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_96E4DF8D15A4E6AF7CE862A90FAD6BC8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_96E4DF8D15A4E6AF7CE862A90FAD6BC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForInvestment" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForInvestment_421F76B5CDB548340FED62A90FADC89B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForInvestment_421F76B5CDB548340FED62A90FADC89B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_F82EDD2521533FC85CFB62A90FADACC0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems_035C6822A78D690127E362A90FADB6F1" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_F82EDD2521533FC85CFB62A90FADACC0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/OrganizationsAndSummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationCondensedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_3F73546E00828F84001F5CC68C906299" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_C966ED23BC540F21084D5CC68C907887" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_3F73546E00828F84001F5CC68C906299" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_C966ED23BC540F21084D5CC68C907887" 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_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_B0781FDABC2F774A05955CC68C906682" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_C966ED23BC540F21084D5CC68C907887" xlink:to="loc_srt_ConsolidatedEntitiesAxis_B0781FDABC2F774A05955CC68C906682" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_0888C9E7636F0BF66BEB5CC68C9077E7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_B0781FDABC2F774A05955CC68C906682" xlink:to="loc_srt_ConsolidatedEntitiesDomain_0888C9E7636F0BF66BEB5CC68C9077E7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_0888C9E7636F0BF66BEB5CC68C9077E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_B0781FDABC2F774A05955CC68C906682" xlink:to="loc_srt_ConsolidatedEntitiesDomain_0888C9E7636F0BF66BEB5CC68C9077E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_1E32E95BC46EDE97C1395CC68C90ADED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_0888C9E7636F0BF66BEB5CC68C9077E7" xlink:to="loc_srt_ParentCompanyMember_1E32E95BC46EDE97C1395CC68C90ADED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_3F73546E00828F84001F5CC68C906299" xlink:to="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7DE3FE1FC46DA83F314E5CC68C906DD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7DE3FE1FC46DA83F314E5CC68C906DD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_004E1D523288DF6DC1C15CC68C90F14E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_004E1D523288DF6DC1C15CC68C90F14E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_F4D1D6294256C94A35B85CC68C904404" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_MarketableSecurities_F4D1D6294256C94A35B85CC68C904404" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_25BDA1763D2A566C74665CC68C90058F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_OtherAssets_25BDA1763D2A566C74665CC68C90058F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_D63A4966D712173E2CF75CC68C90137A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_D63A4966D712173E2CF75CC68C90137A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_0B62A641413BD3B6A2E15CC68C90DC35" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_804E1A3BE21F61B3B0CE5CC68C9046F8" xlink:to="loc_us-gaap_Assets_0B62A641413BD3B6A2E15CC68C90DC35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_3F73546E00828F84001F5CC68C906299" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" 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_75BE9E9DDCFA1FF395595CC68C9084E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_75BE9E9DDCFA1FF395595CC68C9084E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_8F50A24062EA58B8A6635CC68C900472" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_8F50A24062EA58B8A6635CC68C900472" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_152F67E35AF19ABCF4025CC68C90B054" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_152F67E35AF19ABCF4025CC68C90B054" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_8E9969045D886EB1F4D05CC68C90CA8C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_Liabilities_8E9969045D886EB1F4D05CC68C90CA8C" 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_F4219EF28B309AA56E495CC68C90900F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_StockholdersEquity_F4219EF28B309AA56E495CC68C90900F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_109096F3B1EEB27DB6FF5CC68C909015" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_ABA79478B4279E8321045CC68C907BCA" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_109096F3B1EEB27DB6FF5CC68C909015" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationStatementOfCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_379012089B99DE4C107066A651A023DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_379012089B99DE4C107066A651A023DD" 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_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_880C0A620D5C1DFABEE466A651A0D621" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_379012089B99DE4C107066A651A023DD" xlink:to="loc_srt_ConsolidatedEntitiesAxis_880C0A620D5C1DFABEE466A651A0D621" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_6B5F94ADE6E8A31A630066A651A07D58_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_880C0A620D5C1DFABEE466A651A0D621" xlink:to="loc_srt_ConsolidatedEntitiesDomain_6B5F94ADE6E8A31A630066A651A07D58_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_6B5F94ADE6E8A31A630066A651A07D58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_880C0A620D5C1DFABEE466A651A0D621" xlink:to="loc_srt_ConsolidatedEntitiesDomain_6B5F94ADE6E8A31A630066A651A07D58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_E7AE4AF87BB3B115E1B966A651A0CC1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_6B5F94ADE6E8A31A630066A651A07D58" xlink:to="loc_srt_ParentCompanyMember_E7AE4AF87BB3B115E1B966A651A0CC1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E190908F78567970B7166A651AF49BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E190908F78567970B7166A651AF49BA" 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_E216DE42D0F7795399C566A651AF3D21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E190908F78567970B7166A651AF49BA" xlink:to="loc_us-gaap_NetIncomeLoss_E216DE42D0F7795399C566A651AF3D21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_2E190908F78567970B7166A651AF49BA" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_78CE6C36DA46C1454EB866A651AFA02A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_78CE6C36DA46C1454EB866A651AFA02A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_B2E67BAE736FA8874D2D66A651AFF224" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_B2E67BAE736FA8874D2D66A651AFF224" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsHeldtomaturitySecurities" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsHeldtomaturitySecurities_268FD0A82014890E5B5166A651AF7BA5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsHeldtomaturitySecurities_268FD0A82014890E5B5166A651AF7BA5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AmortizationAccretionOfPremiumsDiscountsLoans" xlink:label="loc_bofi_AmortizationAccretionOfPremiumsDiscountsLoans_9896930222998A5225B166A651AF050F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_bofi_AmortizationAccretionOfPremiumsDiscountsLoans_9896930222998A5225B166A651AF050F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnSaleOfInvestments" xlink:label="loc_us-gaap_GainLossOnSaleOfInvestments_4B30526E747BF3B9161766A651AF5443" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_GainLossOnSaleOfInvestments_4B30526E747BF3B9161766A651AF5443" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_GainOnSalesOfLoansHeldForSale" xlink:label="loc_bofi_GainOnSalesOfLoansHeldForSale_A45F5CC5212B9E0EB1FC66A651AF6CED" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_bofi_GainOnSalesOfLoansHeldForSale_A45F5CC5212B9E0EB1FC66A651AF6CED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_AADA67031DA550CB86B366A651AFB9FA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_ShareBasedCompensation_AADA67031DA550CB86B366A651AFB9FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities_746A6A8ACB656BE7033766A651AF7561" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities_746A6A8ACB656BE7033766A651AF7561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_446D7DC93EA629627A6A66A651AF7EE4" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_446D7DC93EA629627A6A66A651AF7EE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_B3E1EB9AB10680BF4C8266A651AFE8AA" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_B3E1EB9AB10680BF4C8266A651AFE8AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_BC0BBE69BD84CB88EF3766A651AF31EF" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_BC0BBE69BD84CB88EF3766A651AF31EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8E6E70AE70826A3B216E66A651AFF70E" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_AB489ACD2FE418E7EF9B66A651AF6956" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8E6E70AE70826A3B216E66A651AFF70E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities_B968374B96424D0A831C66A651AFB054" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities_B968374B96424D0A831C66A651AFB054" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_C203CD57BA48252BD0E666A651AF0A1D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_C203CD57BA48252BD0E666A651AF0A1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainOrLossOnSaleOfStockInSubsidiary" xlink:label="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_D38687976B72FBE3EDB266A651AFE1C2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:to="loc_us-gaap_GainOrLossOnSaleOfStockInSubsidiary_D38687976B72FBE3EDB266A651AFE1C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_BF4E7020EAB530D1F4EC66A651AF2D0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_63C185C326A89FBD093A66A651AFA9F6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_BF4E7020EAB530D1F4EC66A651AF2D0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_196DCCEAE8103DE7F10866A651AF4924" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_196DCCEAE8103DE7F10866A651AF4924" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_6093EFE7464BF6674ECC66A651AFAADE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_6093EFE7464BF6674ECC66A651AFAADE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_CFAF61E597EC2C7E4A4866A651AFBA26" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_CFAF61E597EC2C7E4A4866A651AFBA26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_03874D9D0A815180935D66A651AF6C1D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_03874D9D0A815180935D66A651AF6C1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_367881AF330F23FA833E66A651AF1F57" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_367881AF330F23FA833E66A651AF1F57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_CFDEBC78D0F2353109E166A651AF89DE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_CFDEBC78D0F2353109E166A651AF89DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_8AFE3B7D152B40167C9466A651AFEEB8" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_8AFE3B7D152B40167C9466A651AFEEB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_12470C216399C65CBD2766A651AF9A4A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_41E5533328176F8C7A0666A651AFFE03" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_12470C216399C65CBD2766A651AF9A4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_6D81BEF6BC2E59EB222966A651AF9D5E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_6D81BEF6BC2E59EB222966A651AF9D5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5C0B33F8E7A0045DA74866A651AF0AC0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9D9A0B9ABF71482537ED66A651A06229" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5C0B33F8E7A0045DA74866A651AF0AC0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationStatementsOfIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_FF51BA5D8CB539106E505CC68C80BFB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_FF51BA5D8CB539106E505CC68C80BFB6" 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_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_87EE77BF54C18F2CCFC15CC68C802E23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_FF51BA5D8CB539106E505CC68C80BFB6" xlink:to="loc_srt_ConsolidatedEntitiesAxis_87EE77BF54C18F2CCFC15CC68C802E23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_DCBFBB9A2AA52E9278DC5CC68C80A70E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_87EE77BF54C18F2CCFC15CC68C802E23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_DCBFBB9A2AA52E9278DC5CC68C80A70E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_DCBFBB9A2AA52E9278DC5CC68C80A70E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_87EE77BF54C18F2CCFC15CC68C802E23" xlink:to="loc_srt_ConsolidatedEntitiesDomain_DCBFBB9A2AA52E9278DC5CC68C80A70E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_470E8F0395EA540A55655CC68C801F4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_DCBFBB9A2AA52E9278DC5CC68C80A70E" xlink:to="loc_srt_ParentCompanyMember_470E8F0395EA540A55655CC68C801F4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaap_InterestIncomeOperating_6EB89FB47851B6FC26285CC68C80AF5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_InterestIncomeOperating_6EB89FB47851B6FC26285CC68C80AF5C" 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_A8CE31CDCA1C21CB8F1D5CC68C80DB5B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_InterestExpense_A8CE31CDCA1C21CB8F1D5CC68C80DB5B" 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_E2C095E665F6FC241A3B5CC68C809D88" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_E2C095E665F6FC241A3B5CC68C809D88" 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_38AB4A2FF953CF50EC305CC68C80BDCF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_38AB4A2FF953CF50EC305CC68C80BDCF" 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_9A0087803C476F2FEA005CC68C807614" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_9A0087803C476F2FEA005CC68C807614" 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_1F7B9166DC36D52800835CC68C80077E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_NoninterestIncome_1F7B9166DC36D52800835CC68C80077E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NoninterestExpenseandIncomeTaxBenefit" xlink:label="loc_bofi_NoninterestExpenseandIncomeTaxBenefit_645EC0E402FAA34DA7F35CC68C8020B5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_bofi_NoninterestExpenseandIncomeTaxBenefit_645EC0E402FAA34DA7F35CC68C8020B5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_IncomeLossBeforeDividendsFromSubsidiaryAndEquityInUndistributedIncomeOfSubsidiary" xlink:label="loc_bofi_IncomeLossBeforeDividendsFromSubsidiaryAndEquityInUndistributedIncomeOfSubsidiary_952F7267545E3ED3B0255CC68C90257F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_bofi_IncomeLossBeforeDividendsFromSubsidiaryAndEquityInUndistributedIncomeOfSubsidiary_952F7267545E3ED3B0255CC68C90257F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_DividendsFromSubsidiary" xlink:label="loc_bofi_DividendsFromSubsidiary_C4D94A3BF9EAFD9FD3835CC68C905734" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_bofi_DividendsFromSubsidiary_C4D94A3BF9EAFD9FD3835CC68C905734" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EquityInUndistributedEarningsOfSubsidiary" xlink:label="loc_bofi_EquityInUndistributedEarningsOfSubsidiary_E492A2638DDCE67AD0E65CC68C900D89" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_bofi_EquityInUndistributedEarningsOfSubsidiary_E492A2638DDCE67AD0E65CC68C900D89" 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_7CF4721D77A6CFA3039D5CC68C90823E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_NetIncomeLoss_7CF4721D77A6CFA3039D5CC68C90823E" 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_98E43BBA8F05E846577B5CC68C90DF4A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_38605B75D66CB21B74565CC68C80BAC5" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_98E43BBA8F05E846577B5CC68C90DF4A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/ParentOnlyCondensedFinancialInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/QuarterlyFinancialInformationUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/QuarterlyFinancialInformationUnauditedDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/QuarterlyFinancialInformationUnauditedTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/Securities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesCarryingAmountAndFairValueOfSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems" xlink:label="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_883E220FC99D7B81C61062536EDCF09B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable" xlink:label="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_52C3D0AFEDA72E08F14F62536ED9561E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_883E220FC99D7B81C61062536EDCF09B" xlink:to="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_52C3D0AFEDA72E08F14F62536ED9561E" 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_1F1796FB035A3D86AF0662536EDAD45E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable_52C3D0AFEDA72E08F14F62536ED9561E" xlink:to="loc_us-gaap_FinancialInstrumentAxis_1F1796FB035A3D86AF0662536EDAD45E" 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_F28755C3095EA0764CE262536EDA7F97_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_1F1796FB035A3D86AF0662536EDAD45E" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F28755C3095EA0764CE262536EDA7F97_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_F28755C3095EA0764CE262536EDA7F97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_1F1796FB035A3D86AF0662536EDAD45E" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F28755C3095EA0764CE262536EDA7F97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_EA03EA932124018CEF0262536EDAA9E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F28755C3095EA0764CE262536EDA7F97" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_EA03EA932124018CEF0262536EDAA9E5" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_D7BB8A57E8833B030F6562536EDA8993" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_EA03EA932124018CEF0262536EDAA9E5" xlink:to="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_D7BB8A57E8833B030F6562536EDA8993" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_FB7942D8F99A708FC55262536EDB3B2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_EA03EA932124018CEF0262536EDAA9E5" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_FB7942D8F99A708FC55262536EDB3B2E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_298AFEE1DAE7DA20B45D62536EDB7EB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_F28755C3095EA0764CE262536EDA7F97" xlink:to="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_298AFEE1DAE7DA20B45D62536EDB7EB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_0050E7FE872CD413B57162536EDBF4A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_298AFEE1DAE7DA20B45D62536EDB7EB5" xlink:to="loc_us-gaap_MunicipalBondsMember_0050E7FE872CD413B57162536EDBF4A6" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AssetbackedSecuritiesandStructuredNotesMember" xlink:label="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_36DE69CBA4F422B963A662536EDB3CEC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_298AFEE1DAE7DA20B45D62536EDB7EB5" xlink:to="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_36DE69CBA4F422B963A662536EDB3CEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_B407D810756A57EAFB6162536EDC2879" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems_883E220FC99D7B81C61062536EDCF09B" xlink:to="loc_us-gaap_TradingSecurities_B407D810756A57EAFB6162536EDC2879" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_AA1F90C17F1BB662EB5062536EDCBE28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_AA1F90C17F1BB662EB5062536EDCBE28" 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_E086804635BFADB6F1C462536EDC1742" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_AA1F90C17F1BB662EB5062536EDCBE28" xlink:to="loc_us-gaap_FinancialInstrumentAxis_E086804635BFADB6F1C462536EDC1742" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_60B6DB3955FDD2C1BD6862536EDE7DC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_60B6DB3955FDD2C1BD6862536EDE7DC0" 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_46B00DCBE881151D3D1F62536EDE6452" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_46B00DCBE881151D3D1F62536EDE6452" 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_70194D604074A73CC75762536EDF3729" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_70194D604074A73CC75762536EDF3729" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_9DE031075189ABA1B21562536EDF5A56" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_BC4724E65A468602B3BB62536EDE2BFE" xlink:to="loc_us-gaap_AvailableForSaleSecurities_9DE031075189ABA1B21562536EDF5A56" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesInvestmentsClassifiedByContractualMaturityDateDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesLineItems" xlink:label="loc_us-gaap_MarketableSecuritiesLineItems_9AE770A1CDC46DFD0D3E5CC68F9386E2" xlink:type="locator" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ScheduleOfMarketableSecuritiesTable" xlink:label="loc_bofi_ScheduleOfMarketableSecuritiesTable_9D1681683883AD610BDE5CC68F93574A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_9AE770A1CDC46DFD0D3E5CC68F9386E2" xlink:to="loc_bofi_ScheduleOfMarketableSecuritiesTable_9D1681683883AD610BDE5CC68F93574A" 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_E0FD6DE09729078532625CC68F93106A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bofi_ScheduleOfMarketableSecuritiesTable_9D1681683883AD610BDE5CC68F93574A" xlink:to="loc_us-gaap_FinancialInstrumentAxis_E0FD6DE09729078532625CC68F93106A" 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_863757BF7089ADC0BE085CC68F9373D1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_E0FD6DE09729078532625CC68F93106A" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_863757BF7089ADC0BE085CC68F9373D1_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_863757BF7089ADC0BE085CC68F9373D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_E0FD6DE09729078532625CC68F93106A" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_863757BF7089ADC0BE085CC68F9373D1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_D2C1DC47DF7AD81C09425CC68F934D2C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_863757BF7089ADC0BE085CC68F9373D1" xlink:to="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_D2C1DC47DF7AD81C09425CC68F934D2C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_61BCD58F3763AB0D81ED5CC68F936F90" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_863757BF7089ADC0BE085CC68F9373D1" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_61BCD58F3763AB0D81ED5CC68F936F90" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_A37C0CF828016F166EB85D0CB0EEAE5C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_863757BF7089ADC0BE085CC68F9373D1" xlink:to="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_A37C0CF828016F166EB85D0CB0EEAE5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_9AE770A1CDC46DFD0D3E5CC68F9386E2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_D3979D5342AF26966C145CC68F9376E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_D3979D5342AF26966C145CC68F9376E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_9C5A65CCD07D60C43B825CC68F931021" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_9C5A65CCD07D60C43B825CC68F931021" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_4E3C19EC35F4D314A72D5CC68F93238B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_4E3C19EC35F4D314A72D5CC68F93238B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_037E8B0E9F95F5B30EC65CC68F9317D1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_037E8B0E9F95F5B30EC65CC68F9317D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_95EA9F61D1BC5E0646745CC68F9367A7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_32A935C1E38BF1BF4EA85CC68F93DCEB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_95EA9F61D1BC5E0646745CC68F9367A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_9AE770A1CDC46DFD0D3E5CC68F9386E2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_D270EDD2FD7CD6DB07F95CC68F932C5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_D270EDD2FD7CD6DB07F95CC68F932C5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_C8A52314834B835681245CC68F9304E2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_C8A52314834B835681245CC68F9304E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_F42A12FD21C751318DFC5CC68F93BACA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_F42A12FD21C751318DFC5CC68F93BACA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_7616254211A1D26AB8625CC68F9315BA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_7616254211A1D26AB8625CC68F9315BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_A77177A12D14469FC4CF5CC68F932BF9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_311277E447EC1759BD765CC68F93C72C" xlink:to="loc_us-gaap_AvailableForSaleSecurities_A77177A12D14469FC4CF5CC68F932BF9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesLineItems" xlink:label="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:type="locator" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ScheduleOfMarketableSecuritiesTable" xlink:label="loc_bofi_ScheduleOfMarketableSecuritiesTable_962A6E7549040112BC2F5CC68FB9A17B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_ScheduleOfMarketableSecuritiesTable_962A6E7549040112BC2F5CC68FB9A17B" 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_4D4F2D06114D404827AF5CC68FB931FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bofi_ScheduleOfMarketableSecuritiesTable_962A6E7549040112BC2F5CC68FB9A17B" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4D4F2D06114D404827AF5CC68FB931FE" 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_3B595DF68D510B33A7C35CC68FBACB9A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4D4F2D06114D404827AF5CC68FB931FE" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_3B595DF68D510B33A7C35CC68FBACB9A_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_3B595DF68D510B33A7C35CC68FBACB9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4D4F2D06114D404827AF5CC68FB931FE" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_3B595DF68D510B33A7C35CC68FBACB9A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_952A580F9B15EF963DB35CC68FBAE7B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_3B595DF68D510B33A7C35CC68FBACB9A" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_952A580F9B15EF963DB35CC68FBAE7B2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyRmbsSuperSeniorSecuritiesMember" xlink:label="loc_bofi_NonAgencyRmbsSuperSeniorSecuritiesMember_65D0A28B61806AA0D6E85CC68FBAC576" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_952A580F9B15EF963DB35CC68FBAE7B2" xlink:to="loc_bofi_NonAgencyRmbsSuperSeniorSecuritiesMember_65D0A28B61806AA0D6E85CC68FBAC576" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyRmbsMezzanineZTrancheSecuritiesMember" xlink:label="loc_bofi_NonAgencyRmbsMezzanineZTrancheSecuritiesMember_EFCB4053A2ED8F5FE0A25CC68FBBED06" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_952A580F9B15EF963DB35CC68FBAE7B2" xlink:to="loc_bofi_NonAgencyRmbsMezzanineZTrancheSecuritiesMember_EFCB4053A2ED8F5FE0A25CC68FBBED06" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyRmbsSeniorSupportSecuritiesMember" xlink:label="loc_bofi_NonAgencyRmbsSeniorSupportSecuritiesMember_2EF31D8BB6FF4382DA105CC68FBBCEB8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_952A580F9B15EF963DB35CC68FBAE7B2" xlink:to="loc_bofi_NonAgencyRmbsSeniorSupportSecuritiesMember_2EF31D8BB6FF4382DA105CC68FBBCEB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_053D009F448F9959E5945CC68FBBF1F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_AvailableForSaleSecurities_053D009F448F9959E5945CC68FBBF1F2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AvailableForSaleNumberOfSecurities" xlink:label="loc_bofi_AvailableForSaleNumberOfSecurities_EACFF2295C53C76C9F795CC68FBB97EF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_AvailableForSaleNumberOfSecurities_EACFF2295C53C76C9F795CC68FBB97EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0EE392DB5A9742C265CB5CC68FBCD917" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0EE392DB5A9742C265CB5CC68FBCD917" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesNumber" xlink:label="loc_bofi_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesNumber_7FB0DD6A9C89E7359D675CC68FBC387E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_CertainLoansAcquiredInTransferAccountedForAsDebtSecuritiesNumber_7FB0DD6A9C89E7359D675CC68FBC387E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_CertainLoansAcquiredinTransferAccountedforasDebtSecuritiesLossOnSale" xlink:label="loc_bofi_CertainLoansAcquiredinTransferAccountedforasDebtSecuritiesLossOnSale_54F1D1361AD1CC6C9CED5CC68FBC9E91" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_CertainLoansAcquiredinTransferAccountedforasDebtSecuritiesLossOnSale_54F1D1361AD1CC6C9CED5CC68FBC9E91" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_HeldToMaturityAndAvailableForSaleSecuritiesPledgedAsCollateral" xlink:label="loc_bofi_HeldToMaturityAndAvailableForSaleSecuritiesPledgedAsCollateral_23A15DCEEF3E7545B5665CC68FBCDEC7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_HeldToMaturityAndAvailableForSaleSecuritiesPledgedAsCollateral_23A15DCEEF3E7545B5665CC68FBCDEC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_12601809EDB87B57FFBB5CC68FBC3601" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_12601809EDB87B57FFBB5CC68FBC3601" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_2E684E9FD247A08724615CC68FBCAA2E" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_2E684E9FD247A08724615CC68FBCAA2E" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AvailableforsaleandHeldtomaturitySecuritieswithCumulativeCreditLossesNumber" xlink:label="loc_bofi_AvailableforsaleandHeldtomaturitySecuritieswithCumulativeCreditLossesNumber_1622F78D5260B2D61C5C5CC68FBDAC4A" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_AvailableforsaleandHeldtomaturitySecuritieswithCumulativeCreditLossesNumber_1622F78D5260B2D61C5C5CC68FBDAC4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsPeriodIncreaseDecrease_45A17D948953E14EBA3D5CC68FBD5C56" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsPeriodIncreaseDecrease_45A17D948953E14EBA3D5CC68FBD5C56" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SecuritiesWithOtherThanTemporaryImpairmentNumber" xlink:label="loc_bofi_SecuritiesWithOtherThanTemporaryImpairmentNumber_F39E27005DD807B6B77D5CC68FBD8035" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_SecuritiesWithOtherThanTemporaryImpairmentNumber_F39E27005DD807B6B77D5CC68FBD8035" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment" xlink:label="loc_us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment_0655D4095C6905A0C3B25CC68FBDA4E1" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment_0655D4095C6905A0C3B25CC68FBDA4E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesRealizedGainLoss" xlink:label="loc_us-gaap_TradingSecuritiesRealizedGainLoss_53032F78ABCD060632BE5CC68FBD8E8D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_TradingSecuritiesRealizedGainLoss_53032F78ABCD060632BE5CC68FBD8E8D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_TradingSecuritiesNumber" xlink:label="loc_bofi_TradingSecuritiesNumber_FD6B2714A348107577D05CC68FBD36FC" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_TradingSecuritiesNumber_FD6B2714A348107577D05CC68FBD36FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_66D138C1605EB7D76FA25CC68FBE9D89" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_TradingSecurities_66D138C1605EB7D76FA25CC68FBE9D89" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AvailableforsaleSecuritiesNumberSold" xlink:label="loc_bofi_AvailableforsaleSecuritiesNumberSold_71F54FE195CC49A5B3E35CC68FBE7E56" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_AvailableforsaleSecuritiesNumberSold_71F54FE195CC49A5B3E35CC68FBE7E56" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AvailableforsaleSecuritiesSoldSecurityatCarryingValue" xlink:label="loc_bofi_AvailableforsaleSecuritiesSoldSecurityatCarryingValue_868278F46C6B381A812B5CC68FBE86F0" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_bofi_AvailableforsaleSecuritiesSoldSecurityatCarryingValue_868278F46C6B381A812B5CC68FBE86F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGainLossNet" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGainLossNet_85D6F05D7039CDB07F2E5CC68FBEFC04" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_917624839116CCFC94805CC68FBB9EB5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGainLossNet_85D6F05D7039CDB07F2E5CC68FBEFC04" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsLineItems" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsLineItems_2C1FDCD0718D6C4FCE565CC68FA32B30" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTable" xlink:label="loc_us-gaap_ScheduleOfOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTable_F164A4450F614FF53FDB5CC68FA3336D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsLineItems_2C1FDCD0718D6C4FCE565CC68FA32B30" xlink:to="loc_us-gaap_ScheduleOfOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTable_F164A4450F614FF53FDB5CC68FA3336D" 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_CABABC535FEB3C4DB6425CC68FA3BA6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfOtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTable_F164A4450F614FF53FDB5CC68FA3336D" xlink:to="loc_us-gaap_FinancialInstrumentAxis_CABABC535FEB3C4DB6425CC68FA3BA6C" 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_A93A9C2B2193362E73B55CC68FA33CE4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CABABC535FEB3C4DB6425CC68FA3BA6C" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A93A9C2B2193362E73B55CC68FA33CE4_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_A93A9C2B2193362E73B55CC68FA33CE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CABABC535FEB3C4DB6425CC68FA3BA6C" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A93A9C2B2193362E73B55CC68FA33CE4" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_B58D3E7292CDACB150AE5CC68FA3E13B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_A93A9C2B2193362E73B55CC68FA33CE4" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_B58D3E7292CDACB150AE5CC68FA3E13B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsLineItems_2C1FDCD0718D6C4FCE565CC68FA32B30" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCreditLossesOnDebtSecuritiesHeld" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCreditLossesOnDebtSecuritiesHeld_6A712CA4CF88BDF9787C5CC68FA3684F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCreditLossesOnDebtSecuritiesHeld_6A712CA4CF88BDF9787C5CC68FA3684F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsNoPreviousImpairment" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsNoPreviousImpairment_40A39A6A73AA92E953805CC68FA3D7AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsNoPreviousImpairment_40A39A6A73AA92E953805CC68FA3D7AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsAdditionalCreditLosses" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsAdditionalCreditLosses_332246F26E03F43030895CC68FA3C984" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsAdditionsAdditionalCreditLosses_332246F26E03F43030895CC68FA3C984" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsReductionsSecuritiesSold" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsReductionsSecuritiesSold_4C5AFC883E525403BBE15CC68FA34811" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsRollForward_9B120F164428600AF30B5CC68FA35E2E" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsReductionsSecuritiesSold_4C5AFC883E525403BBE15CC68FA34811" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesRealizedGainLossOnInvestmentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesScheduleOfUnrealizedLossOnInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:label="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_33281443E96A73A639F262536EA380D5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsTable" xlink:label="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_CBB8E26E5C7412A2213D62536EA10C30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_33281443E96A73A639F262536EA380D5" xlink:to="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_CBB8E26E5C7412A2213D62536EA10C30" 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_E2A67DD52069B4EB065362536EA1D2B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_CBB8E26E5C7412A2213D62536EA10C30" xlink:to="loc_us-gaap_FinancialInstrumentAxis_E2A67DD52069B4EB065362536EA1D2B6" 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_99CD5E7D1545DCCA004162536EA1A7DB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_E2A67DD52069B4EB065362536EA1D2B6" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_99CD5E7D1545DCCA004162536EA1A7DB_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_99CD5E7D1545DCCA004162536EA1A7DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_E2A67DD52069B4EB065362536EA1D2B6" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_99CD5E7D1545DCCA004162536EA1A7DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_4EBDCE8D362721B5B33D62536EA2912B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_99CD5E7D1545DCCA004162536EA1A7DB" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_4EBDCE8D362721B5B33D62536EA2912B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_202272BC55C2593452C862536EA21FFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_4EBDCE8D362721B5B33D62536EA2912B" xlink:to="loc_bofi_AgencyResidentialMortgageBackedSecuritiesMember_202272BC55C2593452C862536EA21FFC" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_11A0DE9437C480C3EB0262536EA23204" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_4EBDCE8D362721B5B33D62536EA2912B" xlink:to="loc_bofi_NonAgencyResidentialMortgageBackedSecuritiesMember_11A0DE9437C480C3EB0262536EA23204" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember" xlink:label="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_8FD1045AE4AA8C94A99562536EA25D2A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_99CD5E7D1545DCCA004162536EA1A7DB" xlink:to="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_8FD1045AE4AA8C94A99562536EA25D2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_31432F56A170745081BD62536EA2D2F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_8FD1045AE4AA8C94A99562536EA25D2A" xlink:to="loc_us-gaap_MunicipalBondsMember_31432F56A170745081BD62536EA2D2F2" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AssetbackedSecuritiesandStructuredNotesMember" xlink:label="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_66541CFAAF5E1A5EEA8162536EA35069" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_OtherNonAgencyResidentialMortgageBackedSecuritiesMember_8FD1045AE4AA8C94A99562536EA25D2A" xlink:to="loc_bofi_AssetbackedSecuritiesandStructuredNotesMember_66541CFAAF5E1A5EEA8162536EA35069" 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_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_33281443E96A73A639F262536EA380D5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_B1122C4D8F542F5764B662536EA31391" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_B1122C4D8F542F5764B662536EA31391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_E872F11D3252D45AD09862536EA464DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_E872F11D3252D45AD09862536EA464DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_5EF8048DF2293525054462536EA40A32" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_5EF8048DF2293525054462536EA40A32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C4E48DC2AD28C5661E5362536EA47254" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C4E48DC2AD28C5661E5362536EA47254" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_052176F123F027C9D76C62536EA4157D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_052176F123F027C9D76C62536EA4157D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_77ABF824CC67D1625B5B62536EA431D1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract_CBAF75BA00FBCCAF35BF62536EA3410B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_77ABF824CC67D1625B5B62536EA431D1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SecuritiesUnrealizedGainLossOnInvestmentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" 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_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_AC4246B6296D3750DA0166A6525B46E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:to="loc_us-gaap_PlanNameAxis_AC4246B6296D3750DA0166A6525B46E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_AC4246B6296D3750DA0166A6525B46E9" xlink:to="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_AC4246B6296D3750DA0166A6525B46E9" xlink:to="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIncentivePlansMember" xlink:label="loc_bofi_StockIncentivePlansMember_2203EF87FDF128EF450766A6525BEC14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899" xlink:to="loc_bofi_StockIncentivePlansMember_2203EF87FDF128EF450766A6525BEC14" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_A2004StockIncentivePlanMember" xlink:label="loc_bofi_A2004StockIncentivePlanMember_0B0A32CBB1A1B575785366A6525B4E4F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899" xlink:to="loc_bofi_A2004StockIncentivePlanMember_0B0A32CBB1A1B575785366A6525B4E4F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_A2014StockIncentivePlanMember" xlink:label="loc_bofi_A2014StockIncentivePlanMember_92995747D12F322B3F7966A6525B1D05" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_1A89A552603D6AAA9CD966A6525B7899" xlink:to="loc_bofi_A2014StockIncentivePlanMember_92995747D12F322B3F7966A6525B1D05" 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_C0B6CB545F6C25FCA63966A6525B3E97" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:to="loc_srt_RangeAxis_C0B6CB545F6C25FCA63966A6525B3E97" 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_A74CDFC104EA33137CC266A6525B4212_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_C0B6CB545F6C25FCA63966A6525B3E97" xlink:to="loc_srt_RangeMember_A74CDFC104EA33137CC266A6525B4212_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_A74CDFC104EA33137CC266A6525B4212" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_C0B6CB545F6C25FCA63966A6525B3E97" xlink:to="loc_srt_RangeMember_A74CDFC104EA33137CC266A6525B4212" 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_5297A4859CA881C72BCE66A6525B8814" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A74CDFC104EA33137CC266A6525B4212" xlink:to="loc_srt_MinimumMember_5297A4859CA881C72BCE66A6525B8814" 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_54B4D28D6DC7CF26707E66A6525BEA0D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A74CDFC104EA33137CC266A6525B4212" xlink:to="loc_srt_MaximumMember_54B4D28D6DC7CF26707E66A6525BEA0D" 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_2E3D3596A577384C330666A6525B5F22" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:to="loc_us-gaap_AwardTypeAxis_2E3D3596A577384C330666A6525B5F22" 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_759A7E5D2B676561778366A6525B05AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_2E3D3596A577384C330666A6525B5F22" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_759A7E5D2B676561778366A6525B05AB_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_759A7E5D2B676561778366A6525B05AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_2E3D3596A577384C330666A6525B5F22" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_759A7E5D2B676561778366A6525B05AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_99718768A03F225139AF66A6525B4FEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_759A7E5D2B676561778366A6525B05AB" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_99718768A03F225139AF66A6525B4FEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TitleOfIndividualAxis" xlink:label="loc_us-gaap_TitleOfIndividualAxis_8D8710E30F1C8821FFA366A6525B7A43" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:to="loc_us-gaap_TitleOfIndividualAxis_8D8710E30F1C8821FFA366A6525B7A43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TitleOfIndividualAxis_8D8710E30F1C8821FFA366A6525B7A43" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TitleOfIndividualAxis_8D8710E30F1C8821FFA366A6525B7A43" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChiefExecutiveOfficerMember" xlink:label="loc_us-gaap_ChiefExecutiveOfficerMember_044E9EDDBB377892F0C266A6525B917F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5" xlink:to="loc_us-gaap_ChiefExecutiveOfficerMember_044E9EDDBB377892F0C266A6525B917F" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeesandDirectorsMember" xlink:label="loc_bofi_EmployeesandDirectorsMember_8C27F82DD0B47E0DD3D866A6525B5B82" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_F1CD9CB7547EC815896F66A6525BFFA5" xlink:to="loc_bofi_EmployeesandDirectorsMember_8C27F82DD0B47E0DD3D866A6525B5B82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_2569352E2AD5D5C478C566A6525B6802" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CA1F5EF9A8315C0F624366A6525BDDBA" xlink:to="loc_us-gaap_VestingAxis_2569352E2AD5D5C478C566A6525B6802" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_2569352E2AD5D5C478C566A6525B6802" xlink:to="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_2569352E2AD5D5C478C566A6525B6802" xlink:to="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_7198986E60B3EFAED69266A6525B9735" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_7198986E60B3EFAED69266A6525B9735" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_39D83BBC7C0B8B7A9C6966A6525BA10E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_39D83BBC7C0B8B7A9C6966A6525BA10E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_2DFEED68237C9A49279F66A6525B4954" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_2DFEED68237C9A49279F66A6525B4954" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SharebasedCompensationAwardTrancheFourMember" xlink:label="loc_bofi_SharebasedCompensationAwardTrancheFourMember_4EAFE809D48B7B60C38266A6525B6F68" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_F2E2FD5E351815E944F166A6525BD41D" xlink:to="loc_bofi_SharebasedCompensationAwardTrancheFourMember_4EAFE809D48B7B60C38266A6525B6F68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_B4D8112DDBC25F63257B66A6525B4791" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_B4D8112DDBC25F63257B66A6525B4791" 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_FB12FC35BCEA8B00DF7A66A6525BCE00" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_FB12FC35BCEA8B00DF7A66A6525BCE00" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockholdersEquityNoteStockSplitConversionRatioNumberofShares" xlink:label="loc_bofi_StockholdersEquityNoteStockSplitConversionRatioNumberofShares_EB236E94F16CE155162166A6525BF75C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_StockholdersEquityNoteStockSplitConversionRatioNumberofShares_EB236E94F16CE155162166A6525BF75C" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NumberOfStockIncentivePlans" xlink:label="loc_bofi_NumberOfStockIncentivePlans_BDCC492D9006006702F866A6525B4C53" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_NumberOfStockIncentivePlans_BDCC492D9006006702F866A6525B4C53" 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_D4BE5CC2F3F19AFAEA7966A6526B5067" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_D4BE5CC2F3F19AFAEA7966A6526B5067" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardExpirationTerm" xlink:label="loc_bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardExpirationTerm_6519E807F6F1EAF96C8066A6526BC083" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardExpirationTerm_6519E807F6F1EAF96C8066A6526BC083" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ShareBasedCompensationOutstandingSharesOfCompanyAvailableForGrantUnderPlanPercentage" xlink:label="loc_bofi_ShareBasedCompensationOutstandingSharesOfCompanyAvailableForGrantUnderPlanPercentage_90B255F6B35E0A2F226566A6526BD051" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_ShareBasedCompensationOutstandingSharesOfCompanyAvailableForGrantUnderPlanPercentage_90B255F6B35E0A2F226566A6526BD051" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SharebasedCompensationArrangementbyShareBasedPaymentAwardAnnualIncreasetoSharesAvailableforGrantPercentage" xlink:label="loc_bofi_SharebasedCompensationArrangementbyShareBasedPaymentAwardAnnualIncreasetoSharesAvailableforGrantPercentage_943DEEC89626E5AA03E866A6526B2263" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_SharebasedCompensationArrangementbyShareBasedPaymentAwardAnnualIncreasetoSharesAvailableforGrantPercentage_943DEEC89626E5AA03E866A6526B2263" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ShareBasedCompensationArrangementsByShareBasedPaymentAwardNumberOfFiscalYearsStockIncreases" xlink:label="loc_bofi_ShareBasedCompensationArrangementsByShareBasedPaymentAwardNumberOfFiscalYearsStockIncreases_F189082C7341C554D0EF66A6526B5E75" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_ShareBasedCompensationArrangementsByShareBasedPaymentAwardNumberOfFiscalYearsStockIncreases_F189082C7341C554D0EF66A6526B5E75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_50F07A7D8F9A7B51253166A6526BF580" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_50F07A7D8F9A7B51253166A6526BF580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_012B3589CAA7CCCE63A966A6526BAC51" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_012B3589CAA7CCCE63A966A6526BAC51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_AD951FDBF3B80B4B975E66A6526B5D47" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_AD951FDBF3B80B4B975E66A6526B5D47" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndIssuedInPeriod" xlink:label="loc_bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndIssuedInPeriod_1484761B1A5822B9D8B766A6526B9C02" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndIssuedInPeriod_1484761B1A5822B9D8B766A6526B9C02" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_RestrictedShareGrantsAnnualVestingPercentage" xlink:label="loc_bofi_RestrictedShareGrantsAnnualVestingPercentage_EA742EE75D9ECF5BBD3666A6526BB74A" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_RestrictedShareGrantsAnnualVestingPercentage_EA742EE75D9ECF5BBD3666A6526BB74A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7E7864638F7DD5D6E32F66A6526B6110" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7E7864638F7DD5D6E32F66A6526B6110" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsGrantsinPeriodFairValue" xlink:label="loc_bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsGrantsinPeriodFairValue_3884993AD28AC12D813C66A6526BE80B" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsGrantsinPeriodFairValue_3884993AD28AC12D813C66A6526BE80B" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_DeferredCompensationArrangementwithIndividualNumberofVestingTranchesDuringRequisiteServicePeriod" xlink:label="loc_bofi_DeferredCompensationArrangementwithIndividualNumberofVestingTranchesDuringRequisiteServicePeriod_8024C69A16A3874984CF66A6526BD4B5" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_bofi_DeferredCompensationArrangementwithIndividualNumberofVestingTranchesDuringRequisiteServicePeriod_8024C69A16A3874984CF66A6526BD4B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1_BF1D928B48BDEE24068D66A6526B27E2" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1_BF1D928B48BDEE24068D66A6526B27E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_06535CE81B038B2FA89566B524A83FBA" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_06535CE81B038B2FA89566B524A83FBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_B76AFEA0C50DBF1A408E66A6526B233E" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_B76AFEA0C50DBF1A408E66A6526B233E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_9A684FF31E052DD3AFC566A6526BB1FE" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensation_9A684FF31E052DD3AFC566A6526BB1FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_DBBFED167F9F42C95A2C66A6526B4A6D" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_DBBFED167F9F42C95A2C66A6526B4A6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_B23F3C036C181C6E503166A6526B3F84" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_06863C42AABC80CE0EB966A6525B8ACB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_B23F3C036C181C6E503166A6526B3F84" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensationStatusOfChangeInRestrictedStockGrantsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_18EF7D11CE2E75FFCACC66A6523CD0A7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_483879C5E8754CE23FC666A6523C7B24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_18EF7D11CE2E75FFCACC66A6523CD0A7" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_483879C5E8754CE23FC666A6523C7B24" 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_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_D6E01846DC51F22CDF9D66A6523C9C52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_483879C5E8754CE23FC666A6523C7B24" xlink:to="loc_us-gaap_AwardTypeAxis_D6E01846DC51F22CDF9D66A6523C9C52" 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_C822A6E14B486C232BA066A6523C4526_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_D6E01846DC51F22CDF9D66A6523C9C52" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C822A6E14B486C232BA066A6523C4526_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_C822A6E14B486C232BA066A6523C4526" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_D6E01846DC51F22CDF9D66A6523C9C52" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C822A6E14B486C232BA066A6523C4526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_5C393AB5EEA002D3156266A6523C5245" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_C822A6E14B486C232BA066A6523C4526" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_5C393AB5EEA002D3156266A6523C5245" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_18EF7D11CE2E75FFCACC66A6523CD0A7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_1531656A2B0D7C21781366A6523C3D0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_1531656A2B0D7C21781366A6523C3D0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_C0E218F6093CA740E0C866A6523C1846" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_C0E218F6093CA740E0C866A6523C1846" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_B150BC006982FBBC7DB066A6523CEBEB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_B150BC006982FBBC7DB066A6523CEBEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_2B53BD8055458381614B66A6523C4729" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_57F689073E0B8C75585B66A6523CC812" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_2B53BD8055458381614B66A6523C4729" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_18EF7D11CE2E75FFCACC66A6523CD0A7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_777CD3FCEADE2199B15766A6523CB780" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_777CD3FCEADE2199B15766A6523CB780" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E498327077B046BFA98266A6523C6D23" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E498327077B046BFA98266A6523C6D23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_A4326154F5F656E9D2E866A6523CDFC7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_A4326154F5F656E9D2E866A6523CDFC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_52450C1A2EA34D2ADDA966A6523C6634" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_087FE60356FD3FDFCDD766A6523CE00B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_52450C1A2EA34D2ADDA966A6523C6634" 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_34FC5700AADD375DB16266A6523CEF45" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_18EF7D11CE2E75FFCACC66A6523CD0A7" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_34FC5700AADD375DB16266A6523CEF45" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockBasedCompensationUnrecognizedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A7EFC636787E19AE5E15CC68D2C591C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A7EFC636787E19AE5E15CC68D2C591C" 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_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_42695957EF4DE902E1FA5CC68D2C26F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A7EFC636787E19AE5E15CC68D2C591C" xlink:to="loc_us-gaap_AwardTypeAxis_42695957EF4DE902E1FA5CC68D2C26F8" 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_F10EEA594B80A2A24D575CC68D2C1E08_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_42695957EF4DE902E1FA5CC68D2C26F8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_F10EEA594B80A2A24D575CC68D2C1E08_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_F10EEA594B80A2A24D575CC68D2C1E08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_42695957EF4DE902E1FA5CC68D2C26F8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_F10EEA594B80A2A24D575CC68D2C1E08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_70B3BEBD49D542E2AF8E5CC68D2C3932" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_F10EEA594B80A2A24D575CC68D2C1E08" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_70B3BEBD49D542E2AF8E5CC68D2C3932" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearOne" xlink:label="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearOne_9B007B7EEA4025D578845CC68D2CFB9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearOne_9B007B7EEA4025D578845CC68D2CFB9D" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearTwo" xlink:label="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearTwo_323DD2D1A8B058B5CC745CC68D2C1DA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearTwo_323DD2D1A8B058B5CC745CC68D2C1DA1" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearThree" xlink:label="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearThree_A480C10313DC7DBEEED95CC68D2CA488" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedYearThree_A480C10313DC7DBEEED95CC68D2CA488" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFour" xlink:label="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFour_6E5125D4AD2BA6C556C85CC68D2C4EA3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFour_6E5125D4AD2BA6C556C85CC68D2C4EA3" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFive" xlink:label="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFive_53694D6DA7269373EA285CC68D2C8801" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedYearFive_53694D6DA7269373EA285CC68D2C8801" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedAfterYearFive" xlink:label="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedAfterYearFive_275A644E52680B27C6F55CC68D2C14A4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_bofi_EmployeeServiceSharebasedCompensationNonvestedAwardsTotalCompensationCostNotyetRecognizedAfterYearFive_275A644E52680B27C6F55CC68D2C14A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D19ECB4A5607421171695CC68D2C49B4" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_14C58C45E5675A0BD39F5CC68D2C6311" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D19ECB4A5607421171695CC68D2C49B4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockholdersEquityAtmOfferingDetails" 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_8DC6098F5B70912763065CC68CED3831" 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_854BE7DA6867953D1DC85CC68CED799F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_854BE7DA6867953D1DC85CC68CED799F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameAxis" xlink:label="loc_bofi_StockIssuancePlanNameAxis_8AD7684574465EC92C425CC68CED0645" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_854BE7DA6867953D1DC85CC68CED799F" xlink:to="loc_bofi_StockIssuancePlanNameAxis_8AD7684574465EC92C425CC68CED0645" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameDomain" xlink:label="loc_bofi_StockIssuancePlanNameDomain_309D4D77A0CA0934CC605CC68CEDF7E8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_StockIssuancePlanNameAxis_8AD7684574465EC92C425CC68CED0645" xlink:to="loc_bofi_StockIssuancePlanNameDomain_309D4D77A0CA0934CC605CC68CEDF7E8_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameDomain" xlink:label="loc_bofi_StockIssuancePlanNameDomain_309D4D77A0CA0934CC605CC68CEDF7E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_StockIssuancePlanNameAxis_8AD7684574465EC92C425CC68CED0645" xlink:to="loc_bofi_StockIssuancePlanNameDomain_309D4D77A0CA0934CC605CC68CEDF7E8" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AtTheMarketEquityDistributionAgreementMember" xlink:label="loc_bofi_AtTheMarketEquityDistributionAgreementMember_0733146B2EC0D8EABF525CC68CEDCCAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_StockIssuancePlanNameDomain_309D4D77A0CA0934CC605CC68CEDF7E8" xlink:to="loc_bofi_AtTheMarketEquityDistributionAgreementMember_0733146B2EC0D8EABF525CC68CEDCCAD" 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_F6667977623C31E677865CC68CEDAF39" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_854BE7DA6867953D1DC85CC68CED799F" xlink:to="loc_us-gaap_StatementClassOfStockAxis_F6667977623C31E677865CC68CEDAF39" 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_8070EF4960ABC2D751C35CC68CEDFCD3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F6667977623C31E677865CC68CEDAF39" xlink:to="loc_us-gaap_ClassOfStockDomain_8070EF4960ABC2D751C35CC68CEDFCD3_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_8070EF4960ABC2D751C35CC68CEDFCD3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F6667977623C31E677865CC68CEDAF39" xlink:to="loc_us-gaap_ClassOfStockDomain_8070EF4960ABC2D751C35CC68CEDFCD3" 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_318BB43A1E85842A51515CC68CED55D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_8070EF4960ABC2D751C35CC68CEDFCD3" xlink:to="loc_us-gaap_CommonStockMember_318BB43A1E85842A51515CC68CED55D8" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SaleOfStockWeightedAveragePerSharePrice" xlink:label="loc_bofi_SaleOfStockWeightedAveragePerSharePrice_3786AD10F7F6BD21752A5CC68CEDC056" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_bofi_SaleOfStockWeightedAveragePerSharePrice_3786AD10F7F6BD21752A5CC68CEDC056" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_5D226314296D4D6B0DE95CC68CED51CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_us-gaap_CommonStockSharesIssued_5D226314296D4D6B0DE95CC68CED51CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_BB114AFBFBCAFCC3B1E15CC68CED1B2A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_BB114AFBFBCAFCC3B1E15CC68CED1B2A" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_SaleofStockCompensationtoAgent" xlink:label="loc_bofi_SaleofStockCompensationtoAgent_C581DC184118D67A200C5CC68CEDAFC2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_bofi_SaleofStockCompensationtoAgent_C581DC184118D67A200C5CC68CEDAFC2" 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_27F74A39C31D860678E15CC68CED8C62" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8DC6098F5B70912763065CC68CED3831" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_27F74A39C31D860678E15CC68CED8C62" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockholdersEquityChangesInCommonStockDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockholdersEquityNarrativeDetails" 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_94779512C3FD3CA737275CC68CFD9612" 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_62241D5F94E482842A7F5CC68CED5F1B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_62241D5F94E482842A7F5CC68CED5F1B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameAxis" xlink:label="loc_bofi_StockIssuancePlanNameAxis_654085717FCCA3E756805CC68CEDB688" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_62241D5F94E482842A7F5CC68CED5F1B" xlink:to="loc_bofi_StockIssuancePlanNameAxis_654085717FCCA3E756805CC68CEDB688" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameDomain" xlink:label="loc_bofi_StockIssuancePlanNameDomain_A82BEF44C9B49759270C5CC68CED35D0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_bofi_StockIssuancePlanNameAxis_654085717FCCA3E756805CC68CEDB688" xlink:to="loc_bofi_StockIssuancePlanNameDomain_A82BEF44C9B49759270C5CC68CED35D0_default" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuancePlanNameDomain" xlink:label="loc_bofi_StockIssuancePlanNameDomain_A82BEF44C9B49759270C5CC68CED35D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_bofi_StockIssuancePlanNameAxis_654085717FCCA3E756805CC68CEDB688" xlink:to="loc_bofi_StockIssuancePlanNameDomain_A82BEF44C9B49759270C5CC68CED35D0" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_AtTheMarketEquityDistributionAgreementMember" xlink:label="loc_bofi_AtTheMarketEquityDistributionAgreementMember_D9A06EF209D26BC3803E5CC68CFD4E52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bofi_StockIssuancePlanNameDomain_A82BEF44C9B49759270C5CC68CED35D0" xlink:to="loc_bofi_AtTheMarketEquityDistributionAgreementMember_D9A06EF209D26BC3803E5CC68CFD4E52" 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_533D4004C48006CBC1345CC68CFD391B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_62241D5F94E482842A7F5CC68CED5F1B" xlink:to="loc_us-gaap_StatementClassOfStockAxis_533D4004C48006CBC1345CC68CFD391B" 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_2BB2B0B9EC37736639615CC68CFDD6E5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_533D4004C48006CBC1345CC68CFD391B" xlink:to="loc_us-gaap_ClassOfStockDomain_2BB2B0B9EC37736639615CC68CFDD6E5_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_2BB2B0B9EC37736639615CC68CFDD6E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_533D4004C48006CBC1345CC68CFD391B" xlink:to="loc_us-gaap_ClassOfStockDomain_2BB2B0B9EC37736639615CC68CFDD6E5" 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_CE62FB010F3DF3A1E4D75CC68CFD45EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2BB2B0B9EC37736639615CC68CFDD6E5" xlink:to="loc_us-gaap_CommonStockMember_CE62FB010F3DF3A1E4D75CC68CFD45EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_0DF927DC48FF926A968A5CC68CFDCE75" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2BB2B0B9EC37736639615CC68CFDD6E5" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_0DF927DC48FF926A968A5CC68CFDCE75" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_OfferingPricePublicOffering" xlink:label="loc_bofi_OfferingPricePublicOffering_C241F3076890CB397E4C5CC68CFD7141" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_bofi_OfferingPricePublicOffering_C241F3076890CB397E4C5CC68CFD7141" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuanceAgreementStockIssuanceCostsAsPercentageOfGrossSalesPrice" xlink:label="loc_bofi_StockIssuanceAgreementStockIssuanceCostsAsPercentageOfGrossSalesPrice_F2BEA3B7EF15BC1476DD5CC68CFD4E62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_bofi_StockIssuanceAgreementStockIssuanceCostsAsPercentageOfGrossSalesPrice_F2BEA3B7EF15BC1476DD5CC68CFD4E62" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuanceAgreementMaximumAmountToReimbursableExpensesOfDistributionAgents" xlink:label="loc_bofi_StockIssuanceAgreementMaximumAmountToReimbursableExpensesOfDistributionAgents_F6DBCED8DB889C89C1035CC68CFD46AF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_bofi_StockIssuanceAgreementMaximumAmountToReimbursableExpensesOfDistributionAgents_F6DBCED8DB889C89C1035CC68CFD46AF" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_StockIssuanceAgreementMaximumAmounttoReimbursableExpensesofDistributionAgentsThereafter" xlink:label="loc_bofi_StockIssuanceAgreementMaximumAmounttoReimbursableExpensesofDistributionAgentsThereafter_BDCE8F40F7235BAFEE085CC68CFD6A0A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_bofi_StockIssuanceAgreementMaximumAmounttoReimbursableExpensesofDistributionAgentsThereafter_BDCE8F40F7235BAFEE085CC68CFD6A0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_882763E5849282CD337B5CC68CFDC7AF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_882763E5849282CD337B5CC68CFDC7AF" 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_1AA14CED87886B3528865CC68CFDE05F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1AA14CED87886B3528865CC68CFDE05F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_104F479AE4C4A99C3DC35CC68CFD1DD7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_104F479AE4C4A99C3DC35CC68CFD1DD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_B16391F17906CEF791345CC68CFD46F9" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_B16391F17906CEF791345CC68CFD46F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_F095B6E8D908A2218F205CC68CFDE9AE" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_F095B6E8D908A2218F205CC68CFDE9AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_DB0E3879DA85750D2C9D5CC68CFD2EF8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_DB0E3879DA85750D2C9D5CC68CFD2EF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendRatePercentage" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_F343DD5506AC69CA83E65CC68CFDD3EC" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_F343DD5506AC69CA83E65CC68CFDD3EC" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_PreferredStockRemainingNumberOfSharesToBeRedeemed" xlink:label="loc_bofi_PreferredStockRemainingNumberOfSharesToBeRedeemed_032C5BFBD99AD8C592915CC68CFDF619" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_bofi_PreferredStockRemainingNumberOfSharesToBeRedeemed_032C5BFBD99AD8C592915CC68CFDF619" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_9AF63237A9F16FF07B5D5CC68CFDA2DC" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_9AF63237A9F16FF07B5D5CC68CFDA2DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_C7A3A8C03B225DECC5195CC68CFDE96C" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_C7A3A8C03B225DECC5195CC68CFDE96C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_23294FA33C4829D91F815CC68CFD8965" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_23294FA33C4829D91F815CC68CFD8965" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_901AB03CF24477378C5B5CC68CFD8B0D" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_901AB03CF24477378C5B5CC68CFD8B0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConversionOfStockSharesConverted1" xlink:label="loc_us-gaap_ConversionOfStockSharesConverted1_FDFA42838677683FA41E5CC68CFD572D" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_ConversionOfStockSharesConverted1_FDFA42838677683FA41E5CC68CFD572D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsPreferredStockCash" xlink:label="loc_us-gaap_DividendsPreferredStockCash_F0B58F6874510954B1A55CC68CFD15B4" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_94779512C3FD3CA737275CC68CFD9612" xlink:to="loc_us-gaap_DividendsPreferredStockCash_F0B58F6874510954B1A55CC68CFD15B4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/StockholdersEquityTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SubordinatedNotesAndDebentures" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SubordinatedNotesAndDebenturesDetails" 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_B1BE262BF73489C19C2E5CC68E5B7B86" 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_4F312C5C5B5D3449C0FC5CC68E5BB0DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_DebtInstrumentTable_4F312C5C5B5D3449C0FC5CC68E5BB0DD" 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_F4507C430ED2274E36B05CC68E5B3CC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4F312C5C5B5D3449C0FC5CC68E5BB0DD" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_F4507C430ED2274E36B05CC68E5B3CC1" 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_DF4CB4635F3DD16371DD5CC68E5BEBDF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_F4507C430ED2274E36B05CC68E5B3CC1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DF4CB4635F3DD16371DD5CC68E5BEBDF_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_DF4CB4635F3DD16371DD5CC68E5BEBDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_F4507C430ED2274E36B05CC68E5B3CC1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DF4CB4635F3DD16371DD5CC68E5BEBDF" 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_211DD5323F69007BC4785CC68E5B0747" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DF4CB4635F3DD16371DD5CC68E5BEBDF" xlink:to="loc_us-gaap_SubordinatedDebtMember_211DD5323F69007BC4785CC68E5B0747" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_JuniorSubordinatedDebtMember" xlink:label="loc_us-gaap_JuniorSubordinatedDebtMember_BD1B8BE48731D87194715CC68E5B7530" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DF4CB4635F3DD16371DD5CC68E5BEBDF" xlink:to="loc_us-gaap_JuniorSubordinatedDebtMember_BD1B8BE48731D87194715CC68E5B7530" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_FAE0D6A25AC3679DEB3A5CC68E5BE23F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4F312C5C5B5D3449C0FC5CC68E5BB0DD" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_FAE0D6A25AC3679DEB3A5CC68E5BE23F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_9A328B204D8F15326E515CC68E5BF150_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_FAE0D6A25AC3679DEB3A5CC68E5BE23F" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_9A328B204D8F15326E515CC68E5BF150_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_9A328B204D8F15326E515CC68E5BF150" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_FAE0D6A25AC3679DEB3A5CC68E5BE23F" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_9A328B204D8F15326E515CC68E5BF150" 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_B768BCC3096D95D705FA5CC68E5B915A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_9A328B204D8F15326E515CC68E5BF150" xlink:to="loc_us-gaap_FederalReserveBankAdvancesMember_B768BCC3096D95D705FA5CC68E5B915A" 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_54BE8DDDDC36A295FAB05CC68E5B2D65" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4F312C5C5B5D3449C0FC5CC68E5BB0DD" xlink:to="loc_us-gaap_CreditFacilityAxis_54BE8DDDDC36A295FAB05CC68E5B2D65" 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_7D12321D92080331160B5CC68E5B573B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_54BE8DDDDC36A295FAB05CC68E5B2D65" xlink:to="loc_us-gaap_CreditFacilityDomain_7D12321D92080331160B5CC68E5B573B_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_7D12321D92080331160B5CC68E5B573B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_54BE8DDDDC36A295FAB05CC68E5B2D65" xlink:to="loc_us-gaap_CreditFacilityDomain_7D12321D92080331160B5CC68E5B573B" 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_5BA95F8F3A9AAB32732C5CC68E5B87A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7D12321D92080331160B5CC68E5B573B" xlink:to="loc_us-gaap_LineOfCreditMember_5BA95F8F3A9AAB32732C5CC68E5B87A9" 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_9743B48C3894D69D9CA15CC68E5BD823" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4F312C5C5B5D3449C0FC5CC68E5BB0DD" xlink:to="loc_us-gaap_VariableRateAxis_9743B48C3894D69D9CA15CC68E5BD823" 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_1F4ED266C78DBF90840E5CC68E5BAD69_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_9743B48C3894D69D9CA15CC68E5BD823" xlink:to="loc_us-gaap_VariableRateDomain_1F4ED266C78DBF90840E5CC68E5BAD69_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_1F4ED266C78DBF90840E5CC68E5BAD69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_9743B48C3894D69D9CA15CC68E5BD823" xlink:to="loc_us-gaap_VariableRateDomain_1F4ED266C78DBF90840E5CC68E5BAD69" 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_126800D1117668DD6D875CC68E5B976D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_1F4ED266C78DBF90840E5CC68E5BAD69" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_126800D1117668DD6D875CC68E5B976D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_FC6F510036726542CB405CC68E5B8F5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_FC6F510036726542CB405CC68E5B8F5B" 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_7BB938B7902AB67D126A5CC68E5BE3C3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_7BB938B7902AB67D126A5CC68E5BE3C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_7EC4C22EF18E8266274C5CC68E5B45CD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_7EC4C22EF18E8266274C5CC68E5B45CD" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_DebtIssuanceCostsandDiscountPercentage" xlink:label="loc_bofi_DebtIssuanceCostsandDiscountPercentage_C9080C642D9F3320EC8E5CC68E5B0D37" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_bofi_DebtIssuanceCostsandDiscountPercentage_C9080C642D9F3320EC8E5CC68E5B0D37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities_8906B2DA6637C7066E635CC68E5B079C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities_8906B2DA6637C7066E635CC68E5B079C" 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_AB931FAB6ACB0493EB695CC68E5B495F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_AB931FAB6ACB0493EB695CC68E5B495F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentDescriptionOfVariableRateBasis" xlink:label="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_811DC72A3ADD22F266EC5CC68E5B5A8E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_DebtInstrumentDescriptionOfVariableRateBasis_811DC72A3ADD22F266EC5CC68E5B5A8E" 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_96698C21DA1ABBE6E7C95CC68E5BD589" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_96698C21DA1ABBE6E7C95CC68E5BD589" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_2FB6580525C7B0412B835CC68E5B4E52" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_ShortTermBorrowings_2FB6580525C7B0412B835CC68E5B4E52" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_ShortTermDebtMaximumBorrowingCapacity" xlink:label="loc_bofi_ShortTermDebtMaximumBorrowingCapacity_80FADDFD9E448DFD95335CC68E5B7528" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_bofi_ShortTermDebtMaximumBorrowingCapacity_80FADDFD9E448DFD95335CC68E5B7528" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PledgedAssetsSeparatelyReportedLoansPledgedAsCollateralAtFairValue" xlink:label="loc_us-gaap_PledgedAssetsSeparatelyReportedLoansPledgedAsCollateralAtFairValue_6275525E674005313F5C5CC68E5BC042" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_PledgedAssetsSeparatelyReportedLoansPledgedAsCollateralAtFairValue_6275525E674005313F5C5CC68E5BC042" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue" xlink:label="loc_us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue_F290603ECE15C82181EA5CC68E5B2579" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedAsCollateralAtFairValue_F290603ECE15C82181EA5CC68E5B2579" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_LineOfCreditNumberOfBanks" xlink:label="loc_bofi_LineOfCreditNumberOfBanks_7AC8CA38BD939DED8B1C5CC68E5BB6F3" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_bofi_LineOfCreditNumberOfBanks_7AC8CA38BD939DED8B1C5CC68E5BB6F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_F79ECB31E20536AB88535CC68E5B2B4B" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_F79ECB31E20536AB88535CC68E5B2B4B" 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_21F17522155D89DFE49A5CC68E5BEDEC" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B1BE262BF73489C19C2E5CC68E5B7B86" xlink:to="loc_us-gaap_LineOfCredit_21F17522155D89DFE49A5CC68E5BEDEC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://bofiholding.com/role/SubsequentEvent" xlink:type="extended" />
  <link:definitionLink xlink:role="http://bofiholding.com/role/SubsequentEventDetails" 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_26035FFA25AC5478130C5CC68C6190F3" 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_44F325FB76F5BBD4ED595CC68C6112E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_26035FFA25AC5478130C5CC68C6190F3" xlink:to="loc_us-gaap_SubsequentEventTable_44F325FB76F5BBD4ED595CC68C6112E7" 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_FD7A3D5A13A3D49F0F295CC68C619935" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_44F325FB76F5BBD4ED595CC68C6112E7" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_FD7A3D5A13A3D49F0F295CC68C619935" 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_13B858D5DB3732A3F89B5CC68C6119D3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_FD7A3D5A13A3D49F0F295CC68C619935" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_13B858D5DB3732A3F89B5CC68C6119D3_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_13B858D5DB3732A3F89B5CC68C6119D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_FD7A3D5A13A3D49F0F295CC68C619935" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_13B858D5DB3732A3F89B5CC68C6119D3" 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_BA8A15F70C2D523712915CC68C61E26B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_13B858D5DB3732A3F89B5CC68C6119D3" xlink:to="loc_us-gaap_SubsequentEventMember_BA8A15F70C2D523712915CC68C61E26B" xlink:type="arc" />
    <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_9568B34B076DCBC318DE5CC68C610F27" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_44F325FB76F5BBD4ED595CC68C6112E7" xlink:to="loc_us-gaap_StatementScenarioAxis_9568B34B076DCBC318DE5CC68C610F27" 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_FF373BA4FD043D64C7A35CC68C61D508_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_9568B34B076DCBC318DE5CC68C610F27" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_FF373BA4FD043D64C7A35CC68C61D508_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_FF373BA4FD043D64C7A35CC68C61D508" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_9568B34B076DCBC318DE5CC68C610F27" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_FF373BA4FD043D64C7A35CC68C61D508" 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_8FC537F855884FF62D845CC68C617787" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_FF373BA4FD043D64C7A35CC68C61D508" xlink:to="loc_us-gaap_ScenarioForecastMember_8FC537F855884FF62D845CC68C617787" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srt_CounterpartyNameAxis_F1C905504F664EDBF9D05CC68C617BBA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_44F325FB76F5BBD4ED595CC68C6112E7" xlink:to="loc_srt_CounterpartyNameAxis_F1C905504F664EDBF9D05CC68C617BBA" 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_5E44C9574A984CB4FBCB5CC68C61FC84_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_F1C905504F664EDBF9D05CC68C617BBA" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_5E44C9574A984CB4FBCB5CC68C61FC84_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_5E44C9574A984CB4FBCB5CC68C61FC84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_F1C905504F664EDBF9D05CC68C617BBA" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_5E44C9574A984CB4FBCB5CC68C61FC84" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_NationwideBankMember" xlink:label="loc_bofi_NationwideBankMember_803E6CC5326A4DC824BC5CC68C611030" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_5E44C9574A984CB4FBCB5CC68C61FC84" xlink:to="loc_bofi_NationwideBankMember_803E6CC5326A4DC824BC5CC68C611030" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits_A7A04161534908300E4D5CC68C614EC8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_26035FFA25AC5478130C5CC68C6190F3" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits_A7A04161534908300E4D5CC68C614EC8" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCheckingSavingsandMoneyMarketDeposits" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCheckingSavingsandMoneyMarketDeposits_FC05CF0B7994723B81365CC68C61CB14" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_26035FFA25AC5478130C5CC68C6190F3" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCheckingSavingsandMoneyMarketDeposits_FC05CF0B7994723B81365CC68C61CB14" xlink:type="arc" />
    <link:loc xlink:href="bofi-20180630.xsd#bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTimeDeposits" xlink:label="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTimeDeposits_FE95799CEAF07B84C1965CC68C61924F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_26035FFA25AC5478130C5CC68C6190F3" xlink:to="loc_bofi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedTimeDeposits_FE95799CEAF07B84C1965CC68C61924F" xlink:type="arc" />
  </link:definitionLink>
</link:linkbase>
